Classes similar to this one can be made for gtk+, Qt, etc.
*/
class Painter : public PainterBase {
public:
Classes similar to this one can be made for gtk+, Qt, etc.
*/
class Painter : public PainterBase {
public:
- PainterBase & line(int x1, int y1, int x2, int y2,
+ PainterBase & line(int x1, int y1, int x2, int y2,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
/// Here xp and yp are arrays of points
PainterBase & lines(int const * xp, int const * yp, int np,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
/// Here xp and yp are arrays of points
PainterBase & lines(int const * xp, int const * yp, int np,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
/// Here xp and yp are arrays of points
PainterBase & fillPolygon(int const * xp, int const * yp, int np,
LColor::color = LColor::foreground);
/// Here xp and yp are arrays of points
PainterBase & fillPolygon(int const * xp, int const * yp, int np,
LColor::color = LColor::foreground);
int const * x2, int const * y2, int ns,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
int const * x2, int const * y2, int ns,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
PainterBase & rectangle(int x, int y, int w, int h,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
PainterBase & rectangle(int x, int y, int w, int h,
LColor::color = LColor::foreground,
enum line_style = line_solid,
enum line_width = line_thin);
- PainterBase & arc(int x, int y, unsigned int w, unsigned int h,
+ PainterBase & arc(int x, int y, unsigned int w, unsigned int h,
/// Fill a rectangle
PainterBase & fillRectangle(int x, int y, int w, int h,
LColor::color);
/// Fill a rectangle
PainterBase & fillRectangle(int x, int y, int w, int h,
LColor::color);
- PainterBase & image(int x, int y, int w, int h, LyXImage const * image);
-
- /// For the figinset
- PainterBase & pixmap(int x, int y, int w, int h, Pixmap bitmap);
-
+ PainterBase & image(int x, int y, int w, int h,
+ grfx::GImage const & image);
+
/// Draw a string at position x, y (y is the baseline)
PainterBase & text(int x, int y,
string const & str, LyXFont const & f);
/// Draw a string at position x, y (y is the baseline)
PainterBase & text(int x, int y,
string const & str, LyXFont const & f);
/** Draw a string at position x, y (y is the baseline)
This is just for fast drawing */
PainterBase & text(int x, int y, char const * str, size_t l,
LyXFont const & f);
/** Draw a string at position x, y (y is the baseline)
This is just for fast drawing */
PainterBase & text(int x, int y, char const * str, size_t l,
LyXFont const & f);
/// Draw a char at position x, y (y is the baseline)
PainterBase & text(int x, int y, char c, LyXFont const & f);
/// Draw a wide string at position x, y
PainterBase & text(int x, int y, XChar2b const * str, int l,
/// Draw a char at position x, y (y is the baseline)
PainterBase & text(int x, int y, char c, LyXFont const & f);
/// Draw a wide string at position x, y
PainterBase & text(int x, int y, XChar2b const * str, int l,
private:
/// Check the font, and if set, draw an underline
void underline(LyXFont const & f, int x, int y, int width);
private:
/// Check the font, and if set, draw an underline
void underline(LyXFont const & f, int x, int y, int width);