aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2018-12-05 16:45:51 +0800
committercrupest <crupest@outlook.com>2018-12-05 16:45:51 +0800
commita0ddf6549313f4b81d55d3c25c724c809230967f (patch)
tree24a3c1d5d4a37b724a5a5d694894ac9c09d2e6f0
parent8314c0217521c5835a33aa98a18250873d8f7131 (diff)
downloadcru-a0ddf6549313f4b81d55d3c25c724c809230967f.tar.gz
cru-a0ddf6549313f4b81d55d3c25c724c809230967f.tar.bz2
cru-a0ddf6549313f4b81d55d3c25c724c809230967f.zip
...
-rw-r--r--src/ui/control.hpp6
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)
{