summaryrefslogtreecommitdiff
path: root/src/gui/widgets/button.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-10-21 00:10:41 +0300
committerAndrei Karas <akaras@inbox.ru>2013-10-21 00:10:41 +0300
commit57d3219bda4f72f82ffa97d0ef9e9c48aa843925 (patch)
tree179bb966cd18de309eaf923f85a131f7e97d2bf3 /src/gui/widgets/button.h
parenta0de9bc8c0bec21d3a793e958b7a8a98ec482cf6 (diff)
downloadplus-57d3219bda4f72f82ffa97d0ef9e9c48aa843925.tar.gz
plus-57d3219bda4f72f82ffa97d0ef9e9c48aa843925.tar.bz2
plus-57d3219bda4f72f82ffa97d0ef9e9c48aa843925.tar.xz
plus-57d3219bda4f72f82ffa97d0ef9e9c48aa843925.zip
add function to load separate image into button.
Diffstat (limited to 'src/gui/widgets/button.h')
-rw-r--r--src/gui/widgets/button.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/button.h b/src/gui/widgets/button.h
index 2ba91822b..e07a3bc1d 100644
--- a/src/gui/widgets/button.h
+++ b/src/gui/widgets/button.h
@@ -79,6 +79,14 @@ class Button final : public gcn::Button,
const std::string &actionEventId,
gcn::ActionListener *const listener);
+ /**
+ * Constructor, sets the caption of the button to the given string and
+ * adds the given action listener.
+ */
+ Button(const Widget2 *const widget, const std::string &imageName,
+ const std::string &caption, const std::string &actionEventId,
+ gcn::ActionListener *const listener);
+
A_DELETE_COPY(Button)
/**
@@ -125,6 +133,8 @@ class Button final : public gcn::Button,
void loadImage(const std::string &imageName);
+ void loadImageSet(const std::string &imageName);
+
void adjustSize();
void setCaption(const std::string& caption);