aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r--src/ui/window.hpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/window.hpp b/src/ui/window.hpp
index 7287c7e5..26d3fe40 100644
--- a/src/ui/window.hpp
+++ b/src/ui/window.hpp
@@ -190,14 +190,11 @@ namespace cru::ui
//Always return (0, 0) for a window.
Point GetPositionRelative() override final;
- //This method has no effect for a window.
- void SetPositionRelative(const Point& position) override final;
-
//Get the size of client area for a window.
Size GetSize() override final;
//This method has no effect for a window. Use SetClientSize instead.
- void SetSize(const Size& size) override final;
+ void SetRect(const Rect& size) override final;
//Override. If point is in client area, it is in window.
bool IsPointInside(const Point& point) override final;
@@ -282,7 +279,7 @@ namespace cru::ui
//*************** region: event dispatcher helper ***************
void DispatchMouseHoverControlChangeEvent(Control* old_control, Control * new_control, const Point& point);
-
+
private:
bool delete_this_on_destroy_ = true;