Skip to documentation
SLOP

tiny.arrange.computeLayoutIndexed

Reference tiny.arrange computeLayoutIndexed

Defined in tiny.arrange.

Called byCallsNo direct callersprivate sourcelib.arrange.src.axisconstrainSizeprivate sourcelib.arrange.src.computeSolverprivate sourcelib.arrange.src.computeexactInputprivate sourcelib.arrange.src.computevalidateSizetiny.arrangecomputeLayoutIndexed
Static calls · unresolved targets: 0 · external targets: 3.

Source

Source: lib/arrange/src/compute.zig:920

zig
pub fn computeLayoutIndexed(    scratch: *Scratch,    source: IndexedInput,    root_index: u32,    available_size: Size,    origin: Rect,    measurer: ?*Measurer,) Size {    validateSize(available_size);    std.debug.assert(source.rects.len >= source.count);    std.debug.assert(root_index < source.count);    std.debug.assert(scratch.indexed_cache.len >= @as(usize, source.count) * size_request_count);    scratch.resetSolve();    const root = source.node(root_index);    const root_size = axis.constrainSize(&root, .{        .width = root.size.width orelse available_size.width,        .height = root.size.height orelse available_size.height,    });    var solver = Solver(IndexedInput){        .scratch = scratch,        .source = source,        .measurer = measurer,    };    return solver.computeNode(        root_index,        exactInput(root_size),        .perform_layout,        .settled_width,        .{ .x = origin.x, .y = origin.y },    ).size;}

Source: lib/arrange/src/root.zig:37

zig
pub const computeLayoutIndexed = compute.computeLayoutIndexed;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433