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

@@ -3,11 +3,10 @@ use crate::{
i18n::Translation,
layout::WidgetID,
parser::{AttribPair, ParserContext, parse_check_f32, parse_check_i32, process_component, style::parse_style},
widget::ConstructEssentials,
};
pub fn parse_component_checkbox<U1, U2>(
ctx: &mut ParserContext<U1, U2>,
pub fn parse_component_checkbox(
ctx: &mut ParserContext,
parent_id: WidgetID,
attribs: &[AttribPair],
) -> anyhow::Result<WidgetID> {
@@ -49,4 +48,4 @@ pub fn parse_component_checkbox<U1, U2>(
process_component(ctx, Component(component), widget.id, attribs);
Ok(widget.id)
}
}