KJB
|
#include <gui_event_listener.h>
Public Member Functions | |
virtual void | reset_event () |
virtual bool | mouse_event (int, int, int, int) |
virtual bool | mouse_double_event (int, int, int, int) |
virtual bool | motion_event (int, int) |
virtual bool | passive_motion_event (int, int) |
virtual bool | keyboard_event (unsigned int, int, int) |
virtual bool | special_event (int, int, int) |
Event listener that returns false for all events.
Listener classes that only wish do implement one or two event handlers can inherit from this as a convenient way to avoid writing a bunch of one-line methods.
Private inheritance is preferred, so the compiler can still catch virtual override mismatch bugs. For example:
|
inlinevirtual |
Event called when ascii keys are pressed
Implements Event_listener.
|
inlinevirtual |
Event called when mouse is dragged
Implements Event_listener.
|
inlinevirtual |
Event called when mouse is clicked
Implements Event_listener.
|
inlinevirtual |
Event called when mouse is clicked
Implements Event_listener.
|
inlinevirtual |
Event called when mouse is moved without clicking ("hover")
Implements Event_listener.
|
inlinevirtual |
|
inlinevirtual |
Event called when other keys are pressed (arrows, pgup, f1, f2, ...)
Implements Event_listener.