Added after render and render on extension with child handlers #26

This commit is contained in:
2025-08-04 05:58:11 -05:00
parent 62e0c1eac1
commit ca4ee54e9d
12 changed files with 108 additions and 55 deletions
+2 -2
View File
@@ -31,11 +31,11 @@ pub type BoxedComponent = Box<dyn Component + Send + Sync>;
pub trait Element: Send + Sync {
/// Called to perform rendering for the element.
#[allow(unused)]
fn render(&mut self, scope: &mut RenderScope) {}
fn render(&mut self, scope: &mut RenderScope, ctx: &crate::extensions::Context) {}
/// Called after rendering, for follow-up logic or cleanup.
#[allow(unused)]
fn after_render(&mut self, scope: &mut RenderScope) {}
fn after_render(&mut self, scope: &mut RenderScope, ctx: &crate::extensions::Context) {}
/// Called to draw child widgets, if any.
#[allow(unused)]