]> git.lyx.org Git - lyx.git/blob - src/mathed/support.h
first go at mathed file cleanup
[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
8 #ifndef byte
9 #define byte unsigned char
10 #endif
11
12 class Painter;
13
14 struct math_deco_struct {
15         int code;
16         float * data;
17         int angle;
18 };
19
20 extern char const * math_font_name[];
21 extern char const * latex_mathspace[];
22
23 extern int mathed_char_height(short type, int size, byte c,
24                               int & asc, int & des);
25 extern int mathed_char_width(short type, int size, byte c);
26 extern void mathed_draw_deco(Painter & pain, int x, int y,
27                              int w, int h, int code);
28
29 extern LyXFont mathed_get_font(short type, int size);
30 extern int mathed_string_height(short type, int size, string const & s,
31                                 int & asc, int & des);
32 extern int mathed_string_width(short type, int size, string const & s);
33 extern math_deco_struct const * search_deco(int code);
34 #endif