diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-28 00:55:13 +0300 |
commit | 01a0e4b658241cc3dbd8a5d11d34a6de48dab159 (patch) | |
tree | 37294c079b9a05768b7380f7595784eb73485769 /src/gui/buttoninfo.h | |
parent | 072b727ae4d072d6c84f3331d78ca5a2ac76d271 (diff) | |
download | ManaVerse-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/buttoninfo.h')
-rw-r--r-- | src/gui/buttoninfo.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/buttoninfo.h b/src/gui/buttoninfo.h index 7de7375f9..a6c7eb9e0 100644 --- a/src/gui/buttoninfo.h +++ b/src/gui/buttoninfo.h @@ -21,13 +21,15 @@ #ifndef GUI_BUTTONINFO_H #define GUI_BUTTONINFO_H +#include "enums/simpletypes/visible.h" + #include "localconsts.h" class Button; struct ButtonInfo final { - ButtonInfo(Button *const button0, const int key0, const bool visible0) : + ButtonInfo(Button *const button0, const int key0, const Visible visible0) : button(button0), key(key0), visible(visible0) @@ -38,6 +40,6 @@ struct ButtonInfo final Button *button; int key; - bool visible; + Visible visible; }; #endif // GUI_BUTTONINFO_H |