]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_diminset.h
tfracinset files is missing so all usage of tfrac is commented out
[lyx.git] / src / mathed / math_diminset.h
index 75c7cad1cc22f913267ba6f60543eab79bb76bf3..3294e8f12e83cfddd4d3cc3a7bcb6a02fcaa9ff8 100644 (file)
 #include "math_inset.h"
 #include "dimension.h"
 
+class PainterInfo;
+
 
 /// things that need the dimension cache
 class MathDimInset : public MathInset {
 public:
-       /// not sure whether the initialization is really necessary
-       MathDimInset() {}
+       ///
+       MathDimInset();
+
        ///
        Dimension dimensions() const { return dim_; }
        ///
-       void metricsT(TextMetricsInfo const &) const;
+       int ascent() const;
+       ///
+       int descent() const;
        ///
-       void drawT(TextPainter & pain, int x, int y) const;
+       int width() const;
+
+       ///
+       void setPosCache(PainterInfo const & pi, int x, int y) const;
 
 protected:
        ///
        mutable Dimension dim_;
 };
+
 #endif