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 &) const;
33 /// identifies Charinsets
34 MathCharInset const * asCharInset() const { return this; }
36 char getChar() const { return char_; }
40 bool match(MathInset *) const;
41 /// identifies complicated things that need braces if used as arg
42 bool needsBraces() const { return false; }