diff options
author | crupest <crupest@outlook.com> | 2018-12-05 16:45:51 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2018-12-05 16:45:51 +0800 |
commit | a0ddf6549313f4b81d55d3c25c724c809230967f (patch) | |
tree | 24a3c1d5d4a37b724a5a5d694894ac9c09d2e6f0 /src | |
parent | 8314c0217521c5835a33aa98a18250873d8f7131 (diff) | |
download | cru-a0ddf6549313f4b81d55d3c25c724c809230967f.tar.gz cru-a0ddf6549313f4b81d55d3c25c724c809230967f.tar.bz2 cru-a0ddf6549313f4b81d55d3c25c724c809230967f.zip |
...
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/control.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/control.hpp b/src/ui/control.hpp index 8dd1898d..5db3a446 100644 --- a/src/ui/control.hpp +++ b/src/ui/control.hpp @@ -448,6 +448,9 @@ namespace cru::ui // Return the ancestor if one control is the ancestor of the other one, otherwise nullptr. Control* IsAncestorOrDescendant(Control* left, Control* right); + + //*************** region: create helper *************** + template <typename TControl, typename... Args> TControl* CreateWithLayout(const LayoutSideParams& width, const LayoutSideParams& height, Args&&... args) { @@ -458,9 +461,6 @@ namespace cru::ui return control; } - - //*************** region: create helper *************** - template <typename TControl, typename... Args> TControl* CreateWithLayout(const Thickness& padding, const Thickness& margin, Args&&... args) { |