diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2016-03-01 00:54:21 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2016-03-01 00:54:21 +0000 |
| commit | 95824506fe2f410e1cd37e9d2bed58af6f558a0a (patch) | |
| tree | f8c18f415bcdbb1e6e27ecf7c5c754768fc166bd /src/Fl_cocoa.mm | |
| parent | 6521bb2562c037dbb457bae42970989d1de5b089 (diff) | |
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
Diffstat (limited to 'src/Fl_cocoa.mm')
| -rw-r--r-- | src/Fl_cocoa.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 5b70130ad..291efdf19 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -554,7 +554,7 @@ static void do_timer(CFRunLoopTimerRef timer, void* data) fl_unlock_function(); } -void Fl::add_timeout(double time, Fl_Timeout_Handler cb, void* data) +void Fl_Cocoa_Screen_Driver::add_timeout(double time, Fl_Timeout_Handler cb, void* data) { // check, if this timer slot exists already for (int i = 0; i < mac_timer_used; ++i) { @@ -607,7 +607,7 @@ void Fl::add_timeout(double time, Fl_Timeout_Handler cb, void* data) } } -void Fl::repeat_timeout(double time, Fl_Timeout_Handler cb, void* data) +void Fl_Cocoa_Screen_Driver::repeat_timeout(double time, Fl_Timeout_Handler cb, void* data) { if (current_timer) { // k = how many times 'time' seconds after the last scheduled timeout until the future @@ -623,7 +623,7 @@ void Fl::repeat_timeout(double time, Fl_Timeout_Handler cb, void* data) add_timeout(time, cb, data); } -int Fl::has_timeout(Fl_Timeout_Handler cb, void* data) +int Fl_Cocoa_Screen_Driver::has_timeout(Fl_Timeout_Handler cb, void* data) { for (int i = 0; i < mac_timer_used; ++i) { MacTimeout& t = mac_timers[i]; @@ -634,7 +634,7 @@ int Fl::has_timeout(Fl_Timeout_Handler cb, void* data) return 0; } -void Fl::remove_timeout(Fl_Timeout_Handler cb, void* data) +void Fl_Cocoa_Screen_Driver::remove_timeout(Fl_Timeout_Handler cb, void* data) { for (int i = 0; i < mac_timer_used; ++i) { MacTimeout& t = mac_timers[i]; |
