X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fmath_diminset.h;h=3294e8f12e83cfddd4d3cc3a7bcb6a02fcaa9ff8;hb=3e93baac3cd18e27db3eb2a1fcaf90b25e0918a6;hp=75c7cad1cc22f913267ba6f60543eab79bb76bf3;hpb=1f9e9cf5173fa1fbafdff5f21080e5194b05818b;p=lyx.git diff --git a/src/mathed/math_diminset.h b/src/mathed/math_diminset.h index 75c7cad1cc..3294e8f12e 100644 --- a/src/mathed/math_diminset.h +++ b/src/mathed/math_diminset.h @@ -15,21 +15,30 @@ #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