25 #ifndef TBX_RES_RESDISPLAYFIELD_H
26 #define TBX_RES_RESDISPLAYFIELD_H
28 #include "resgadget.h"
29 #include "resjustification.h"
41 enum {TYPE_ID = 448 };
146 #endif // TBX_RES_RESDISPLAYFIELD_H
void justification(ResJustification value)
Set the justification for the display field.
Definition: resdisplayfield.h:111
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 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
ResDisplayField(const ResGadget &other)
Construct an display field gadget resource.
Definition: resdisplayfield.h:49
ResJustification justification() const
Get the justification for the display field.
Definition: resdisplayfield.h:105
void text(const char *value, int max_length=-1)
Set the initial text for the display field.
Definition: resdisplayfield.h:126
ResDisplayField(const ResDisplayField &other)
Construct an display field gadget resource.
Definition: resdisplayfield.h:59
ResDisplayField()
Construct a display field gadget resource.
Definition: resdisplayfield.h:94
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
int max_text_len() const
Get the maximum length for the text.
Definition: resdisplayfield.h:140
const char * text() const
Get the initial text for the display field.
Definition: resdisplayfield.h:118
ResDisplayField & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: resdisplayfield.h:71
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
ResDisplayField & operator=(const ResDisplayField &other)
Assign from another display field gadget resource.
Definition: resdisplayfield.h:83
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
Class for DisplayField gadget template.
Definition: resdisplayfield.h:37
void text(const std::string &value, int max_length=-1)
Set the initial text for the display field.
Definition: resdisplayfield.h:134
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736