]> git.lyx.org Git - lyx.git/blob - src/mathed/math_deliminset.h
everything is an inset. sizeof(MathInset) == 36 on IA32
[lyx.git] / src / mathed / math_deliminset.h
1 // -*- C++ -*-
2 #ifndef MATH_DELIMINSET_H
3 #define MATH_DELIMINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** A delimiter
12     \author Alejandro Aguilar Sierra
13 */
14 class MathDelimInset : public MathNestInset {
15 public:
16         ///
17         MathDelimInset(int, int);
18         ///
19         MathInset * clone() const;
20         ///
21         void draw(Painter &, int, int);
22         ///
23         void write(std::ostream &, bool fragile) const;
24         ///
25         void metrics(MathStyles st);
26 private:
27         int dw() const;
28         ///
29         int left_;
30         ///
31         int right_;
32 };
33 #endif