2 #ifndef MATH_DIMINSET_H
3 #define MATH_DIMINSET_H
5 #include "math_inset.h"
7 /// things that need the dimension cache
9 class MathDimInset : public MathInset {
11 /// not sure whether the initialization is really necessary
12 MathDimInset() : width_(0), ascent_(0), descent_(0) {}
13 /// read ascent value (should be inline according to gprof)
14 int ascent() const { return ascent_; }
16 int descent() const { return descent_; }
18 int width() const { return width_; }
20 void metricsT(TextMetricsInfo const &) const;
22 void drawT(TextPainter & pain, int x, int y) const;