]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
046f285c9c862f0ecabe0bd57d5fffce7d5902bd
[lyx.git] / src / mathed / support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "math_defs.h"
7 #include "LString.h"
8
9 class Painter;
10 class latexkeys;
11
12 extern char const * latex_mathspace[];
13
14 int mathed_char_height(MathTextCodes type, MathStyles size, unsigned char c,
15         int & asc, int & des);
16 void mathed_char_dim(MathTextCodes type, MathStyles size, unsigned char c,
17         int & asc, int & des, int & wid);
18 int mathed_char_width(MathTextCodes type, MathStyles size, unsigned char c);
19 int mathed_char_ascent(MathTextCodes type, MathStyles size, unsigned char c);
20 int mathed_char_descent(MathTextCodes type, MathStyles size, unsigned char c);
21
22 void mathed_draw_deco
23         (Painter & pain, int x, int y, int w, int h, latexkeys const * l);
24
25 void mathed_string_dim(MathTextCodes type, MathStyles size, string const & s,
26   int & asc, int & des, int & wid);
27 int mathed_string_height(MathTextCodes type, MathStyles size, string const & s,
28   int & asc, int & des);
29
30 int mathed_string_width(MathTextCodes type, MathStyles size, string const & s);
31 int mathed_string_ascent(MathTextCodes type, MathStyles size, string const & s);
32 int mathed_string_descent(MathTextCodes type, MathStyles size, string const & s);
33
34 void drawStr(Painter & pain, MathTextCodes type, MathStyles siz,
35         int x, int y, string const & s);
36 void drawChar(Painter & pain, MathTextCodes type, MathStyles siz,
37         int x, int y, char c);
38
39 void math_font_max_dim
40         (MathTextCodes code, MathStyles siz, int & asc, int & desc);
41
42 bool math_font_available(MathTextCodes code);
43
44 #endif