diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-21 19:33:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-21 19:33:46 +0300 |
commit | dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a (patch) | |
tree | 4d312704c7d42bc0d3a0f2ab44e8071a7058d6bb /src/gui/widgets/textfield.h | |
parent | c29b91939d1c8e8f7772a660ad4d4bee83dec668 (diff) | |
download | manaverse-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.gz manaverse-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.bz2 manaverse-dfb302bb66f032eb0c7eb4bc0934fdf0571a1d3a.tar.xz manaverse-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.h | 12 |
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; }; |