25 #ifndef TBX_RES_RESRADIOBUTTON_H
26 #define TBX_RES_RESRADIOBUTTON_H
28 #include "resgadget.h"
40 enum {TYPE_ID = 384 };
122 void on(
bool value) {
flag(0,1<<2,value);}
186 #endif // TBX_RES_RESRADIOBUTTON_H
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
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Base class for gadget memory resources.
Definition: resgadget.h:43
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
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602