aboutsummaryrefslogtreecommitdiff
path: root/gui/editable.h
diff options
context:
space:
mode:
Diffstat (limited to 'gui/editable.h')
-rw-r--r--gui/editable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/editable.h b/gui/editable.h
index 0c6869b9f4..4cc087b1fa 100644
--- a/gui/editable.h
+++ b/gui/editable.h
@@ -25,6 +25,7 @@
#include "common/str.h"
#include "common/rect.h"
#include "gui/widget.h"
+#include "gui/newgui.h"
namespace GUI {
@@ -46,6 +47,8 @@ protected:
int _editScrollOffset;
+ Theme::kFontStyle _font;
+
public:
EditableWidget(GuiObject *boss, int x, int y, int w, int h, WidgetSize ws = kNormalWidgetSize);
EditableWidget(GuiObject *boss, String name);
@@ -70,6 +73,8 @@ protected:
bool setCaretPos(int newPos);
bool adjustOffset();
+ void setFontStyle(Theme::kFontStyle font) { _font = font; }
+
virtual bool tryInsertChar(char c, int pos);
};