diff options
| author | Manolo Gouy <Manolo> | 2010-12-28 15:33:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-12-28 15:33:36 +0000 |
| commit | 2a5a3d4e8b3784ef8e6e24a7bb33ec606a6177e0 (patch) | |
| tree | 77e90a3446bf98cc7509acb9684a8af001c129fe /FL | |
| parent | 431fc4cd5dde11fb46184494243ea5baa79aea02 (diff) | |
Use device abstraction for colors.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8129 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Device.H | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 71062213e..6b19b914d 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -193,9 +193,9 @@ protected: /** \brief see fl_font(Fl_Font face, Fl_Fontsize size). */ virtual void font(Fl_Font face, Fl_Fontsize size) {}; /** \brief see fl_color(Fl_Color c). */ - virtual void color(Fl_Color c); + virtual void color(Fl_Color c) {}; /** \brief see fl_color(uchar r, uchar g, uchar b). */ - virtual void color(uchar r, uchar g, uchar b); + virtual void color(uchar r, uchar g, uchar b) {}; /** \brief see fl_point(int x, int y). */ virtual void point(int x, int y); /** \brief see fl_loop(int x0, int y0, int x1, int y1, int x2, int y2). */ @@ -298,6 +298,8 @@ public: /** \brief The constructor. */ Fl_Quartz_Graphics_Driver() { type_ = device_type; }; static const char *device_type; + void color(Fl_Color c); + void color(uchar r, uchar g, uchar b); void draw(const char* str, int n, int x, int y); void draw(int angle, const char *str, int n, int x, int y); void rtl_draw(const char* str, int n, int x, int y); @@ -322,6 +324,8 @@ public: /** \brief The constructor. */ Fl_GDI_Graphics_Driver() { type_ = device_type; }; static const char *device_type; + void color(Fl_Color c); + void color(uchar r, uchar g, uchar b); void draw(const char* str, int n, int x, int y); void draw(int angle, const char *str, int n, int x, int y); void rtl_draw(const char* str, int n, int x, int y); @@ -346,6 +350,8 @@ public: /** \brief The constructor. */ Fl_Xlib_Graphics_Driver() { type_ = device_type; }; static const char *device_type; + void color(Fl_Color c); + void color(uchar r, uchar g, uchar b); void draw(const char* str, int n, int x, int y); void draw(int angle, const char *str, int n, int x, int y); void rtl_draw(const char* str, int n, int x, int y); |
