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};
Event information for AboutToBeShown event.
Definition: abouttobeshownlistener.h:38
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
Point & top_left() const
Return the top left coordinate where the object will be shown.
Definition: abouttobeshownlistener.h:57
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:72
Point & top_left()
Return a reference to the top left coordinate.
Definition: abouttobeshownlistener.h:59
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:42
AboutToBeShownEvent(IdBlock &id_block, PollBlock &data)
Construct from information returned from the toolbox poll.
Definition: abouttobeshownlistener.h:46
ShowType
How the object has been shown.
Definition: abouttobeshownlistener.h:52
ShowFullSpec & full_spec()
Return a reference to the Full specification of where the object has been shown.
Definition: abouttobeshownlistener.h:67
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:77
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
Class to represent a position in two dimensional space.
Definition: point.h:37
Base class for all toolbox event listeners.
Definition: listener.h:34
virtual void about_to_be_shown(AboutToBeShownEvent &event)=0
Called when an object is about to be shown.
ShowType show_type() const
Return how the object has been shown.
Definition: abouttobeshownlistener.h:54
Structure used to specify exact position and size for an object derived from tbx::ShowFullObject.
Definition: showfullspec.h:46
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
Class to provide information on a toolbox event.
Definition: eventinfo.h:49