-
- /// Get the width of text
- int width(string const & s, LyXFont const & f) const;
-
- /** Get the width of text
- This is just for fast width */
- int width(char const * s, int l, LyXFont const & f) const;
-
- /// Get the width of text
- int width(char c, LyXFont const & f) const;
-
- /** Draws a string and encloses it inside a rectangle. Returns
- the size of the rectangle. If draw is false, we only calculate
- the size. */
- virtual PainterBase & rectText(int x, int baseline,
- string const & string,
- LyXFont const & font,
- LColor::color back,
- LColor::color frame, bool draw = true,
- int & width = PainterBase::dummy1,
- int & ascent = PainterBase::dummy2,
- int & descent = PainterBase::dummy3);
-
- /** Draw a string and encloses it inside a button frame. Returns
- the size of the frame. If draw is false, we only calculate
- the size. */
- virtual PainterBase & buttonText(int x, int baseline, string const & s,
- LyXFont const & font, bool draw = true,
- int & width = PainterBase::dummy1,
- int & ascent = PainterBase::dummy2,
- int & descent = PainterBase::dummy3);
-private:
+
+ /** Draws a string and encloses it inside a rectangle. */
+ PainterBase & rectText(int x, int baseline,
+ string const & string,
+ LyXFont const & font,
+ LColor::color back,
+ LColor::color frame);
+
+ /** Draw a string and encloses it inside a button frame. */
+ PainterBase & buttonText(int x, int baseline, string const & s,
+ LyXFont const & font);
+protected:
+ ///