2 #ifndef MATH_CHARINSET_H
3 #define MATH_CHARINSET_H
5 #include "math_diminset.h"
11 /** The base character inset.
15 class MathCharInset : public MathDimInset {
18 explicit MathCharInset(char c);
20 MathInset * clone() const;
22 void metrics(MathMetricsInfo & st) const;
24 void draw(MathPainterInfo &, int x, int y) const;
26 void metricsT(TextMetricsInfo const & st) const;
28 void drawT(TextPainter &, int x, int y) const;
30 void write(WriteStream & os) const;
32 void normalize(NormalStream & ns) const;
34 void octavize(OctaveStream & os) const;
35 /// identifies Charinsets
36 MathCharInset const * asCharInset() const { return this; }
38 char getChar() const { return char_; }
42 bool match(MathInset const *) const;