Skip to main content

Module ffi

Module ffi 

Source
Expand description

A C ABI over the arrangements, so the preview can call them.

Results are written into a fixed scratch buffer rather than allocated: the crate has no dependencies and wants none, and a wasm module that never allocates is a wasm module with nothing to leak. The caller reads the rectangles straight out of the module’s memory.

Constants§

CAPACITY
The most windows an arrangement will report. Beyond this the extras are not laid out — a preview with sixty-five windows is not a case worth carrying an allocator for.

Statics§

SCRATCH 🔒
Four f64 per rectangle: x, y, w, h.

Functions§

capacity
publish 🔒
Copy slots into the scratch buffer and return how many were written.
settings 🔒
solium_layout_capacity
solium_layout_grid
The grid, given each window’s own rectangle in the scratch buffer.
solium_layout_master_stack
solium_layout_scratch
Where the last arrangement was written.
solium_layout_scroll_to
solium_layout_scrolling