10 #define byte unsigned char
15 class MathMatrixInset;
17 struct math_deco_struct {
23 extern char const * math_font_name[];
24 extern char const * latex_mathspace[];
26 int mathed_char_height(short type, int size, byte c, int & asc, int & des);
27 int mathed_char_width(short type, int size, byte c);
28 void mathed_char_dim(short type, int size, byte c, int & asc, int & des, int & wid);
30 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
32 LyXFont mathed_get_font(short type, int size);
34 void mathed_string_dim(short type, int size, string const & s,
35 int & asc, int & des, int & wid);
36 int mathed_string_height(short type, int size, string const & s,
37 int & asc, int & des);
38 int mathed_string_width(short type, int size, string const & s);
40 math_deco_struct const * search_deco(int code);
42 bool MathIsInset(short x);
43 bool MathIsAlphaFont(short x);
44 bool MathIsBOPS(short x);
45 bool MathIsBinary(short x);
46 bool MathIsSymbol(short x);
47 bool MathIsRelOp(byte c, MathTextCodes f);
49 void drawStr(Painter & pain, short type, int siz,
50 int x, int y, string const & s);
51 void drawChar(Painter & pain, short type, int siz,
52 int x, int y, char c);