]> git.lyx.org Git - lyx.git/blob - src/mathed/math_support.h
small up/down tweaking
[lyx.git] / src / mathed / math_support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #ifdef __GNUG__
7 #pragma interface
8 #endif
9
10 #include "LString.h"
11
12 class MathPainterInfo;
13 class MathInset;
14 class LyXFont;
15 class Dimension;
16
17 void mathed_char_dim(LyXFont const &, unsigned char c, Dimension & dim);
18 int mathed_char_width(LyXFont const &, unsigned char c);
19 int mathed_char_ascent(LyXFont const &, unsigned char c);
20 int mathed_char_descent(LyXFont const &, unsigned char c);
21
22 void mathed_draw_deco(MathPainterInfo & pi, int x, int y, int w, int h,
23         string const & name);
24
25 void mathed_draw_framebox(MathPainterInfo & pi, int x, int y, MathInset const *);
26
27 void mathed_string_dim(LyXFont const & font, string const & s, Dimension & dim);
28 int mathed_string_width(LyXFont const &, string const & s);
29
30 void drawStr(MathPainterInfo & pi,
31         LyXFont const &, int x, int y, string const & s);
32 void drawStrRed(MathPainterInfo & pi, int x, int y, string const & s);
33 void drawStrBlack(MathPainterInfo & pi, int x, int y, string const & s);
34 void drawChar(MathPainterInfo & pi, LyXFont const & font, int x, int y, char c);
35
36 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
37
38 void augmentFont(LyXFont & f, string const & cmd);
39
40 bool isFontName(string const & name);
41
42 #endif