From 8759f0169cae5e9a80cc35be440ac24a406707f8 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Mon, 26 Feb 2024 20:04:52 +0100 Subject: [PATCH] rename arg --- hui/src/element.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {