32 #ifndef TBX_FONTMENU_H_
33 #define TBX_FONTMENU_H_
35 #include "showpointobject.h"
37 #include "eventinfo.h"
43 class AboutToBeShownListener;
44 class HasBeenHiddenListener;
45 class FontMenuSelectionListener;
59 enum { TOOLBOX_CLASS = 0x82a40 };
193 std::string
font()
const {
return reinterpret_cast<const char *
>(
_data.
word[4]);}
ObjectId _handle
Handle for toolbox object.
Definition: object.h:173
Listener for about to be shown event.
Definition: abouttobeshownlistener.h:76
void check_toolbox_class(int class_id) const
Check if this objects toolbox class is as specified.
Definition: object.cc:122
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
int string_property_length(int property_id) const
Gets the size of a string properties buffer.
Definition: object.cc:530
int int_property(int property_id) const
Return the value of a property that returns an integer.
Definition: object.cc:435
std::string string_property(int property_id) const
Return the value of a property that returns text.
Definition: object.cc:477
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93
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
Object that can be shown at a specific position as well as its default place.
Definition: showpointobject.h:42
Listener for an object has been hidden event.
Definition: hasbeenhiddenlistener.h:36
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:41
Class to manipulate a toolbox object.
Definition: object.h:50