}
-int QLPainter::text(int x, int y, docstring const & s, LyXFont const & f)
+void QLPainter::text(int x, int y, docstring const & s, LyXFont const & f)
{
return text(x, y, reinterpret_cast<char_type const *>(s.data()), s.length(), f);
}
-int QLPainter::text(int x, int y, char_type c, LyXFont const & f)
+void QLPainter::text(int x, int y, char_type c, LyXFont const & f)
{
char_type s[2] = { c, char_type('\0') };
return text(x, y, s, 1, f);
}
-int QLPainter::text(int x, int y, char_type const * s, size_t ls,
+void QLPainter::text(int x, int y, char_type const * s, size_t ls,
LyXFont const & f)
{
#if 0
underline(f, x, y, textwidth);
}
- return textwidth;
}
lyx::graphics::Image const & image);
/// draw a string at position x, y (y is the baseline)
- virtual int text(int x, int y,
+ virtual void text(int x, int y,
lyx::docstring const & str, LyXFont const & f);
/** Draw a string at position x, y (y is the baseline)
* This is just for fast drawing
*/
- virtual int text(int x, int y,
+ virtual void text(int x, int y,
lyx::char_type const * str, size_t l,
LyXFont const & f);
/// draw a char at position x, y (y is the baseline)
- virtual int text(int x, int y,
+ virtual void text(int x, int y,
lyx::char_type c, LyXFont const & f);
/// draw a pixmap from the image cache