From d3bd47073424e5288589fce59ab1dd39ccb1b42a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Wed, 20 Jan 2016 00:39:46 +0000 Subject: 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 --- FL/Fl_Device.H | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) (limited to 'FL') 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 -- cgit v1.2.3