]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.h
remove noload/don't typeset
[lyx.git] / src / mathed / math_diminset.h
1 // -*- C++ -*-
2 #ifndef MATH_DIMINSET_H
3 #define MATH_DIMINSET_H
4
5 #include "math_inset.h"
6 #include "dimension.h"
7
8 /// things that need the dimension cache
9
10 class MathDimInset : public MathInset {
11 public:
12         /// not sure whether the initialization is really necessary
13         MathDimInset() {}
14         /// read ascent value (should be inline according to gprof)
15         int ascent() const { return dim_.ascent(); }
16         /// read descent
17         int descent() const { return dim_.descent(); }
18         /// read width
19         int width() const { return dim_.width(); }
20         /// 
21         Dimension dimensions() const { return dim_; }
22         ///
23         void metricsT(TextMetricsInfo const &) const;
24         ///
25         void drawT(TextPainter & pain, int x, int y) const;
26
27 protected:
28         ///
29         mutable Dimension dim_;
30 };
31 #endif