diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-14 18:50:27 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-14 18:50:27 +0300 |
commit | 066488a6f4d086b57f4fe32e8799c207552cccb7 (patch) | |
tree | 2c73d80030ff0da73fc5f5b4b664a34030a51633 /src/gui/widgets/label.h | |
parent | 0b3aafe2859d9ea1c4009eed8a87f69c41cbc14b (diff) | |
download | manaplus-066488a6f4d086b57f4fe32e8799c207552cccb7.tar.gz manaplus-066488a6f4d086b57f4fe32e8799c207552cccb7.tar.bz2 manaplus-066488a6f4d086b57f4fe32e8799c207552cccb7.tar.xz manaplus-066488a6f4d086b57f4fe32e8799c207552cccb7.zip |
Add theming to labels.
New theme file: label.xml
Parameters: padding
Diffstat (limited to 'src/gui/widgets/label.h')
-rw-r--r-- | src/gui/widgets/label.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gui/widgets/label.h b/src/gui/widgets/label.h index 046f2ca00..40632109d 100644 --- a/src/gui/widgets/label.h +++ b/src/gui/widgets/label.h @@ -24,6 +24,8 @@ #include <guichan/widgets/label.hpp> +class Skin; + /** * Label widget. Same as the Guichan label but modified to use the palette * system. @@ -46,10 +48,23 @@ class Label final : public gcn::Label A_DELETE_COPY(Label); + ~Label(); + + void init(); + /** * Draws the label. */ void draw(gcn::Graphics *graphics) override; + + void adjustSize(); + + static Skin *mSkin; + + static int mInstances; + + private: + int mPadding; }; #endif |