]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.C
float2string #4 (Spacing)
[lyx.git] / src / mathed / math_diminset.C
1 /**
2  * \file math_diminset.C
3  * This file is part of LyX, the document processor.
4  * Licence details can be found in the file COPYING.
5  *
6  * \author André Pönitz
7  *
8  * Full author contact details are available in file CREDITS.
9  */
10
11 #include <config.h>
12
13 #include "math_diminset.h"
14 #include "coordcache.h"
15 #include "debug.h"
16
17
18 MathDimInset::MathDimInset()
19 {}
20
21
22 int MathDimInset::ascent() const
23 {
24         return dim_.asc;
25 }
26
27
28 int MathDimInset::descent() const
29 {
30         return dim_.des;
31 }
32
33
34 int MathDimInset::width() const
35 {
36         return dim_.wid;
37 }
38
39
40 void MathDimInset::setPosCache(PainterInfo const &, int x, int y) const
41 {
42         //lyxerr << "MathDimInset: cache to " << x << " " << y << std::endl;
43         theCoords.insets_.add(this, x, y);
44 }