From d702a36248ff2beabe00d2ade3c823b2a80295b9 Mon Sep 17 00:00:00 2001 From: Tamme Schichler Date: Wed, 30 Aug 2023 02:20:02 +0200 Subject: [PATCH] Actually render window children --- asteracea-imgui/src/components/window.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/asteracea-imgui/src/components/window.rs b/asteracea-imgui/src/components/window.rs index 8183225..17387af 100644 --- a/asteracea-imgui/src/components/window.rs +++ b/asteracea-imgui/src/components/window.rs @@ -30,7 +30,14 @@ asteracea::component! { imgui => ) { - bump.ui.window(title).size(size.0, size.1).build(|| {}); + bump.ui.window(title).size(size.0, size.1).build(|| { + //TODO: Allow declaring this as mutable in parameters. + let mut children = children; + for child in children.drain(..) { + child.1(bump)? + } + Ok::<_, Escalation>(()) + }).unwrap_or_else(|| Ok(()))? } }