Skip to main content

clamp_physical_size

Function clamp_physical_size 

Source
pub fn clamp_physical_size(size: Vec2) -> (u32, u32)
Expand description

Round + clamp a laid-out physical size (a ComputedNode.size) to the rasterizable range. A 0 component means “not laid out yet”. Shared with the core crate’s resize-event emitter so the size reported to JS always matches the actual buffer.