From 00ec60c1c0c3db8e3602e85dd152106f59f0c0e2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 17 Sep 2016 17:58:54 +0300 Subject: Use strong typed bool Move for move variable in window. --- src/gui/widgets/window.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/gui/widgets/window.h') diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index 4fc38afa0..7aca70bd9 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -67,6 +67,7 @@ #define GUI_WIDGETS_WINDOW_H #include "enums/simpletypes/modal.h" +#include "enums/simpletypes/move.h" #include "enums/resources/imageposition.h" @@ -556,7 +557,7 @@ class Window notfinal : public BasicContainer2, * @param movable True if the window should be movable, false otherwise. * @see isMovable */ - void setMovable(bool movable) + void setMovable(Move movable) { mMovable = movable; } /** @@ -566,7 +567,7 @@ class Window notfinal : public BasicContainer2, * @see setMovable */ bool isMovable() const - { return mMovable; } + { return mMovable == Move_true; } Rect getChildrenArea() override; @@ -617,7 +618,7 @@ class Window notfinal : public BasicContainer2, /** * True if the window is movable, false otherwise. */ - bool mMovable; + Move mMovable; /** * Holds a drag offset as an x coordinate where the drag of the window -- cgit v1.2.3-60-g2f50