25 #ifndef YSimpleEventHandler_h 26 #define YSimpleEventHandler_h 141 #endif // YSimpleEventHandler_h virtual ~YSimpleEventHandler()
Destructor.
YEvent * consumePendingEvent()
Consumes the pending event.
Simple event handler suitable for most UIs.
bool eventPendingFor(YWidget *widget) const
Returns 'true' if there is any event pending for the specified widget.
Abstract base class for events to be returned upon UI::UserInput() and related functions.
void sendEvent(YEvent *event_disown)
Widget event handlers call this when an event occured that should be the answer to a UserInput() / Po...
bool eventsBlocked() const
Returns 'true' if events are currently blocked.
void clear()
Clears any pending event (deletes the corresponding object).
void deleteEvent(YEvent *event)
Delete an event.
void blockEvents(bool block=true)
Block (or unblock) events.
void unblockEvents()
Unblock events previously blocked.
YSimpleEventHandler()
Constructor.
YEvent * pendingEvent() const
Returns the last event that isn't processed yet or 0 if there is none.
void deletePendingEventsFor(YWidget *widget)
Delete any pending events for the specified widget.