From 7d987d35caf7a90b7ed0ffc942297ddc68c3da07 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 31 Dec 2015 20:29:03 +0300 Subject: Move ImagePosition enum into enums directory. --- src/gui/widgets/window.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/window.h') diff --git a/src/gui/widgets/window.h b/src/gui/widgets/window.h index ec0ce8b43..0e6e9c026 100644 --- a/src/gui/widgets/window.h +++ b/src/gui/widgets/window.h @@ -68,6 +68,8 @@ #include "enums/simpletypes/modal.h" +#include "enums/resources/imageposition.h" + #include "listeners/mouselistener.h" #include "listeners/widgetlistener.h" @@ -151,7 +153,7 @@ class Window notfinal : public BasicContainer2, /** * Sets the location relative to the given enumerated position. */ - void setLocationRelativeTo(const ImageRect::ImagePosition &position, + void setLocationRelativeTo(const ImagePosition::Type &position, int offsetX = 0, int offsetY = 0); /** @@ -391,7 +393,7 @@ class Window notfinal : public BasicContainer2, * on a relative enumerated position, rather than a coordinate position. */ void setDefaultSize(const int defaultWidth, const int defaultHeight, - const ImageRect::ImagePosition &position, + const ImagePosition::Type &position, const int offsetx = 0, const int offsetY = 0); /** -- cgit v1.2.3-60-g2f50