#include "LColor.h"
-#include "support/types.h"
-
-#include <string>
+#include "support/docstring.h"
class LyXFont;
int w, int h,
LColor_color) = 0;
- /// draw a filled (irregular) polygon (UNUSED, could be removed)
- virtual void fillPolygon(
- int const * xp,
- int const * yp,
- int np,
- LColor_color) = 0;
-
/// draw an arc
virtual void arc(
int x, int y,
/// draw a string at position x, y (y is the baseline)
virtual void text(int x, int y,
- std::string const & str, LyXFont const & f) = 0;
+ lyx::docstring const & str, LyXFont const & f) = 0;
/**
* Draw a string at position x, y (y is the baseline)
* This is just for fast drawing
*/
virtual void text(int x, int y,
- char const * str, size_t l,
+ lyx::char_type const * str, size_t l,
LyXFont const & f) = 0;
/// draw a char at position x, y (y is the baseline)
* around the text with the given color.
*/
virtual void rectText(int x, int baseline,
- std::string const & str,
+ lyx::docstring const & str,
LyXFont const & font,
LColor_color back,
LColor_color frame);
/// draw a string and enclose it inside a button frame
virtual void buttonText(int x,
- int baseline, std::string const & s,
+ int baseline, lyx::docstring const & s,
LyXFont const & font);
protected: