32 #ifndef TBX_ADJUSTER_H_
33 #define TBX_ADJUSTER_H_
37 #include "eventinfo.h"
42 class AdjusterClickedListener;
51 enum {TOOLBOX_CLASS = 768};
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
ObjectId handle() const
Return the object handle for his component.
Definition: component.h:95
Listener for Adjuster Clicked events.
Definition: adjuster.h:156
const IdBlock & id_block() const
IdBlock for the current event.
Definition: eventinfo.h:71
The Window object represents a toolbox window.
Definition: window.h:70
virtual void adjuster_clicked(const AdjusterClickedEvent &clicked_event)=0
Called when an adjuster arrow was clicked.
PollBlock & _data
raw data from the event
Definition: eventinfo.h:53
An Adjuster is a gadget that shows two arrows facing in opposite directions either vertically or hori...
Definition: adjuster.h:49
Adjuster & operator=(const Component &other)
Assign a adjuster to refer to the same underlying toolbox component as an existing Gadget.
Definition: adjuster.h:108
Base class for components in an object.
Definition: component.h:42
Structure holding the raw data from a call to Wimp_Poll.
Definition: pollinfo.h:72
ObjectId _handle
Underlying toolbox handle.
Definition: component.h:45
ComponentId id() const
Get the component ID of this component.
Definition: component.h:103
void remove_clicked_listener(AdjusterClickedListener *listener)
Remove listener for.
Definition: adjuster.cc:54
Information passed back by the Toolbox with each toolbox event providing information on where the eve...
Definition: pollinfo.h:42
Adjuster(const Gadget &other)
Construct a adjuster from another gadget.
Definition: adjuster.h:77
Event information for Adjuster Clicked event.
Definition: adjuster.h:132
bool operator!=(const Gadget &other) const
Check if this adjuster refers to the same underlying toolbox gadget as another gadget.
Definition: adjuster.h:122
Adjuster & operator=(const Gadget &other)
Assign a adjuster to refer to the same underlying toolbox gadget as an existing Gadget.
Definition: adjuster.h:99
~Adjuster()
Destroy a adjuster gadget.
Definition: adjuster.h:59
Base class for all toolbox event listeners.
Definition: listener.h:34
bool up() const
true if up/right arrow was clicked.
Definition: adjuster.h:144
AdjusterClickedEvent(IdBlock &id_block, PollBlock &data)
Construct from toolbox event information.
Definition: adjuster.h:137
bool operator==(const Gadget &other) const
Check if this adjuster refers to the same underlying toolbox gadget as another gadget.
Definition: adjuster.h:115
int _id
Underlying toolbox component id.
Definition: component.h:46
void add_clicked_listener(AdjusterClickedListener *listener)
Add listener for.
Definition: adjuster.cc:46
This is the base class for all Gadgets.
Definition: gadget.h:49
Adjuster & operator=(const Adjuster &other)
Assign a adjuster to refer to the same underlying toolbox gadget as another.
Definition: adjuster.h:91
int word[64]
Array containing information return from Wimp_Poll.
Definition: pollinfo.h:76
Adjuster(const Adjuster &other)
Construct a adjuster from another adjuster.
Definition: adjuster.h:66
Adjuster(const Component &other)
Construct a adjuster from a component.
Definition: adjuster.h:85
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
bool down() const
false if up/right arrow was clicked.
Definition: adjuster.h:149
Adjuster()
Construct an uninitialised adjuster.
Definition: adjuster.h:53
Class to provide information on a toolbox event.
Definition: eventinfo.h:49