36 class UserEventListener;
37 class ObjectDeletedListener;
78 Object(
const std::string &template_name);
123 int toolbox_class()
const;
124 void check_toolbox_class(
int class_id)
const;
126 void *client_handle()
const;
127 void client_handle(
void *client_handle);
129 Object parent_object()
const;
131 Object ancestor_object()
const;
137 bool showing()
const;
140 void add_command(
int command_id,
Command *command);
141 void remove_command(
int command_id,
Command *command);
149 void remove_all_listeners();
154 void remove_listener(
int action,
Listener *listener);
159 int int_property(
int property_id)
const;
160 void int_property(
int property_id,
int value);
162 std::string string_property(
int property_id)
const;
163 void string_property(
int property_id,
const std::string &value);
164 int string_property_length(
int property_id)
const;
166 bool bool_property(
int property_id)
const;
167 void bool_property(
int property_id,
bool value);
ObjectId _handle
Handle for toolbox object.
Definition: object.h:173
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
void(* RawToolboxEventHandler)(IdBlock &id_block, PollBlock &data, Listener *listener)
Function type for handlers of raw (unprocessed) Toolbox events.
Definition: pollinfo.h:86
const ObjectId NULL_ObjectId
NULL object id.
Definition: handles.h:42
Base class for commands in tbx.
Definition: command.h:36
Classes to use/edit toolbox resources in memory.
Object()
Constructs an object unattached to a toolbox object.
Definition: object.h:63
Base class for components in an object.
Definition: component.h:42
unsigned int ObjectId
Type for underlying toolbox object id.
Definition: handles.h:31
Listener for toolbox object deleted event.
Definition: objectdeletedlistener.h:49
Base class for all toolbox event listeners.
Definition: listener.h:33
Object(const Object &other)
Construct an object referencing the same toolbox object as another.
Definition: object.h:76
Object & operator=(const Object &other)
Assign this object to reference the same toolbox object as another.
Definition: object.h:100
Base class for a resource object that can be edited.
Definition: resobject.h:52
bool operator==(const Object &other) const
Check if this object references the same toolbox object as another.
Definition: object.h:107
Object(ObjectId handle)
Construct an object referencing the given toolbox object.
Definition: object.h:70
bool null() const
Check if object has been initialised.
Definition: object.h:87
A UserEventListener can be used to capture any event on an object or component.
Definition: usereventlistener.h:62
Class to manipulate a toolbox object.
Definition: object.h:50
bool operator!=(const Object &other) const
Check if this object does not reference the same toolbox object as another.
Definition: object.h:114
ObjectId handle() const
Return the underlying toolbox object id this object references.
Definition: object.h:93