summaryrefslogtreecommitdiff
path: root/src/gui/intlGUIEditBox.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/intlGUIEditBox.h')
-rw-r--r--src/gui/intlGUIEditBox.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/intlGUIEditBox.h b/src/gui/intlGUIEditBox.h
index aa35e2e71..7ebdaf1b7 100644
--- a/src/gui/intlGUIEditBox.h
+++ b/src/gui/intlGUIEditBox.h
@@ -57,9 +57,13 @@ namespace gui
//! Sets whether to draw the background
virtual void setDrawBackground(bool draw);
+ virtual bool isDrawBackgroundEnabled() const { return true; }
+
//! Turns the border on or off
virtual void setDrawBorder(bool border);
+ virtual bool isDrawBorderEnabled() const { return Border; }
+
//! Enables or disables word wrap for using the edit box as multiline text editor.
virtual void setWordWrap(bool enable);
@@ -129,6 +133,14 @@ namespace gui
//! Reads attributes of the element
virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options);
+ virtual void setCursorChar(const wchar_t cursorChar) {}
+
+ virtual wchar_t getCursorChar() const { return L'|'; }
+
+ virtual void setCursorBlinkTime(u32 timeMs) {}
+
+ virtual u32 getCursorBlinkTime() const { return 500; }
+
protected:
//! Breaks the single text line.
void breakText();