From 066488a6f4d086b57f4fe32e8799c207552cccb7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Oct 2012 18:50:27 +0300 Subject: Add theming to labels. New theme file: label.xml Parameters: padding --- src/gui/widgets/label.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/gui/widgets/label.h') 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 +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 -- cgit v1.2.3-60-g2f50