Skip to main content

view_transform

Function view_transform 

pub fn view_transform(transform: Affine, rect: Rect) -> Affine
Expand description

The transform that draws a view laid out at VIEW’s size from the origin into rect, through transform: as large as fits, keeping its proportions, from rect’s corner.