added RenderContext

This commit is contained in:
2025-08-08 23:47:21 +02:00
parent 1bdbc447ab
commit d3861909e7
8 changed files with 46 additions and 20 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, ctx: &crate::extensions::Context) {}
fn render(&mut self, scope: &mut RenderScope, ctx: &crate::render_scope::RenderContext) {}
/// Called after rendering, for follow-up logic or cleanup.
#[allow(unused)]
fn after_render(&mut self, scope: &mut RenderScope, ctx: &crate::extensions::Context) {}
fn after_render(&mut self, scope: &mut RenderScope, ctx: &crate::render_scope::RenderContext) {}
/// Called to draw child widgets, if any.
#[allow(unused)]