X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FPainter.h;h=8bbda37701955e54f71c0da47501353977b3fcee;hb=d3392418c458a2d9e02f3dcc83978e2f1e11e98b;hp=31bb2405fd71ab28ffd79dcf334340b6bd1413e7;hpb=f01e36b6460a8ec8f66aa130282c567138af9979;p=lyx.git diff --git a/src/frontends/Painter.h b/src/frontends/Painter.h index 31bb2405fd..8bbda37701 100644 --- a/src/frontends/Painter.h +++ b/src/frontends/Painter.h @@ -57,6 +57,7 @@ public: Painter() : drawing_enabled_(true) {} float line_width; + static const float thin_line; /// possible line styles enum line_style { @@ -76,7 +77,7 @@ public: /// draw a line from point to point virtual void line(int x1, int y1, int x2, int y2, Color, - line_style = line_solid, float line_width = 0.5) = 0; + line_style = line_solid, float line_width = thin_line) = 0; /** * lines - draw a set of lines @@ -85,11 +86,11 @@ public: * @param np size of the points array */ virtual void lines(int const * xp, int const * yp, int np, Color, - line_style = line_solid, float line_width = 0.5) = 0; + line_style = line_solid, float line_width = thin_line) = 0; /// draw a rectangle virtual void rectangle(int x, int y, int w, int h, Color, - line_style = line_solid, float line_width = 0.5) = 0; + line_style = line_solid, float line_width = thin_line) = 0; /// draw a filled rectangle virtual void fillRectangle(int x, int y, int w, int h, Color) = 0;