diff options
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) { |