Skip to main content

layout

Function layout 

Source
pub fn layout(rect_px: [f32; 4], scale: f32) -> Option<Layout>
Expand description

The image surface’s place for a rectangle [x0, y0, x1, y1] in window pixels, at scale physical pixels per logical one; None for an empty one.