]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
cosmetics
[lyx.git] / src / mathed / support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "lyxfont.h"
7 #include "math_defs.h"
8
9 #ifndef byte
10 #define byte unsigned char
11 #endif
12
13 class Painter;
14 class MathArray;
15 class MathMatrixInset;
16
17 extern char const * math_font_name[];
18 extern char const * latex_mathspace[];
19
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);
23
24 void mathed_draw_deco(Painter & pain, int x, int y, int w, int h, int code);
25
26 LyXFont mathed_get_font(short type, int size);
27
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);
33
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);
40
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);
45
46 #endif