tiny.arrange.computeLayoutIndexed
Defined in tiny.arrange.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |