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