From 29d9e31c51e6c11d6e33abf9bc4551afd9de3836 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 31 Jan 2022 22:27:17 +0100 Subject: Consolidate timeout handling across platforms (#379) Add Fl_Timeout class Move platform independent code of Fl::wait() to main part - basic timeout handling - Fl::run_checks() - Fl::run_idle() - Fl::idle() - waiting time calculation (next timeout) - remove platform dependent "screen driver" stuff --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H') diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H index 9bd8485a3..c621f7e5e 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H @@ -1,8 +1,7 @@ // -// Definition of Windows screen interface -// for the Fast Light Tool Kit (FLTK). +// Windows screen interface for the Fast Light Tool Kit (FLTK). // -// Copyright 2010-2018 by Bill Spitzak and others. +// Copyright 2010-2022 by Bill Spitzak and others. // // This library is free software. Distribution and use rights are outlined in // the file "COPYING" which should have been included with this file. If this @@ -67,11 +66,6 @@ public: virtual void grab(Fl_Window* win); // --- global colors virtual void get_system_colors(); - // --- global timers - virtual void add_timeout(double time, Fl_Timeout_Handler cb, void *argp); - virtual void repeat_timeout(double time, Fl_Timeout_Handler cb, void *argp); - virtual int has_timeout(Fl_Timeout_Handler cb, void *argp); - virtual void remove_timeout(Fl_Timeout_Handler cb, void *argp); virtual int dnd(int unused); virtual int compose(int &del); virtual Fl_RGB_Image *read_win_rectangle(int X, int Y, int w, int h, Fl_Window *win, bool may_capture_subwins, bool *did_capture_subwins); -- cgit v1.2.3