32 #ifndef TBX_TOOLACTION_H_ 33 #define TBX_TOOLACTION_H_ 37 #include "eventinfo.h" 42 class ToolActionSelectedListener;
52 enum {TOOLBOX_CLASS = 0x4014};
134 void set_action(
int select_action,
int adjust_action);
135 void get_action(
int &select_action,
int &adjust_action)
const;
192 bool adjust()
const {
return (_data.word[3] & 1)!=0;}
197 bool select()
const {
return (_data.word[3] & 4)!=0;}
202 bool on()
const {
return (_data.word[4] != 0);}
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
This is the base class for all Gadgets.
Definition: gadget.h:48
ObjectId handle() const
Return the object handle for his component.
Definition: component.h:95
void check_toolbox_class(int class_id) const
Check the underlying gadget class for this object has the given class id.
Definition: gadget.cc:47
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:71
Base class for commands in tbx.
Definition: command.h:36
Base class for components in an object.
Definition: component.h:42
bool bool_property(int property_id) const
Get a boolean property from the toolbox Component.
Definition: component.cc:214
ComponentId id() const
Get the component ID of this component.
Definition: component.h:103
The Window object represents a toolbox window.
Definition: window.h:69
Class to provide information on a toolbox event.
Definition: eventinfo.h:48
Base class for all toolbox event listeners.
Definition: listener.h:33
ObjectId _handle
Underlying toolbox handle.
Definition: component.h:45
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:41
int _id
Underlying toolbox component id.
Definition: component.h:46
Class to manipulate a toolbox object.
Definition: object.h:50