FLTK logo

Re: [fltk/fltk] Add lambdas with captures as callback option. (PR #1597)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Library      Forums      Links      Apps     Login 
[  All Forums  |  Back to fltk.issues  ]
 
[ Previous Message ] [ New Message | Reply ] [ Next Message ]

Re: [fltk/fltk] Add lambdas with captures as callback option. (PR #1597) Matthias Melcher 10:48 Sep 03  
 
MatthiasWM left a comment (fltk/fltk#1597)

Just looked the implementation of Fl_Timeout. Yes, that should work well.

There seems to be a pretty complete list of handler (or callbacks) in Fl/core/function_types.H:

typedef void (*Fl_Timeout_Handler)(void *data);
typedef void (*Fl_Awake_Handler)(void *data);
typedef void (*Fl_Idle_Handler)(void *data);
typedef void (*Fl_Old_Idle_Handler)();
typedef void (*Fl_FD_Handler)(FL_SOCKET fd, void *data);
typedef int (*Fl_Event_Handler)(int event);
typedef int (*Fl_System_Handler)(void *event, void *data);
typedef int (*Fl_Event_Dispatch)(int event, Fl_Window *w);
typedef void (*Fl_Abort_Handler)(const char *format,...);
typedef void (*Fl_Atclose_Handler)(Fl_Window *window, void *data);
typedef int (*Fl_Args_Handler)(int argc, char **argv, int &i);
typedef void (*Fl_Clipboard_Notify_Handler)(int source, void *data);

I'll have to check if there are any other handlers that could benefit.

—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/pull/1597/c5524538921@github.com>

[ Direct Link to Message ]
 
     
[ Previous Message ] [ New Message | Reply ] [ Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2026 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.