summaryrefslogtreecommitdiff
path: root/src/drivers/X11/Fl_X11_Screen_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-02-03 07:03:26 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-02-03 07:03:44 +0100
commit2e6e0b9c36fbf92d0d551aca077580e7a57c266a (patch)
tree206ba84e89b8624f4377c4f9b90862ea892f9cc7 /src/drivers/X11/Fl_X11_Screen_Driver.H
parentd9451a86696a2aa58d46cb18180c9344a5e0c179 (diff)
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.
Diffstat (limited to 'src/drivers/X11/Fl_X11_Screen_Driver.H')
-rw-r--r--src/drivers/X11/Fl_X11_Screen_Driver.H12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/drivers/X11/Fl_X11_Screen_Driver.H b/src/drivers/X11/Fl_X11_Screen_Driver.H
index c8676f347..4b877c937 100644
--- a/src/drivers/X11/Fl_X11_Screen_Driver.H
+++ b/src/drivers/X11/Fl_X11_Screen_Driver.H
@@ -45,8 +45,6 @@ protected:
} FLScreenInfo;
FLScreenInfo screens[MAX_SCREENS];
float dpi[MAX_SCREENS][2];
- int poll_or_select();
- int poll_or_select_with_delay(double time_to_wait);
int get_mouse_unscaled(int &xx, int &yy);
public:
@@ -78,8 +76,6 @@ public:
virtual void beep(int type);
// --- global events
virtual void flush();
- virtual double wait(double time_to_wait);
- virtual int ready();
virtual void grab(Fl_Window* win);
// --- global colors
virtual int parse_color(const char* p, uchar& r, uchar& g, uchar& b);
@@ -98,6 +94,14 @@ public:
// --- compute dimensions of an Fl_Offscreen
virtual void offscreen_size(Fl_Offscreen o, int &width, int &height);
virtual void default_icons(const Fl_RGB_Image *icons[], int count);
+ // this one is in Fl_x.cxx
+ virtual void copy(const char *stuff, int len, int clipboard, const char *type);
+ // this one is in Fl_x.cxx
+ virtual void paste(Fl_Widget &receiver, int clipboard, const char *type);
+ // this one is in Fl_x.cxx
+ virtual int clipboard_contains(const char *type);
+ // this one is in Fl_x.cxx
+ virtual void clipboard_notify_change();
};