summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-15 09:17:56 +0000
committerPierre Ossman <ossman@cendio.se>2014-09-15 09:17:56 +0000
commite145df21652a643c358afabe979cdca8e0c55429 (patch)
tree908cb2516072100c3fc4198242e71e5d358955fb /FL
parent321fb4ed7aa9e36e3b2fc5c95c3c2c3652179366 (diff)
Add methods to intercept low level system events.
This gives applications the means to handle some low level integration with the system that might otherwise not be possible without modifying FLTK itself. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H5
1 files changed, 5 insertions, 0 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index e0bcd3194..67de3a9bf 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -96,6 +96,9 @@ typedef void (*Fl_FD_Handler)(FL_SOCKET fd, void *data);
/** Signature of add_handler functions passed as parameters */
typedef int (*Fl_Event_Handler)(int event);
+/** Signature of add_system_handler functions passed as parameters */
+typedef int (*Fl_System_Handler)(void *event, void *data);
+
/** Signature of set_abort functions passed as parameters */
typedef void (*Fl_Abort_Handler)(const char *format,...);
@@ -770,6 +773,8 @@ public:
static void focus(Fl_Widget*);
static void add_handler(Fl_Event_Handler h);
static void remove_handler(Fl_Event_Handler h);
+ static void add_system_handler(Fl_System_Handler h, void *data);
+ static void remove_system_handler(Fl_System_Handler h);
static void event_dispatch(Fl_Event_Dispatch d);
static Fl_Event_Dispatch event_dispatch();
/** @} */