]> git.lyx.org Git - lyx.git/blob - src/mathed/math_diminset.h
more IU
[lyx.git] / src / mathed / math_diminset.h
1 // -*- C++ -*-
2 /**
3  * \file math_diminset.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 "math_inset.h"
16 #include "dimension.h"
17
18
19 /// things that need the dimension cache
20 class MathDimInset : public MathInset {
21 public:
22         /// not sure whether the initialization is really necessary
23         MathDimInset() {}
24         ///
25         Dimension dimensions() const { return dim_; }
26         ///
27         void metricsT(TextMetricsInfo const &) const;
28         ///
29         void drawT(TextPainter & pain, int x, int y) const;
30
31 protected:
32         ///
33         mutable Dimension dim_;
34 };
35 #endif