From 2e6e0b9c36fbf92d0d551aca077580e7a57c266a Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Thu, 3 Feb 2022 07:03:26 +0100 Subject: Reorganize classes Fl_System_Driver and Fl_Screen_Driver These virtual members are moved from Fl_Screen_Driver to Fl_System_Driver - wait(double) - ready() These virtual members are moved from Fl_System_Driver to Fl_Screen_Driver - copy(const char *stuff, int len, int clipboard, const char *type) - void paste(Fl_Widget &widget, int clipboard, const char *type) - clipboard_contains(const char *type) - clipboard_notify_change() These members are moved from Fl_X11_Screen_Driver to Fl_X11_System_Driver - poll_or_select_with_delay(double time_to_wait) - poll_or_select() and are made virtual in preparation for the introduction of class Fl_Unix_System_Driver. --- src/Fl_Screen_Driver.H | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/Fl_Screen_Driver.H') diff --git a/src/Fl_Screen_Driver.H b/src/Fl_Screen_Driver.H index fae5b0ff2..e7a64b542 100644 --- a/src/Fl_Screen_Driver.H +++ b/src/Fl_Screen_Driver.H @@ -105,8 +105,6 @@ public: virtual void beep(int) {} // --- global events virtual void flush() {} // must override - virtual double wait(double) { return 0.0; } // must override - virtual int ready() { return 0; } // must override virtual void grab(Fl_Window *) {} // --- global colors /* the default implementation of parse_color() may be enough */ @@ -203,6 +201,14 @@ public: virtual void default_icons(const Fl_RGB_Image *icons[], int count); // this one is implemented in print_button.cxx static int print_or_copy_window(Fl_Window*, bool, int); + // implement to support copy-to-clipboard + virtual void copy(const char */*stuff*/, int /*len*/, int /*clipboard*/, const char */*type*/) {} + // implement to support paste-from-clipboard + virtual void paste(Fl_Widget &, int /*clipboard*/, const char */*type*/) {} + // implement to support paste-from-clipboard + virtual int clipboard_contains(const char */*type*/) {return 0;} + // implement to support paste-from-clipboard + virtual void clipboard_notify_change() {} }; #endif // !FL_SCREEN_DRIVER_H -- cgit v1.2.3