From 95824506fe2f410e1cd37e9d2bed58af6f558a0a Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Tue, 1 Mar 2016 00:54:21 +0000 Subject: Moved timer code to screen drivers. Not sure if this should be in System Drivers instead. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11253 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Screen_Driver.H | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'FL') diff --git a/FL/Fl_Screen_Driver.H b/FL/Fl_Screen_Driver.H index 420d555c4..36f52edd2 100644 --- a/FL/Fl_Screen_Driver.H +++ b/FL/Fl_Screen_Driver.H @@ -21,6 +21,7 @@ #include #include +#include // TODO: add text composition? // TODO: add Fl::display @@ -84,6 +85,11 @@ public: virtual int parse_color(const char* p, uchar& r, uchar& g, uchar& b) = 0; virtual void get_system_colors() = 0; virtual const char *get_system_scheme(); + // --- global timers + virtual void add_timeout(double time, Fl_Timeout_Handler cb, void *argp) = 0; + virtual void repeat_timeout(double time, Fl_Timeout_Handler cb, void *argp) = 0; + virtual int has_timeout(Fl_Timeout_Handler cb, void *argp) = 0; + virtual void remove_timeout(Fl_Timeout_Handler cb, void *argp) = 0; }; -- cgit v1.2.3