]> git.lyx.org Git - lyx.git/blob - src/mathed/math_decorationinset.h
everything is an inset. sizeof(MathInset) == 36 on IA32
[lyx.git] / src / mathed / math_decorationinset.h
1 // -*- C++ -*-
2 #ifndef MATH_DECORATIONINSET_H
3 #define MATH_DECORATIONINSET_H
4
5 #include "math_nestinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** Decorations and accents over (below) a math object
12     \author Alejandro Aguilar Sierra
13  */
14
15 struct latexkeys;
16
17 class MathDecorationInset : public MathNestInset {
18 public:
19         ///
20         explicit MathDecorationInset(latexkeys const *);
21         ///
22         MathInset * clone() const;
23         ///
24         void draw(Painter &, int, int);
25         ///
26         void write(std::ostream &, bool fragile) const;
27         ///
28         void metrics(MathStyles st);
29         ///
30         void writeNormal(std::ostream & os) const;
31 private:
32         ///
33         latexkeys const * key_;
34         ///
35         bool upper_;
36         /// height of deco
37         int dh_;
38         /// vertical offset of deco
39         int dy_;
40 };
41 #endif