summaryrefslogtreecommitdiff
path: root/src/gui/windowmenu.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-28 00:55:13 +0300
commit01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch)
tree37294c079b9a05768b7380f7595784eb73485769 /src/gui/windowmenu.h
parent072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff)
downloadmanaverse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.gz
manaverse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.bz2
manaverse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.tar.xz
manaverse-01a0e4b658241cc3dbd8a5d11d34a6de48dab159.zip
Add strong typed bool type Visible.
Diffstat (limited to 'src/gui/windowmenu.h')
-rw-r--r--src/gui/windowmenu.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/windowmenu.h b/src/gui/windowmenu.h
index 9a26ae603..03bd86592 100644
--- a/src/gui/windowmenu.h
+++ b/src/gui/windowmenu.h
@@ -23,6 +23,8 @@
#ifndef GUI_WINDOWMENU_H
#define GUI_WINDOWMENU_H
+#include "enums/simpletypes/visible.h"
+
#include "gui/widgets/container.h"
#include "listeners/actionlistener.h"
@@ -72,7 +74,7 @@ class WindowMenu final : public Container,
std::vector <ButtonText*> &getButtonTexts() A_WARN_UNUSED
{ return mButtonTexts; }
- void showButton(const std::string &name, const bool visible);
+ void showButton(const std::string &name, const Visible visible);
void loadButtons();
@@ -92,8 +94,9 @@ class WindowMenu final : public Container,
private:
inline void addButton(const char *const text,
const std::string &description,
- int &restrict x, int &restrict h, const int key,
- const bool visible = true);
+ int &restrict x, int &restrict h,
+ const int key,
+ const Visible visible = Visible_true);
void updateButtons();