aboutsummaryrefslogtreecommitdiff
path: root/src/ui/window.h
diff options
context:
space:
mode:
authorYuqian Yang <crupest@outlook.com>2018-09-29 03:27:37 +0000
committerYuqian Yang <crupest@outlook.com>2018-09-29 03:27:37 +0000
commit81e171fde553d02b572653a5e763cb74ce9d331a (patch)
tree50c67f028f18486dc4a7656c82eff31cac86ec71 /src/ui/window.h
parentb0b5a481c9b0460f275887b15e8edecc34e99186 (diff)
parent177765d0d9d74525a9db9e756f614636828ea980 (diff)
downloadcru-81e171fde553d02b572653a5e763cb74ce9d331a.tar.gz
cru-81e171fde553d02b572653a5e763cb74ce9d331a.tar.bz2
cru-81e171fde553d02b572653a5e763cb74ce9d331a.zip
Merge branch '8-fix-relayout' into 'master'
Resolve "Fix Relayout." Closes #8 See merge request crupest/CruUI!10
Diffstat (limited to 'src/ui/window.h')
-rw-r--r--src/ui/window.h10
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();