]> git.lyx.org Git - lyx.git/blob - src/mathed/math_support.h
several smallish changes/bugfixes/left overs from Porto
[lyx.git] / src / mathed / math_support.h
1 // -*- C++ -*-
2
3 #ifndef MATH_SUPPORT_H
4 #define MATH_SUPPORT_H
5
6 #include "LString.h"
7
8 class MathPainterInfo;
9 class TextPainter;
10 class latexkeys;
11 class MathMetricsInfo;
12 class MathInset;
13 class LyXFont;
14
15 void mathed_char_dim(LyXFont const &, unsigned char c,
16         int & asc, int & des, int & wid);
17 int mathed_char_width(LyXFont const &, unsigned char c);
18 int mathed_char_ascent(LyXFont const &, unsigned char c);
19 int mathed_char_descent(LyXFont const &, unsigned char c);
20
21 void mathed_draw_deco(MathPainterInfo & pain, int x, int y, int w, int h,
22         string const & name);
23
24 void mathed_draw_framebox(MathPainterInfo & pain, int x, int y, MathInset const *);
25
26 void mathed_string_dim(LyXFont const &,
27         string const & s, int & asc, int & des, int & wid);
28
29 int mathed_string_width(LyXFont const &, string const & s);
30 int mathed_string_ascent(LyXFont const &, string const & s);
31 int mathed_string_descent(LyXFont const &, string const & s);
32
33 void drawStr(MathPainterInfo & pain,
34         LyXFont const &, int x, int y, string const & s);
35 void drawStrRed(MathPainterInfo & pain, int x, int y, string const & s);
36 void drawStrBlack(MathPainterInfo & pain, int x, int y, string const & s);
37 void drawChar(MathPainterInfo & pain,
38         LyXFont const & font, int x, int y, char c);
39
40 void math_font_max_dim(LyXFont const &, int & asc, int & desc);
41
42 void augmentFont(LyXFont & f, string const & cmd);
43
44
45 #endif