diff --git a/hui/src/element.rs b/hui/src/element.rs index 9b03e88..3dfd737 100644 --- a/hui/src/element.rs +++ b/hui/src/element.rs @@ -92,8 +92,10 @@ impl ElementList { // } pub trait UiElementExt: UiElement { + /// Add element as a child/nested element. fn add_child(self, ui: &mut ElementList); - fn add_root(self, ui: &mut UiInstance, resolution: glam::Vec2); + /// Add element as a ui root. + fn add_root(self, ui: &mut UiInstance, max_size: glam::Vec2); } impl UiElementExt for T {