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