MCPcopy Create free account
hub / github.com/PerroEngine/Perro / set_panel_size

Function set_panel_size

perro_editor/res/scripts/ui/editor_ui.rs:4346–4356  ·  view source on GitHub ↗
(
    ctx: &mut ScriptContext<'_, API>,
    name: &str,
    size: (f32, f32),
)

Source from the content-addressed store, hash-verified

4344 return;
4345 };
4346 if let Some(id) = find_named(ctx, name) {
4347 let _ = with_node_mut!(ctx.run, UiPanel, id, |node| {
4348 node.style.fill = color;
4349 });
4350 }
4351}
4352
4353pub fn set_panel_style<API: ScriptAPI + ?Sized>(
4354 ctx: &mut ScriptContext<'_, API>,
4355 name: &str,
4356 fill: &str,
4357 stroke: &str,
4358 radius: f32,
4359) {

Callers 1

apply_editor_gizmosFunction · 0.85

Calls 1

find_namedFunction · 0.85

Tested by

no test coverage detected