From 7fcdea663e2b3e543b404895da3030529aa16496 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sun, 16 Oct 2016 15:00:02 +0000 Subject: [PATCH] Remove apparent breaking of ABI compatibility by class Fl_Device_Plugin Also, add Doxygen comment this class is not for use outside the library. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@12030 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Device.H | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/FL/Fl_Device.H b/FL/Fl_Device.H index 9d6cf387b..a476a91d8 100644 --- a/FL/Fl_Device.H +++ b/FL/Fl_Device.H @@ -600,7 +600,9 @@ public: /** This plugin socket allows the integration of new device drivers for special - window or screen types. It is currently used to provide an automated printing + window or screen types. + This class is not intended for use outside the FLTK library. + It is currently used to provide an automated printing service and screen capture for OpenGL windows, if linked with fltk_gl. */ class FL_EXPORT Fl_Device_Plugin : public Fl_Plugin { @@ -621,7 +623,10 @@ public: /** captures a rectangle of a widget as an image \return The captured pixels as an RGB image */ - virtual Fl_RGB_Image* rectangle_capture(Fl_Widget *widget, int x, int y, int w, int h) = 0; +#ifdef FL_LIBRARY + virtual +#endif + Fl_RGB_Image* rectangle_capture(Fl_Widget *widget, int x, int y, int w, int h) {return NULL;} }; #endif // Fl_Device_H