Skip to main content

pivot_factor

Function pivot_factor 

Source
pub(crate) fn pivot_factor(pivot: Align2) -> Vec2
Expand description

The fraction of a window’s size at which its pivot sits, per axis.

The pivot of a window seeded into a corner is that corner, so this is the point of the window — and the matching point of the screen — that stays fixed as the window’s size changes.