25 #ifndef TBX_RES_RESTEXTAREA_H
26 #define TBX_RES_RESTEXTAREA_H
28 #include "resgadget.h"
40 enum {TYPE_ID = 0x4018 };
278 #endif // TBX_RES_RESTEXTAREA_H
int event() const
Get the event for the text area gadget.
Definition: restextarea.h:223
ResBase & operator=(const ResBase &other)
Assignment.
Definition: resbase.cc:1534
bool auto_scroll() const
Check if the text field will automatically scroll as text is entered.
Definition: restextarea.h:196
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
void allow_save(bool value)
Set if text can be saved.
Definition: restextarea.h:165
void type(int value)
Set the type of the text area gadget.
Definition: restextarea.h:217
void clipboard(bool value)
Set if clipboard support is enabled.
Definition: restextarea.h:189
ResTextArea(const ResGadget &other)
Construct an text area gadget resource.
Definition: restextarea.h:48
Base class for gadget memory resources.
Definition: resgadget.h:43
int int_value(int offset) const
Get an integer value.
Definition: resbase.h:316
ResTextArea(const ResTextArea &other)
Construct an text area gadget resource.
Definition: restextarea.h:58
int background() const
Get background colour for the text area.
Definition: restextarea.h:265
void wordwrap(bool value)
Set if text will be word wrapped.
Definition: restextarea.h:135
const char * text() const
Get the initial text for the text area.
Definition: restextarea.h:235
bool has_vertical_scrollbar() const
Check if text area has a vertical scroll bar.
Definition: restextarea.h:105
bool allow_save() const
Check if text can be saved.
Definition: restextarea.h:156
bool allow_load() const
Check if text can be loaded by dragging it to the text area.
Definition: restextarea.h:171
void event(int value)
Set the event for the text area gadget.
Definition: restextarea.h:229
ResTextArea()
Construct a text area gadget resource.
Definition: restextarea.h:93
void init_message(int offset, const char *value)
Initialise a message in a constructor helper.
Definition: resbase.cc:1736
void has_vertical_scrollbar(bool value)
Set if text area has a vertical scroll bar.
Definition: restextarea.h:111
bool has_horizontal_scrollbar() const
Check if text area has a horizontal scroll bar.
Definition: restextarea.h:117
bool flag(int offset, int mask) const
Check if any of the bits in a mask are set.
Definition: resbase.h:352
bool clipboard() const
Check if clipboard support is enabled.
Definition: restextarea.h:183
void allow_selection(bool value)
Set if text can be selected by the mouse.
Definition: restextarea.h:147
bool allow_selection() const
Check if text can be selected by the mouse.
Definition: restextarea.h:141
void text(const char *value)
Set the initial text for the text area.
Definition: restextarea.h:241
void text(const std::string &value)
Set the initial text for the text area.
Definition: restextarea.h:247
bool wordwrap() const
Check if text will be word wrapped.
Definition: restextarea.h:129
void has_horizontal_scrollbar(bool value)
Set if text area has a horizontal scroll bar.
Definition: restextarea.h:123
void background(int value)
Set background colour for the text area.
Definition: restextarea.h:271
ResTextArea & operator=(const ResGadget &other)
Assign from a ResGadget.
Definition: restextarea.h:70
int foreground() const
Get foreground/text colour for the text area.
Definition: restextarea.h:253
void allow_load(bool value)
Set if text can be loaded by dragging it to the text area.
Definition: restextarea.h:177
void foreground(int value)
Set foreground/text colour for the text area.
Definition: restextarea.h:259
void check_type(int type) const
Check if this gadgets type is as specified.
Definition: reswindow.cc:97
ResTextArea & operator=(const ResTextArea &other)
Assign from another text area gadget resource.
Definition: restextarea.h:82
void auto_scroll(bool value)
Set if the text field will automatically scroll as text is entered.
Definition: restextarea.h:203
Class for TextArea gadget template.
Definition: restextarea.h:37
const char * message(int offset) const
Get the message string at the given offset.
Definition: resbase.cc:1602
int type() const
Get the type of the text area gadget.
Definition: restextarea.h:210