25 #ifndef TBX_USEREVENTLISTENER_H_ 26 #define TBX_USEREVENTLISTENER_H_ 29 #include "eventinfo.h" 69 virtual void user_event(
UserEvent &event) = 0;
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
PollBlock & data()
Return a PollBlock with the raw data of the event.
Definition: usereventlistener.h:49
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:71
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
UserEvent class holds details for a UserEventListener.
Definition: usereventlistener.h:37
Class to provide information on a toolbox event.
Definition: eventinfo.h:48
Base class for all toolbox event listeners.
Definition: listener.h:33
UserEvent(IdBlock &id_block, PollBlock &data)
Construct a user event listener with references to the underlying toolbox event.
Definition: usereventlistener.h:44
A UserEventListener can be used to capture any event on an object or component.
Definition: usereventlistener.h:62
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:41