summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-21 19:33:46 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-21 19:33:46 +0300
commitdfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a (patch)
tree4d312704c7d42bc0d3a0f2ab44e8071a7058d6bb /src/gui/widgets/textfield.h
parentc29b91939d1c8e8f7772a660ad4d4bee83dec668 (diff)
downloadmanaplus-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.gz
manaplus-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.bz2
manaplus-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.xz
manaplus-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.zip
Extend textfield theming.
New theme options: padding frameSize
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;
};