diff options
author | crupest <crupest@outlook.com> | 2018-12-05 16:37:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-12-05 16:37:58 +0800 |
commit | 8898aee6c70bde922ee5de2a6213a44798525a16 (patch) | |
tree | 90b6fc6eb526e2421458f942f390906d6a48a628 /src/ui/window.hpp | |
parent | 01b0378ed32eb2011863393892717483004cc375 (diff) | |
download | cru-8898aee6c70bde922ee5de2a6213a44798525a16.tar.gz cru-8898aee6c70bde922ee5de2a6213a44798525a16.tar.bz2 cru-8898aee6c70bde922ee5de2a6213a44798525a16.zip |
...
Diffstat (limited to 'src/ui/window.hpp')
-rw-r--r-- | src/ui/window.hpp | 7 |
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; |