summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
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/WinAPI
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/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H10
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_System_Driver.H10
2 files changed, 10 insertions, 10 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
index c621f7e5e..6754396ff 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
@@ -61,8 +61,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 void get_system_colors();
@@ -86,6 +84,14 @@ public:
}
virtual void desktop_scale_factor();
virtual void default_icons(const Fl_RGB_Image *icons[], int count);
+ // this one is implemented in Fl_win32.cxx
+ virtual void copy(const char *stuff, int len, int clipboard, const char *type);
+ // this one is implemented in Fl_win32.cxx
+ virtual void paste(Fl_Widget &receiver, int clipboard, const char *type);
+ // this one is implemented in Fl_win32.cxx
+ virtual int clipboard_contains(const char *type);
+ // this one is implemented in Fl_win32.cxx
+ virtual void clipboard_notify_change();
};
diff --git a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
index 60dca9d17..3e6a86648 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_System_Driver.H
@@ -107,14 +107,6 @@ public:
virtual int case_insensitive_filenames() {return 1;}
// this one is implemented in Fl_win32.cxx
virtual const char *filename_name(const char *buf);
- // this one is implemented in Fl_win32.cxx
- virtual void copy(const char *stuff, int len, int clipboard, const char *type);
- // this one is implemented in Fl_win32.cxx
- virtual void paste(Fl_Widget &receiver, int clipboard, const char *type);
- // this one is implemented in Fl_win32.cxx
- virtual int clipboard_contains(const char *type);
- // this one is implemented in Fl_win32.cxx
- virtual void clipboard_notify_change();
virtual void add_fd(int fd, int when, Fl_FD_Handler cb, void* = 0);
virtual void add_fd(int fd, Fl_FD_Handler cb, void* = 0);
virtual void remove_fd(int, int when);
@@ -123,6 +115,8 @@ public:
virtual char* strdup(const char *s) { return ::_strdup(s); }
virtual void lock_ring();
virtual void unlock_ring();
+ virtual double wait(double time_to_wait);
+ virtual int ready();
};
#endif // FL_WINAPI_SYSTEM_DRIVER_H