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
+5 -1
View File
@@ -11,7 +11,11 @@ pub struct Input {
}
impl Element for Input {
fn render(&mut self, scope: &mut crate::prelude::RenderScope) {
fn render(
&mut self,
scope: &mut crate::prelude::RenderScope,
_: &crate::extensions::Context,
) {
let s = self.state.get();
scope.draw_text(0, 0, &s);
if let Some(c) = s.chars().nth(self.cursor) {