mirror of
https://github.com/fltk/fltk.git
synced 2026-05-31 13:55:38 +08:00
New virtual member function Fl_Graphics_Driver::colored_rectf().
This commit is contained in:
@@ -257,6 +257,8 @@ public:
|
||||
virtual void rect(int x, int y, int w, int h);
|
||||
virtual void focus_rect(int x, int y, int w, int h);
|
||||
virtual void rectf(int x, int y, int w, int h);
|
||||
// the default implementation is most likely enough
|
||||
virtual void colored_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b);
|
||||
virtual void line(int x, int y, int x1, int y1);
|
||||
/** see fl_line(int, int, int, int, int, int) */
|
||||
virtual void line(int x, int y, int x1, int y1, int x2, int y2);
|
||||
|
||||
+1
-2
@@ -264,8 +264,7 @@ inline void fl_rectf(int x, int y, int w, int h, Fl_Color c) {fl_color(c); fl_re
|
||||
solid-colored block using fl_draw_image() so that the correct color
|
||||
shade is produced.
|
||||
*/
|
||||
/* note: doxygen comment here to avoid triplication in os-speciic files */
|
||||
FL_EXPORT void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b);
|
||||
inline void fl_rectf(int x, int y, int w, int h, uchar r, uchar g, uchar b) { fl_graphics_driver->colored_rectf(x,y,w,h,r,g,b); }
|
||||
|
||||
// line segments:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user