tbx
0.7.3
|
Keyboard short cut. More...
#include <resshortcut.h>
Public Member Functions | |
ResShortcut (const ResShortcut &other) | |
Construct shortcut as a copy of another. More... | |
ResShortcut & | operator= (const ResShortcut &other) |
Assign this shortcut to be a copy of another. More... | |
ResShortcut (int code) | |
Construct a new shortcut for the given key code. More... | |
unsigned int | flags () const |
Get all flags as a word raw access. More... | |
void | flags (unsigned int value) |
Set all flags as a word. More... | |
bool | transient () const |
Check if show object will be shown transiently. More... | |
void | transient (bool b) |
Set if show object will be shown transiently. More... | |
int | key_code () const |
Get the WIMP key code for shortcut. More... | |
void | key_code (int code) |
Set the WIMP key code for shortcut. More... | |
int | event_id () const |
Get the event ID to be generated for key. More... | |
void | event_id (int id) |
Set the event ID to be generated for key. More... | |
const char * | show () const |
Get the Toolbox object to show. More... | |
void | show (const char *obj) |
Set the Toolbox object to show. More... | |
void | show (const std::string &obj) |
Set the Toolbox object to show. More... | |
![]() | |
ResBase (const ResBase &other) | |
Copy constructor. More... | |
virtual | ~ResBase () |
Destructor. | |
ResBase & | operator= (const ResBase &other) |
Assignment. More... | |
Protected Member Functions | |
void | make_writeable () |
Make item writeable. | |
![]() | |
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... | |
Friends | |
class | ResWindow |
class | tbx::Window |
Additional Inherited Members | |
![]() | |
ResImpl * | _impl |
Internal Resource implementation. | |
Keyboard short cut.
|
inline |
Construct shortcut as a copy of another.
other | shortcut to copy |
|
inline |
Construct a new shortcut for the given key code.
code | WIMP key code for the short cut |
|
inline |
Get the event ID to be generated for key.
|
inline |
Set the event ID to be generated for key.
id | event ID or 0 if none |
|
inline |
Get all flags as a word raw access.
Not normally used as there are named methods that allow access to the individual items in the flags
|
inline |
Set all flags as a word.
Not normally used as there are named methods that allow access to the individual items in the flags
|
inline |
Get the WIMP key code for shortcut.
|
inline |
Set the WIMP key code for shortcut.
code | WIMP key code |
|
inline |
Assign this shortcut to be a copy of another.
other | shortcut to copy |
|
inline |
Get the Toolbox object to show.
|
inline |
Set the Toolbox object to show.
obj | pointer to zero terminated object name or 0 if none |
|
inline |
Set the Toolbox object to show.
obj | object name |
|
inline |
Check if show object will be shown transiently.
|
inline |
Set if show object will be shown transiently.
transient means the show object will automatically be closed if a click occurs outside it.
b | set to true if show object should be shown transiently |