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
f64per rectangle: x, y, w, h.
Functions§
- capacity
- publish 🔒
- Copy
slotsinto 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