From a0ddf6549313f4b81d55d3c25c724c809230967f Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 5 Dec 2018 16:45:51 +0800 Subject: ... --- src/ui/control.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 TControl* CreateWithLayout(const LayoutSideParams& width, const LayoutSideParams& height, Args&&... args) { @@ -458,9 +461,6 @@ namespace cru::ui return control; } - - //*************** region: create helper *************** - template TControl* CreateWithLayout(const Thickness& padding, const Thickness& margin, Args&&... args) { -- cgit v1.2.3