summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/textfield.h')
-rw-r--r--src/gui/widgets/textfield.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gui/widgets/textfield.h b/src/gui/widgets/textfield.h
index f5f6a3eb9..dc35cfe70 100644
--- a/src/gui/widgets/textfield.h
+++ b/src/gui/widgets/textfield.h
@@ -109,9 +109,19 @@ class TextField : public gcn::TextField,
void setSendAlwaysEvents(bool b)
{ mSendAlwaysEvents = b; }
+ void adjustSize();
+
+ void adjustHeight();
+
+ void setCaretPosition(unsigned int position);
+
protected:
void drawCaret(gcn::Graphics* graphics, int x) override;
+ void fixScroll();
+
+ void fontChanged();
+
bool mSendAlwaysEvents;
private:
@@ -122,11 +132,13 @@ class TextField : public gcn::TextField,
static int instances;
static float mAlpha;
static ImageRect skin;
+ static Skin *mSkin;
bool mNumeric;
int mMinimum;
unsigned mMaximum;
bool mLoseFocusOnTab;
int mLastEventPaste;
+ int mPadding;
const gcn::Color *mCaretColor;
};