]> git.lyx.org Git - lyx.git/blob - src/mathed/InsetMathDim.h
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetMathDim.h
1 // -*- C++ -*-
2 /**
3  * \file InsetMathDim.h
4  * This file is part of LyX, the document processor.
5  * Licence details can be found in the file COPYING.
6  *
7  * \author André Pönitz
8  *
9  * Full author contact details are available in file CREDITS.
10  */
11
12 #ifndef MATH_DIMINSET_H
13 #define MATH_DIMINSET_H
14
15 #include "InsetMath.h"
16 #include "dimension.h"
17
18
19 namespace lyx {
20
21 class PainterInfo;
22
23
24 /// things that need the dimension cache
25 class InsetMathDim : public InsetMath {
26 public:
27         ///
28         InsetMathDim();
29
30         ///
31         Dimension dimensions() const { return dim_; }
32         ///
33         int ascent() const;
34         ///
35         int descent() const;
36         ///
37         int width() const;
38
39         ///
40         void setPosCache(PainterInfo const & pi, int x, int y) const;
41
42 protected:
43         ///
44         mutable Dimension dim_;
45 };
46
47
48 } // namespace lyx
49
50 #endif