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
void justification(ResJustification value)
Set the horizontal position of the text of the label in its bounding box.
Definition: reslabel.h:124
const char * label() const
Get the label text.
Definition: reslabel.h:131
ResLabel(const ResLabel &other)
Construct an label gadget resource.
Definition: reslabel.h:59
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
Class for Label gadget template.
Definition: reslabel.h:38
void label(const std::string &value)
Set the label text.
Definition: reslabel.h:143
ResLabel & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: reslabel.h:71
ResLabel & operator=(const ResLabel &other)
Assign from another label gadget resource.
Definition: reslabel.h:83
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
int flag_value(int offset, int mask) const
Get the bits for the given mask.
Definition: resbase.h:362
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
ResJustification justification() const
Get the horizontal position of the text of the label in its bounding box.
Definition: reslabel.h:118
void omit_bounding_box(bool value)
Set if the bounding box for the label should be omitted.
Definition: reslabel.h:111
ResJustification
Standard justification of resource gadget flags.
Definition: resjustification.h:11
void label(const char *value)
Set the label text.
Definition: reslabel.h:137
ResLabel()
Construct a label gadget resource.
Definition: reslabel.h:94
ResLabel(const ResGadget &other)
Construct an label gadget resource.
Definition: reslabel.h:49
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
bool omit_bounding_box() const
Check if the bounding box for the label should be omitted.
Definition: reslabel.h:105
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602