]> git.lyx.org Git - lyx.git/blob - src/mathed/math_kerninset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_kerninset.h
1 // -*- C++ -*-
2 #ifndef MATH_CHEATINSET_H
3 #define MATH_CHEATINSET_H
4
5 #include "math_diminset.h"
6 #include "vspace.h"
7 #include "LString.h"
8 #include "math_nestinset.h"
9
10
11 /// The \kern primitive
12 /// Some hack for visual effects
13
14 class MathKernInset : public MathDimInset {
15 public:
16         ///
17         MathKernInset();
18         ///
19         explicit MathKernInset(LyXLength const & wid);
20         ///
21         explicit MathKernInset(string const & wid);
22         ///
23         MathInset * clone() const;
24         ///
25         void draw(MathPainterInfo &, int x, int y) const;
26         ///
27         void write(WriteStream & os) const;
28         ///
29         void normalize(NormalStream & ns) const;
30         ///
31         void metrics(MathMetricsInfo & st) const;
32 private:
33         /// width in em
34         LyXLength wid_;
35 };
36 #endif