2 #ifndef MATH_DIMINSET_H
3 #define MATH_DIMINSET_H
9 #include "math_inset.h"
10 #include "dimension.h"
12 /// things that need the dimension cache
14 class MathDimInset : public MathInset {
16 /// not sure whether the initialization is really necessary
18 /// read ascent value (should be inline according to gprof)
19 int ascent() const { return dim_.ascent(); }
21 int descent() const { return dim_.descent(); }
23 int width() const { return dim_.width(); }
25 Dimension dimensions() const { return dim_; }
27 void metricsT(TextMetricsInfo const &) const;
29 void drawT(TextPainter & pain, int x, int y) const;
33 mutable Dimension dim_;