diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:07:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-09-17 19:07:25 +0300 |
commit | e9fb9da5bf17d3402781eb5205be7d2f794887ee (patch) | |
tree | 729a7932fab668bcc2de180ebfe287e811f8e136 /src/gui/widgets/scrollarea.h | |
parent | 00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 (diff) | |
download | plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.gz plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.bz2 plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.tar.xz plus-e9fb9da5bf17d3402781eb5205be7d2f794887ee.zip |
Add strong typed bool Opaque.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r-- | src/gui/widgets/scrollarea.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h index 3432c34d8..4392f4bcf 100644 --- a/src/gui/widgets/scrollarea.h +++ b/src/gui/widgets/scrollarea.h @@ -68,6 +68,8 @@ #include "gui/widgets/basiccontainer.h" +#include "enums/simpletypes/opaque.h" + #include "listeners/mouselistener.h" #include "listeners/widgetlistener.h" @@ -113,7 +115,7 @@ class ScrollArea final : public BasicContainer, */ ScrollArea(Widget2 *const widget2, Widget *const widget, - const bool opaque = true, + const Opaque opaque = Opaque_true, const std::string &skin = ""); A_DELETE_COPY(ScrollArea) @@ -152,13 +154,13 @@ class ScrollArea final : public BasicContainer, /** * Sets whether the widget should draw its background or not. */ - void setOpaque(bool opaque); + void setOpaque(Opaque opaque); /** * Returns whether the widget draws its background or not. */ bool isOpaque() const A_WARN_UNUSED - { return mOpaque; } + { return mOpaque == Opaque_true; } /** * Called when the mouse moves in the widget area. @@ -591,7 +593,7 @@ class ScrollArea final : public BasicContainer, * True if the scroll area should be opaque (that is * display its background), false otherwise. */ - bool mOpaque; + Opaque mOpaque; bool mHasMouse; }; |