Called by the browser when a system event needs to be handled, such as a mouse event, a keyboard event, or a drawing event. The recommended way to implement HandleEvent is with the PLUGINEVENT_TYPE macros, like so: BEGIN_PLUGIN_EVENT_MAP()
EVENTTYPE_CASE(FB::MouseDownEvent, onMouseDown, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseUpEvent, onMouseUp, FB::PluginWindow)
EVENTTYPE_CASE(FB::MouseMoveEvent, onMouseMove, FB::PluginWindow)
END_PLUGIN_EVENT_MAP()
If you use these macros, you must also create the matching methods in your class. For example, the methods needed for the map above are: virtual bool onMouseDown(FB::MouseDownEvent *evt, FB::PluginWindow*); virtual bool onMouseUp(FB::MouseUpEvent *evt, FB::PluginWindow*); virtual bool onMouseMove(FB::MouseMoveEvent *evt, FB::PluginWindow*);
Definition at line 40 of file PluginEventSink.h. |
Generated on Mon Oct 17 2011 16:24:41 for FireBreath by
1.7.2
Labels:
