2 #ifndef MATH_DIMINSET_H
3 #define MATH_DIMINSET_H
6 #include "math_inset.h"
9 /// things that need the dimension cache
11 class MathDimInset : public MathInset {
13 /// not sure whether the initialization is really necessary
15 /// read ascent value (should be inline according to gprof)
16 int ascent() const { return dim_.ascent(); }
18 int descent() const { return dim_.descent(); }
20 int width() const { return dim_.width(); }
22 Dimension dimensions() const { return dim_; }
24 void metricsT(TextMetricsInfo const &) const;
26 void drawT(TextPainter & pain, int x, int y) const;
30 mutable Dimension dim_;