25 #ifndef TBX_ABOUTTOBESHOWNLISTENER_H 26 #define TBX_ABOUTTOBESHOWNLISTENER_H 29 #include "showfullspec.h" 30 #include "eventinfo.h" 52 enum ShowType {SHOW_DEFAULT = 0, SHOW_FULL_SPEC = 1, SHOW_TOP_LEFT = 2};
Point & top_left()
Return a reference to the top left coordinate.
Definition: abouttobeshownlistener.h:59
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
void about_to_be_shown_router(IdBlock &id_block, PollBlock &data, Listener *listener)
Static function to route about to be shown event.
Definition: abouttobeshownlistener.cc:39
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:76
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
AboutToBeShownEvent(IdBlock &id_block, PollBlock &data)
Construct from information returned from the toolbox poll.
Definition: abouttobeshownlistener.h:46
Structure used to specify exact position and size for an object derived from tbx::ShowFullObject.
Definition: showfullspec.h:45
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
Class to represent a position in two dimensional space.
Definition: point.h:36
ShowFullSpec & full_spec()
Return a reference to the Full specification of where the object has been shown.
Definition: abouttobeshownlistener.h:67
Point & top_left() const
Return the top left coordinate where the object will be shown.
Definition: abouttobeshownlistener.h:57
ShowType
How the object has been shown.
Definition: abouttobeshownlistener.h:52
Class to provide information on a toolbox event.
Definition: eventinfo.h:48
Base class for all toolbox event listeners.
Definition: listener.h:33
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
Event information for AboutToBeShown event.
Definition: abouttobeshownlistener.h:37
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:41
ShowType show_type() const
Return how the object has been shown.
Definition: abouttobeshownlistener.h:54