diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-09 02:22:21 +0300 |
commit | aa7119314e1a33d908b98906d30be94eb116d02d (patch) | |
tree | a99092b16529937c20c6ec3a7d00d7f69eabfe35 /src/gui/widgets/button.h | |
parent | 0424b1383e3c07192b4493d5210b4384b5a69a75 (diff) | |
download | manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.gz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.bz2 manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.tar.xz manaverse-aa7119314e1a33d908b98906d30be94eb116d02d.zip |
Add skin parameter to all button constructors.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r-- | src/gui/widgets/button.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h index bd0766323..92ab1fa41 100644 --- a/src/gui/widgets/button.h +++ b/src/gui/widgets/button.h @@ -102,7 +102,8 @@ class Button final : public Widget, /** * Default constructor. */ - explicit Button(const Widget2 *const widget); + Button(const Widget2 *const widget, + const std::string &restrict skinName); /** * Constructor, sets the caption of the button to the given string and @@ -111,6 +112,7 @@ class Button final : public Widget, Button(const Widget2 *const widget, const std::string &restrict caption, const std::string &restrict actionEventId, + const std::string &restrict skinName, ActionListener *const listener); /** @@ -121,7 +123,8 @@ class Button final : public Widget, const std::string &restrict caption, const std::string &restrict imageName, const int imageWidth, const int imageHeight, - const std::string &actionEventId, + const std::string &restrict actionEventId, + const std::string &restrict skinName, ActionListener *const listener); /** @@ -130,8 +133,10 @@ class Button final : public Widget, */ Button(const Widget2 *const widget, const std::string &restrict imageName, - const int imageWidth, const int imageHeight, + const int imageWidth, + const int imageHeight, const std::string &restrict actionEventId, + const std::string &restrict skinName, ActionListener *const listener); /** @@ -142,6 +147,7 @@ class Button final : public Widget, const std::string &restrict imageName, const std::string &restrict caption, const std::string &restrict actionEventId, + const std::string &restrict skinName, ActionListener *const listener); A_DELETE_COPY(Button) |