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