Skip to main content

Module geom

Module geom 

Source
Expand description

Plain geometry in logical pixels: Vec2, Size, Rect and Edges.

Every number here is a logical pixel, before the window’s scale factor is applied; the display list and the renderer work in physical pixels. The types are #[repr(C)] and Copy, so they cross the FFI boundary unchanged.

Structs§

Edges
Per-side lengths: padding, borders.
Rect
Size
Vec2
A point or offset in logical pixels.