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
Class for FontDbox object template.
Definition: resfontdbox.h:36
void initial_aspect(int value)
Set the aspect ratio of the font.
Definition: resfontdbox.h:230
void initial_height(int value)
Set the initial height in the dialogue.
Definition: resfontdbox.h:218
ResFontDbox(const ResObject &other)
Construct a font dialogue resource from a ResObject.
Definition: resfontdbox.h:48
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
void include_system_font(bool value)
Set if the system font should be included in the dialogue.
Definition: resfontdbox.h:160
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
void flags(int value)
Set all the flags.
Definition: resfontdbox.h:124
void generate_about_to_be_shown(bool value)
Set if the about to be shown event should be generated.
Definition: resfontdbox.h:136
void initial_font(const char *value)
Set the name of the selected font.
Definition: resfontdbox.h:200
bool generate_dialogue_completed() const
Check if the dialogue completed event should be generated.
Definition: resfontdbox.h:142
int initial_aspect() const
Get the aspect ratio of the font.
Definition: resfontdbox.h:224
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
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
const char * window() const
Get the name of the window template that provides the window for this object.
Definition: resfontdbox.h:259
void title(const char *value, int max_length=-1)
Set the title of the dialogue.
Definition: resfontdbox.h:175
bool include_system_font() const
Check if the system font should be included in the dialogue.
Definition: resfontdbox.h:154
void window(const std::string &value)
Set the name of the window template that provides the window for this object.
Definition: resfontdbox.h:273
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
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
void window(const char *value)
Set the name of the window template that provides the window for this object.
Definition: resfontdbox.h:266
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
int initial_height() const
Get the initial height in the dialogue.
Definition: resfontdbox.h:212
void initial_font(const std::string &value)
Set the name of the selected font.
Definition: resfontdbox.h:206
void generate_dialogue_completed(bool value)
Set if the dialogue completed event should be generated.
Definition: resfontdbox.h:148
const char * try_string() const
Get the string that is used to display an example of the currently selected font. ...
Definition: resfontdbox.h:237
ResFontDbox & operator=(const ResObject &other)
Assign from a ResObject.
Definition: resfontdbox.h:70
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
Base class for a resource object that can be edited.
Definition: resobject.h:52
bool generate_about_to_be_shown() const
Check if the about to be shown event should be generated.
Definition: resfontdbox.h:130
void title(const std::string &value, int max_length=-1)
Set the title of the dialogue.
Definition: resfontdbox.h:183
int max_title() const
Get the maximum size the title can be.
Definition: resfontdbox.h:187
int flags() const
Raw access to all the object flags.
Definition: resfontdbox.h:115
ResFontDbox(std::string name)
Construct a font dialogue resource.
Definition: resfontdbox.h:95
const char * title() const
Get the title of the dialogue.
Definition: resfontdbox.h:167
const char * initial_font() const
Get the name of the selected font.
Definition: resfontdbox.h:194
ResFontDbox & operator=(const ResFontDbox &other)
Assign from another font dialogue resource.
Definition: resfontdbox.h:82
ResFontDbox(const ResFontDbox &other)
Construct a font dialogue resource by copying another.
Definition: resfontdbox.h:58
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
const char * name() const
Return pointer to name of object.
Definition: resobject.h:79
void check_class_id(int class_id) const
Check if this objects class id is as specified.
Definition: resobject.cc:383
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736