summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2016-01-20 00:39:46 +0000
committerMatthias Melcher <fltk@matthiasm.com>2016-01-20 00:39:46 +0000
commitd3bd47073424e5288589fce59ab1dd39ccb1b42a (patch)
tree5fb96e69b7a7d56da6e6e84fb07c581567dade2c /FL
parentbd78fa1c48641649e033818503af5c8e99330226 (diff)
Re-ordering a few more functions. It's nice to see how clear functions like rectf() become without the #ifdef mess.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl_Device.H25
1 files changed, 19 insertions, 6 deletions
diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H
index 78bfb351f..5adf9483a 100644
--- a/FL/Fl_Device.H
+++ b/FL/Fl_Device.H
@@ -244,9 +244,9 @@ protected:
/** \brief The constructor. */
Fl_Graphics_Driver();
/** \brief see fl_rect(int x, int y, int w, int h). */
- virtual void rect(int x, int y, int w, int h);
+ virtual void rect(int x, int y, int w, int h) = 0;
/** \brief see fl_rectf(int x, int y, int w, int h). */
- virtual void rectf(int x, int y, int w, int h);
+ virtual void rectf(int x, int y, int w, int h) = 0;
/** \brief see fl_line_style(int style, int width, char* dashes). */
virtual void line_style(int style, int width=0, char* dashes=0);
/** \brief see fl_xyline(int x, int y, int x1). */
@@ -474,9 +474,14 @@ public:
static Fl_Offscreen create_offscreen_with_alpha(int w, int h);
#endif
void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy);
- virtual void point(int x, int y);
+ // --- recently moved implementations (see FL_PORTING efforts)
+ void point(int x, int y);
+ void rect(int x, int y, int w, int h);
+ void rectf(int x, int y, int w, int h);
};
+// FIXME: add Fl_Quartz_Printer_Graphics_Driver
+
#elif defined(WIN32) || defined(FL_DOXYGEN)
/**
@@ -510,7 +515,10 @@ public:
void copy_offscreen_with_alpha(int x,int y,int w,int h,HBITMAP bitmap,int srcx,int srcy);
#endif
void copy_offscreen(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy);
- virtual void point(int x, int y);
+ // --- recently moved implementations (see FL_PORTING efforts)
+ void point(int x, int y);
+ void rect(int x, int y, int w, int h);
+ void rectf(int x, int y, int w, int h);
};
/**
@@ -532,7 +540,9 @@ public:
# pragma message "FL_PORTING: define a native graphics driver Fl_xxx_Graphics_Driver"
class FL_EXPORT Fl_XXX_Graphics_Driver : public Fl_Graphics_Driver {
protected:
- virtual void point(int x, int y) { }
+ // --- recently moved implementations (see FL_PORTING efforts)
+ void point(int x, int y) { }
+ void rect(int x, int y, int w, int h) { }
};
#else // X11
@@ -568,7 +578,10 @@ public:
#if ! defined(FL_DOXYGEN)
void copy_offscreen_with_alpha(int x, int y, int w, int h, Fl_Offscreen pixmap, int srcx, int srcy);
#endif
- virtual void point(int x, int y);
+ // --- recently moved implementations (see FL_PORTING efforts)
+ void point(int x, int y);
+ void rect(int x, int y, int w, int h);
+ void rectf(int x, int y, int w, int h);
};
#endif