25 #ifndef TBX_RES_RESFONTDBOX_H
26 #define TBX_RES_RESFONTDBOX_H
28 #include "resobject.h"
40 enum {CLASS_ID = 0x82a00 };
102 init_message(24,
"The quick brown fox jumps over the lazy dog");
280 #endif // TBX_RES_RESFONTDBOX_H
void try_string(const std::string &value)
Set the string that is used to display an example of the currently selected font.
Definition: resfontdbox.h:252
ResFontDbox & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resfontdbox.h:70
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
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
ResFontDbox & operator=(const ResFontDbox &other)
Assign from another font dialogue resource.
Definition: resfontdbox.h:82
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Base class for a resource object that can be edited.
Definition: resobject.h:53
void initial_height(int value)
Set the initial height in the dialogue.
Definition: resfontdbox.h:218
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resfontdbox.h:148
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resfontdbox.h:136
const char * title() const
Get the title of the dialogue.
Definition: resfontdbox.h:167
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resfontdbox.h:130
ResFontDbox(const ResObject &other)
Construct a font dialogue resource from a ResObject.
Definition: resfontdbox.h:48
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resfontdbox.h:175
void initial_font(const std::string &value)
Set the name of the selected font.
Definition: resfontdbox.h:206
void try_string(const char *value)
Set the string that is used to display an example of the currently selected font.
Definition: resfontdbox.h:245
int initial_height() const
Get the initial height in the dialogue.
Definition: resfontdbox.h:212
int initial_aspect() const
Get the aspect ratio of the font.
Definition: resfontdbox.h:224
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resfontdbox.h:273
const char * try_string() const
Get the string that is used to display an example of the currently selected font.
Definition: resfontdbox.h:237
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
ResFontDbox(const ResFontDbox &other)
Construct a font dialogue resource by copying another.
Definition: resfontdbox.h:58
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: resfontdbox.h:142
int max_title() const
Get the maximum size the title can be.
Definition: resfontdbox.h:187
void flags(int value)
Set all the flags.
Definition: resfontdbox.h:124
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
void initial_font(const char *value)
Set the name of the selected font.
Definition: resfontdbox.h:200
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resfontdbox.h:183
ResFontDbox(std::string name)
Construct a font dialogue resource.
Definition: resfontdbox.h:95
bool include_system_font() const
Check if the system font should be included in the dialogue.
Definition: resfontdbox.h:154
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resfontdbox.h:266
void initial_aspect(int value)
Set the aspect ratio of the font.
Definition: resfontdbox.h:230
Class for FontDbox object template.
Definition: resfontdbox.h:37
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resfontdbox.h:259
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
void include_system_font(bool value)
Set if the system font should be included in the dialogue.
Definition: resfontdbox.h:160
int flags() const
Raw access to all the object flags.
Definition: resfontdbox.h:115
const char * initial_font() const
Get the name of the selected font.
Definition: resfontdbox.h:194