events refactor

This commit is contained in:
galister
2025-10-12 17:30:30 +09:00
parent fbe1d5b09e
commit 90eed4558f
30 changed files with 420 additions and 616 deletions

View File

@@ -7,12 +7,12 @@ use crate::{
AttribPair, ParserContext, ParserFile, parse_check_f32, parse_children, process_component,
style::{parse_color_opt, parse_round, parse_style, parse_text_style},
},
widget::{ConstructEssentials, util::WLength},
widget::util::WLength,
};
pub fn parse_component_button<'a, U1, U2>(
pub fn parse_component_button<'a>(
file: &'a ParserFile,
ctx: &mut ParserContext<U1, U2>,
ctx: &mut ParserContext,
node: roxmltree::Node<'a, 'a>,
parent_id: WidgetID,
attribs: &[AttribPair],
@@ -79,4 +79,4 @@ pub fn parse_component_button<'a, U1, U2>(
parse_children(file, ctx, node, widget.id)?;
Ok(widget.id)
}
}