summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorMatthias Melcher <fltk@matthiasm.com>2011-01-26 19:14:38 +0000
committerMatthias Melcher <fltk@matthiasm.com>2011-01-26 19:14:38 +0000
commit60eae78679eed161fbfb0826f052114c78b61bba (patch)
treee2414d6f5931477743d42253abdfdadb49d4db02 /FL
parent5e0710fcd05779725e1ec69e7cdbb213f795834f (diff)
Slightly changed the event dispatch functions to allow for exception handling.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8318 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H11
1 files changed, 3 insertions, 8 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index ad361414b..f37691a2b 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -687,6 +687,7 @@ public:
// event destinations:
static int handle(int, Fl_Window*);
+ static int handle_(int, Fl_Window*);
/** Gets the widget that is below the mouse.
\see belowmouse(Fl_Widget*) */
static Fl_Widget* belowmouse() {return belowmouse_;}
@@ -700,14 +701,8 @@ public:
static void focus(Fl_Widget*);
static void add_handler(Fl_Event_Handler h);
static void remove_handler(Fl_Event_Handler h);
- /** Set a new event dispatch function.
- The event dispatch function is called after native events are converted to
- FLTK events, but before they are handled by FLTK. If the dispatch function
- returns a value other than 0, FLTK will not handle the event any further.
- \param d new dispatch function, can be NULL */
- static void event_dispatch(Fl_Event_Dispatch d) { e_dispatch = d; }
- /** Return the current event dispatch function. */
- static Fl_Event_Dispatch event_dispatch() { return e_dispatch; }
+ static void event_dispatch(Fl_Event_Dispatch d);
+ static Fl_Event_Dispatch event_dispatch();
/** @} */
/** \defgroup fl_clipboard Selection & Clipboard functions