summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-10-14 01:36:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-10-14 13:30:24 +0300
commitc23959e3c40e97f9c1aeb9eabc52131b6fa68f2a (patch)
treef9929a081b3479bcc1f515aac0a11bbc3cbc111a /src/gui/widgets/button.h
parentccf90e41053bf1a327939cad1082be05c15a8cde (diff)
downloadplus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.gz
plus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.bz2
plus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.tar.xz
plus-c23959e3c40e97f9c1aeb9eabc52131b6fa68f2a.zip
Add new parameters to buttons theming.
New parameters: padding - padding over button text. spacing - space between text and image.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index d7e7ebf89..84aedb078 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -31,6 +31,7 @@ class GraphicsVertexes;
class Image;
class ImageSet;
class ImageRect;
+class Skin;
const std::string BUTTON_PLAY = "buttonplay.png";
@@ -131,8 +132,8 @@ class Button final : public gcn::Button, public gcn::WidgetListener
private:
void init();
- static ImageRect button[4]; /**< Button state graphics */
- static int mInstances; /**< Number of button instances */
+ static Skin *button[4]; /**< Button state graphics */
+ static int mInstances; /**< Number of button instances */
static float mAlpha;
std::string mDescription;