aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-10-04 01:47:49 +0800
committercrupest <crupest@outlook.com>2018-10-04 01:47:49 +0800
commit01ab4511d3006e9f65ff96ae63b21de14b41bc48 (patch)
treee4fa991e7784571c164301ff7ade5aa1ef515744 /src/ui/window.cpp
parent30ecda8bb354d5982978af97aa90b5f49d9ea195 (diff)
downloadcru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.gz
cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.tar.bz2
cru-01ab4511d3006e9f65ff96ae63b21de14b41bc48.zip
...
Diffstat (limited to 'src/ui/window.cpp')
-rw-r--r--src/ui/window.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/window.cpp b/src/ui/window.cpp
index 39528550..5e0dd694 100644
--- a/src/ui/window.cpp
+++ b/src/ui/window.cpp
@@ -354,8 +354,8 @@ namespace cru
void Window::Relayout()
{
- OnMeasure(GetSize());
- OnLayout(Rect(Point::Zero(), GetSize()));
+ OnMeasureContent(GetSize());
+ OnLayoutContent(Rect(Point::Zero(), GetSize()));
}
void Window::RefreshControlList() {
@@ -462,7 +462,7 @@ namespace cru
return ::PeekMessageW(&msg, hwnd_, message, message, PM_NOREMOVE) != 0;
}
- Size Window::OnMeasure(const Size& available_size)
+ Size Window::OnMeasureContent(const Size& available_size)
{
ForeachChild([available_size](Control* control)
{