25 #ifndef TBX_RES_RESLABEL_H 26 #define TBX_RES_RESLABEL_H 28 #include "resgadget.h" 29 #include "resjustification.h" 41 enum {TYPE_ID = 320 };
149 #endif // TBX_RES_RESLABEL_H A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:34
Base class for gadget memory resources.
Definition: resgadget.h:42
ResLabel & operator=(const ResLabel &other)
Assign from another label gadget resource.
Definition: reslabel.h:83
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
void omit_bounding_box(bool value)
Set if the bounding box for the label should be omitted.
Definition: reslabel.h:111
bool omit_bounding_box() const
Check if the bounding box for the label should be omitted.
Definition: reslabel.h:105
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
void justification(ResJustification value)
Set the horizontal position of the text of the label in its bounding box.
Definition: reslabel.h:124
void label(const char *value)
Set the label text.
Definition: reslabel.h:137
Classes to use/edit toolbox resources in memory.
ResJustification justification() const
Get the horizontal position of the text of the label in its bounding box.
Definition: reslabel.h:118
ResLabel()
Construct a label gadget resource.
Definition: reslabel.h:94
ResLabel(const ResGadget &other)
Construct an label gadget resource.
Definition: reslabel.h:49
void label(const std::string &value)
Set the label text.
Definition: reslabel.h:143
Class for Label gadget template.
Definition: reslabel.h:37
ResLabel(const ResLabel &other)
Construct an label gadget resource.
Definition: reslabel.h:59
ResLabel & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: reslabel.h:71
const char * label() const
Get the label text.
Definition: reslabel.h:131
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