]> git.lyx.org Git - lyx.git/blob - src/mathed/math_binominset.h
Jean-Marc's fix for wrong descent
[lyx.git] / src / mathed / math_binominset.h
1 // -*- C++ -*-
2 #ifndef MATH_BINOMINSET_H
3 #define MATH_DINOMINSET_H
4
5 #include "math_fracbase.h"
6
7
8 /** Binom like objects
9  *  \author André Pönitz
10  */
11 class MathBinomInset : public MathFracbaseInset {
12 public:
13         ///
14         explicit MathBinomInset(bool choose = false);
15         ///
16         MathInset * clone() const;
17         ///
18         void write(WriteStream & os) const;
19         ///
20         void normalize(NormalStream &) const;
21         ///
22         void metrics(MathMetricsInfo & st) const;
23         ///
24         void draw(MathPainterInfo &, int x, int y) const;
25 private:
26         ///
27         int dw() const;
28         ///
29         bool choose_;
30 };
31
32 #endif