]> git.lyx.org Git - features.git/blob - src/mathed/math_sqrtinset.h
fix macro, small cleanup
[features.git] / src / mathed / math_sqrtinset.h
1 // -*- C++ -*-
2 #ifndef MATH_SQRTINSET_H
3 #define MATH_SQRTINSET_H
4
5 #include "math_parinset.h"
6
7 #ifdef __GNUG__
8 #pragma interface
9 #endif
10
11 /** The square root inset.
12     \author Alejandro Aguilar Siearra
13  */
14 class MathSqrtInset : public MathParInset {
15 public:
16         ///
17         MathSqrtInset(short st = LM_ST_TEXT);
18         ///
19         MathedInset * Clone();
20         ///
21         void draw(Painter &, int x, int baseline);
22         ///
23         void Write(std::ostream &, bool fragile);
24         ///
25         void Metrics();
26         ///
27         bool Inside(int, int);
28 private:
29         ///
30         int hmax_;
31         ///
32         int wbody_;
33 };
34 #endif