25 #ifndef TBX_RES_RESCOLOURDBOX_H 26 #define TBX_RES_RESCOLOURDBOX_H 28 #include "resobject.h" 40 enum {CLASS_ID = 0x829C0 };
215 #endif // TBX_RES_RESCOLOURDBOX_H A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
const char * title() const
Get the title of the dialogue.
Definition: rescolourdbox.h:175
ResColourDbox(const ResObject &other)
Construct a colour dialogue resource from a ResObject.
Definition: rescolourdbox.h:48
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: rescolourdbox.h:131
void message_with_length(int offset, const char *value, int length=-1)
Assign a message where the length is at offset+4.
Definition: resbase.cc:1639
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: rescolourdbox.h:137
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
Classes to use/edit toolbox resources in memory.
ResColourDbox(const ResColourDbox &other)
Construct a colour dialogue resource by copying another.
Definition: rescolourdbox.h:58
ResColourDbox & operator=(const ResObject &other)
Assign from a ResObject.
Definition: rescolourdbox.h:70
int colour() const
Get the initial selected colour.
Definition: rescolourdbox.h:202
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: rescolourdbox.h:143
int max_title() const
Get the maximum size the title can be.
Definition: rescolourdbox.h:195
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
bool select_none() const
Check if no colour option is selected.
Definition: rescolourdbox.h:162
ResColourDbox(std::string name)
Construct a colour dialogue resource.
Definition: rescolourdbox.h:95
bool include_none() const
Check if an option to select no colour should be included.
Definition: rescolourdbox.h:149
void include_none(bool value)
Set if an option to select no colour should be included.
Definition: rescolourdbox.h:155
void flags(int value)
Set all the flags.
Definition: rescolourdbox.h:119
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
void colour(int value)
Set the initial selected colour.
Definition: rescolourdbox.h:208
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: rescolourdbox.h:191
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Base class for a resource object that can be edited.
Definition: resobject.h:52
ResColourDbox & operator=(const ResColourDbox &other)
Assign from another colour dialogue resource.
Definition: rescolourdbox.h:82
void select_none(bool value)
Set if no colour option is selected.
Definition: rescolourdbox.h:168
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: rescolourdbox.h:183
Class for ColourDbox object template.
Definition: rescolourdbox.h:36
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: rescolourdbox.h:125
int flags() const
Raw access to all the object flags.
Definition: rescolourdbox.h:110
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736