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.cpp | |
parent | 01b0378ed32eb2011863393892717483004cc375 (diff) | |
download | cru-8898aee6c70bde922ee5de2a6213a44798525a16.tar.gz cru-8898aee6c70bde922ee5de2a6213a44798525a16.tar.bz2 cru-8898aee6c70bde922ee5de2a6213a44798525a16.zip |
...
Diffstat (limited to 'src/ui/window.cpp')
-rw-r--r-- | src/ui/window.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp index b4569366..dfc6db43 100644 --- a/src/ui/window.cpp +++ b/src/ui/window.cpp @@ -464,17 +464,12 @@ namespace cru::ui return Point(); } - void Window::SetPositionRelative(const Point & position) - { - - } - Size Window::GetSize() { return GetClientSize(); } - void Window::SetSize(const Size & size) + void Window::SetRect(const Rect& size) { } @@ -500,7 +495,7 @@ namespace cru::ui void Window::Relayout() { Measure(GetSize(), AdditionalMeasureInfo{}); - OnLayoutCore(Rect(Point::Zero(), GetSize())); + OnLayoutCore(Rect(Point::Zero(), GetSize()), AdditionalLayoutInfo{}); is_layout_invalid_ = false; } @@ -508,7 +503,7 @@ namespace cru::ui { Measure(max_size, AdditionalMeasureInfo{}); SetClientSize(GetDesiredSize()); - OnLayoutCore(Rect(Point::Zero(), GetSize())); + OnLayoutCore(Rect(Point::Zero(), GetSize()), AdditionalLayoutInfo{}); is_layout_invalid_ = false; } |