ConstructEssentials

i'm really out of ideas how to name another struct name with function parameters. Well, here we go - essentials.
This commit is contained in:
Aleksander
2025-10-11 11:26:25 +02:00
parent ce8cd3bce7
commit 200d5223d3
11 changed files with 90 additions and 78 deletions

View File

@@ -7,7 +7,7 @@ use crate::{
AttribPair, ParserContext, ParserFile, parse_check_f32, parse_children, process_component,
style::{parse_color_opt, parse_round, parse_style, parse_text_style},
},
widget::util::WLength,
widget::{ConstructEssentials, util::WLength},
};
pub fn parse_component_button<'a, U1, U2>(
@@ -60,13 +60,12 @@ pub fn parse_component_button<'a, U1, U2>(
}
}
let globals = ctx.layout.state.globals.clone();
let (widget, component) = button::construct(
&mut globals.get(),
ctx.layout,
ctx.listeners,
parent_id,
ConstructEssentials {
layout: ctx.layout,
listeners: ctx.listeners,
parent: parent_id,
},
button::Params {
color,
border,