diff options
author | crupest <crupest@outlook.com> | 2018-09-29 11:13:31 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-09-29 11:13:31 +0800 |
commit | 177765d0d9d74525a9db9e756f614636828ea980 (patch) | |
tree | 50c67f028f18486dc4a7656c82eff31cac86ec71 /src/ui/window.h | |
parent | b0b5a481c9b0460f275887b15e8edecc34e99186 (diff) | |
download | cru-177765d0d9d74525a9db9e756f614636828ea980.tar.gz cru-177765d0d9d74525a9db9e756f614636828ea980.tar.bz2 cru-177765d0d9d74525a9db9e756f614636828ea980.zip |
Fix relayout system.
Diffstat (limited to 'src/ui/window.h')
-rw-r--r-- | src/ui/window.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/ui/window.h b/src/ui/window.h index 40d81a06..4d0a07bc 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -155,8 +155,11 @@ namespace cru { //This method has no effect for a window. Use SetClientSize instead. void SetSize(const Size& size) override final; + //*************** region: layout *************** - //*************** region: features *************** + void Relayout(); + + //*************** region: functions *************** //Refresh control list. //It should be invoked every time a control is added or removed from the tree. @@ -206,6 +209,11 @@ namespace cru { bool IsMessageInQueue(UINT message); + //*************** region: layout *************** + + Size OnMeasure(const Size& available_size) override; + + //*************** region: native messages *************** void OnDestroyInternal(); |