10 #define byte unsigned char
15 class MathMatrixInset;
17 extern char const * math_font_name[];
18 extern char const * latex_mathspace[];
20 int mathed_char_height(short type, int size, byte c, int & asc, int & des);
21 int mathed_char_width(short type, int size, byte c);
22 void mathed_char_dim(short type, int size, byte c, int & asc, int & des, int & wid);
24 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
26 LyXFont mathed_get_font(short type, int size);
28 void mathed_string_dim(short type, int size, string const & s,
29 int & asc, int & des, int & wid);
30 int mathed_string_height(short type, int size, string const & s,
31 int & asc, int & des);
32 int mathed_string_width(short type, int size, string const & s);
34 bool MathIsInset(short x);
35 bool MathIsAlphaFont(short x);
36 bool MathIsBOPS(short x);
37 bool MathIsBinary(short x);
38 bool MathIsSymbol(short x);
39 bool MathIsRelOp(byte c, MathTextCodes f);
41 void drawStr(Painter & pain, short type, int siz,
42 int x, int y, string const & s);
43 void drawChar(Painter & pain, short type, int siz,
44 int x, int y, char c);