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
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Base class for gadget memory resources.
Definition: resgadget.h:42
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
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
Classes to use/edit toolbox resources in memory.
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
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
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736