summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
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/Fl.cxx
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/Fl.cxx')
-rw-r--r--src/Fl.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index a37e1a137..28fc04c5f 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -389,7 +389,7 @@ void Fl::add_clipboard_notify(Fl_Clipboard_Notify_Handler h, void *data) {
clip_notify_list = node;
- Fl::system_driver()->clipboard_notify_change();
+ Fl::screen_driver()->clipboard_notify_change();
}
void Fl::remove_clipboard_notify(Fl_Clipboard_Notify_Handler h) {
@@ -402,7 +402,7 @@ void Fl::remove_clipboard_notify(Fl_Clipboard_Notify_Handler h) {
*prev = node->next;
delete node;
- Fl::system_driver()->clipboard_notify_change();
+ Fl::screen_driver()->clipboard_notify_change();
return;
}
@@ -502,7 +502,7 @@ double Fl::wait(double time_to_wait) {
// platform dependent part:
- return screen_driver()->wait(time_to_wait);
+ return system_driver()->wait(time_to_wait);
}
#define FOREVER 1e20
@@ -589,7 +589,7 @@ int Fl::check() {
*/
int Fl::ready()
{
- return screen_driver()->ready();
+ return system_driver()->ready();
}
int Fl::program_should_quit_ = 0;
@@ -1444,12 +1444,12 @@ void Fl::selection(Fl_Widget &owner, const char* text, int len) {
\see Fl::paste(Fl_Widget &receiver, int clipboard, const char* type)
*/
void Fl::paste(Fl_Widget &receiver) {
- Fl::system_driver()->paste(receiver, 0, Fl::clipboard_plain_text);
+ Fl::screen_driver()->paste(receiver, 0, Fl::clipboard_plain_text);
}
void Fl::paste(Fl_Widget &receiver, int clipboard, const char *type)
{
- Fl::system_driver()->paste(receiver, clipboard, type);
+ Fl::screen_driver()->paste(receiver, clipboard, type);
}
////////////////////////////////////////////////////////////////
@@ -1958,12 +1958,12 @@ const char * fl_filename_name(const char *name) {
}
void Fl::copy(const char *stuff, int len, int clipboard, const char *type) {
- Fl::system_driver()->copy(stuff, len, clipboard, type);
+ Fl::screen_driver()->copy(stuff, len, clipboard, type);
}
int Fl::clipboard_contains(const char *type)
{
- return Fl::system_driver()->clipboard_contains(type);
+ return Fl::screen_driver()->clipboard_contains(type);
}