25 #ifndef TBX_SCROLLLIST_H_ 26 #define TBX_SCROLLLIST_H_ 31 #include "eventinfo.h" 36 class ScrollListSelectionListener;
44 enum {TOOLBOX_CLASS = 0x401a};
141 void add_item(
const std::string &text,
int index = -1);
155 void item_text(
int index,
const std::string &text);
160 void font(
const std::string &name,
int width,
int height);
191 int index()
const {
return _data.word[5];}
208 int adjust()
const {
return (_data.word[4] & 4) != 0;}
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
int int_property(int property_id) const
Get an integer property from the toolbox Component.
Definition: component.cc:165
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
bool flag_property(int property_id, int flag) const
Check if a particular flag is set in a property.
Definition: component.cc:351
Sprite from a user sprite area.
Definition: sprite.h:447
Class to represent a standard desktop WIMP colour.
Definition: colour.h:146
Class for handling sprites from the Wimp sprite pool.
Definition: sprite.h:604
Base class for components in an object.
Definition: component.h:42
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
Class to represent a RGB colour.
Definition: colour.h:43
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