tbx
0.7.6
|
Class for FontMenu object template. More...
#include <resfontmenu.h>
Public Types | |
enum | { CLASS_ID = 0x82a40 } |
Public Member Functions | |
ResFontMenu (const ResObject &other) | |
Construct a font menu resource from a ResObject. More... | |
ResFontMenu (const ResFontMenu &other) | |
Construct a font menu resource by copying another. More... | |
ResFontMenu & | operator= (const ResObject &other) |
Assign from a ResObject. More... | |
ResFontMenu & | operator= (const ResFontMenu &other) |
Assign from another font menu resource. More... | |
ResFontMenu (std::string name) | |
Construct a font menu resource. More... | |
int | flags () const |
Raw access to all the object flags. More... | |
void | flags (int value) |
Set all the flags. More... | |
bool | generate_about_to_be_shown () const |
Check if the about to be shown event should be generated. More... | |
void | generate_about_to_be_shown (bool value) |
Set if the about to be shown event should be generated. More... | |
bool | generate_has_been_hidden () const |
Check if the has been hidden event should be generated. More... | |
void | generate_has_been_hidden (bool value) |
Set if the has been hidden event should be generated. More... | |
bool | include_system_font () const |
Check if an option to select the system font should be included. More... | |
void | include_system_font (bool value) |
Set if an option to select the system font should be included. More... | |
const char * | ticked_font () const |
Get the name of the font that should be selected. More... | |
void | ticked_font (const char *value) |
Set the name of the font that should be selected. More... | |
void | ticked_font (const std::string &value) |
Set the name of the font that should be selected. More... | |
![]() | |
ResObject (const ResObject &other) | |
Copy constructor. | |
virtual | ~ResObject () |
Destructor. | |
ResObject & | operator= (const ResObject &other) |
Assignment. | |
bool | save (std::ostream &file) |
Save a resource object to a stream. More... | |
const ResObjectHeader * | object_header () const |
Return a pointer to the header information for this object. | |
const char * | name () const |
Return pointer to name of object. | |
void | name (std::string name) |
Set the name of the object. | |
int | class_id () const |
Return class id of object. | |
int | object_version () const |
Return version number * 100. | |
void | object_version (int new_version) |
Set version for object. | |
unsigned int | object_flags () const |
object flags - use methods below for named access to the bits of the flags | |
void | object_flags (unsigned int flags) |
Set the object flags for this object. More... | |
bool | create_on_load () const |
Get create on load flag. More... | |
void | create_on_load (bool value) |
Set if the object should be automatically created when the Resource file is loaded. More... | |
bool | show_on_create () const |
Get show on create flags. More... | |
void | show_on_create (bool value) |
Set if the object to be automatically shown when it is created. More... | |
bool | shared () const |
Get shared flag. More... | |
void | shared (bool value) |
Set if the object is to be a shared object. More... | |
bool | ancestor () const |
Get ancestor flags. More... | |
void | ancestor (bool value) |
Set if the object should be an ancestor object. More... | |
void | check_class_id (int class_id) const |
Check if this objects class id is as specified. More... | |
![]() | |
ResBase (const ResBase &other) | |
Copy constructor. More... | |
virtual | ~ResBase () |
Destructor. | |
ResBase & | operator= (const ResBase &other) |
Assignment. More... | |
Additional Inherited Members | |
![]() | |
static ResObject * | load (std::istream &file) |
Load a resource object from a stream. More... | |
static OsSpriteAreaPtr | client_sprite_pointer () |
Get pointer to client sprite area. More... | |
static void | client_sprite_pointer (OsSpriteAreaPtr ptr) |
Set Sprite area to use for new and loaded objects. | |
![]() | |
ResObject (std::string name, int class_id, int version, int object_size) | |
Protected constructor for creating a subclass. | |
ResObjectHeader * | object_header () |
Return a pointer to the header information for this object. | |
void | make_writeable () |
Make object writeable, call before any change. More... | |
ResData * | component_data (char *new_body, int offset, int size) const |
Extract a copy of a components data from this object. More... | |
void | insert_component (int offset, const ResImpl *comp_impl) |
Insert a component in an object. More... | |
void | replace_component (int offset, int old_size, const ResImpl *comp_impl) |
Replace a component. More... | |
void | erase_component (int offset, int size) |
Erase a component of the given size. More... | |
![]() | |
ResBase (ResImpl *impl) | |
Create from internal resource implementation. More... | |
const char * | string (int offset) const |
Return a string at the given offset. More... | |
void | string (int offset, const char *value) |
Set a string at the given offset. More... | |
void | string (int offset, std::string value) |
Set a string at the given offset. More... | |
void | string_with_length (int offset, const char *value, int length=-1) |
Assign a string where the length is at offset+4. More... | |
void | string_with_length (int offset, const std::string &value, int length=-1) |
Assign a string where the length is at offset+4. More... | |
const char * | message (int offset) const |
Get the message string at the given offset. More... | |
void | message (int offset, const char *value) |
Set a message at the given offset. More... | |
void | message (int offset, std::string value) |
Set a message at the given offset. More... | |
void | message_with_length (int offset, const char *value, int length=-1) |
Assign a message where the length is at offset+4. More... | |
void | message_with_length (int offset, const std::string &value, int length=-1) |
Assign a message where the length is at offset+4. More... | |
int | int_value (int offset) const |
Get an integer value. More... | |
void | int_value (int offset, int value) |
Set a number at the specified offset. More... | |
unsigned int | uint_value (int offset) const |
Get an unsigned integer value. More... | |
void | uint_value (int offset, unsigned int value) |
Set an unsigned number at the specified offset. More... | |
unsigned char | byte_value (int offset) const |
Get a byte value. More... | |
void | byte_value (int offset, unsigned char value) |
Set an unsigned byte (8 bit value) at the specified offset. More... | |
unsigned short | ushort_value (int offset) const |
Get a unsigned short value. More... | |
void | ushort_value (int offset, unsigned short value) |
Set an unsigned short (16 bit value) at the specified offset. More... | |
bool | flag (int offset, int mask) const |
Check if any of the bits in a mask are set. More... | |
void | flag (int offset, int mask, bool on) |
Set/clear the bits in mask. More... | |
int | flag_value (int offset, int mask) const |
Get the bits for the given mask. More... | |
void | flag_value (int offset, int mask, int value) |
Set bits in given mask clearing others. More... | |
void | init_string (int offset, const char *value) |
Initialise a string in a constructor helper. More... | |
void | init_message (int offset, const char *value) |
Initialise a message in a constructor helper. More... | |
void | init_sprite_area_ref (int offset) |
Initialise a sprite area reference. More... | |
void | init_object_ref (int offset) |
Initialise an object reference. More... | |
![]() | |
ResImpl * | _impl |
Internal Resource implementation. | |
Class for FontMenu object template.
|
inline |
Construct a font menu resource from a ResObject.
other | ResObject to construct from |
ResObjectClassMismatch | if the ResObject is not a font menu resource |
|
inline |
Construct a font menu resource by copying another.
other | ResFontMenu to copy |
|
inline |
Construct a font menu resource.
All options are false, events unset and messages are null.
name | the name of this object (maximum 12 characters) |
|
inline |
Raw access to all the object flags.
It is recommended you use the other methods in this class rather than use this directly.
|
inline |
Set all the flags.
It is recommended you use the other methods in this class rather than use this directly.
value | the new flags |
|
inline |
Check if the about to be shown event should be generated.
|
inline |
Set if the about to be shown event should be generated.
value | set to true if the about to be shown event should be generated |
|
inline |
Check if the has been hidden event should be generated.
|
inline |
Set if the has been hidden event should be generated.
value | set to true if the has been hidden event should be generated |
|
inline |
Check if an option to select the system font should be included.
|
inline |
Set if an option to select the system font should be included.
value | set to true if the system font option should be included |
|
inline |
Assign from another font menu resource.
other | button gadget resource to copy |
|
inline |
Assign from a ResObject.
other | ResObject to copy |
ResObjectClassMismatch | if the ResObject is not a font menu resource |
|
inline |
Get the name of the font that should be selected.
|
inline |
Set the name of the font that should be selected.
value | pointer to zero terminated name of initial font selected ("SystemFont" for the system font) or 0 if no font is selected. |
|
inline |
Set the name of the font that should be selected.
value | pointer to zero terminated name of initial font selected ("SystemFont" for the system font). |