correct placement and box model

This commit is contained in:
Alessandro Mauri 2024-11-14 23:42:20 +01:00
parent 250a0fb3b5
commit 763e9ba8d6
5 changed files with 85 additions and 42 deletions

View file

@ -32,6 +32,12 @@ macro Ctx.get_elem_by_label(&ctx, String label)
return ctx.cache.search(id);
}
macro Ctx.get_elem_by_tree_idx(&ctx, isz idx) @private
{
Id id = ctx.tree.get(ctx.active_div)!;
return ctx.cache.search(id);
}
fn void! Ctx.init(&ctx)
{
ctx.tree.init(MAX_ELEMENTS)!;