25 #ifndef TBX_RES_RESBUTTON_H
26 #define TBX_RES_RESBUTTON_H
28 #include "resgadget.h"
40 enum {TYPE_ID = 960 };
294 CLICK_SELECTS_DOUBLE,
297 CLICK_SELECTS_DOUBLE_DRAG,
300 CLICK_NOTIFY_AND_SELECTS_DRAG,
444 #endif // TBX_RES_RESBUTTON_H
unsigned short type() const
Get the gadget type.
Definition: resgadget.h:145
Base class for gadget memory resources.
Definition: resgadget.h:42
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
void init_string(int offset, const char *value)
Initialise a string in a constructor helper.
Definition: resbase.cc:1725
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 string_with_length(int offset, const char *value, int length=-1)
Assign a string where the length is at offset+4.
Definition: resbase.cc:1591
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
const char * string(int offset) const
Return a string at the given offset.
Definition: resbase.cc:1555
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736