- int preeditText(int x, int y,
- char_type c, FontInfo const & f, preedit_style style);
-
-protected:
- /// check the font, and if set, draw an underline
- void underline(FontInfo const & f,
- int x, int y, int width);
-
- /// check the font, and if set, draw an dashed underline
- void dashedUnderline(FontInfo const & f,
- int x, int y, int width);
-
- /// draw a bevelled button border
- void buttonFrame(int x, int y, int w, int h);
-
- /// Indicate wether real screen drawing shall be done or not.
- bool isDrawingEnabled() const { return drawing_enabled_; }
-
+ virtual int preeditText(int x, int y,
+ char_type c, FontInfo const & f, preedit_style style) = 0;
+
+ /// start monochrome painting mode, i.e. map every color into [min,max]
+ virtual void enterMonochromeMode(Color const & min,
+ Color const & max) = 0;
+ /// leave monochrome painting mode
+ virtual void leaveMonochromeMode() = 0;
+ /// draws a wavy line that can be used for underlining.
+ virtual void wavyHorizontalLine(int x, int y, int width, ColorCode col) = 0;