Skip to main content

place

Function place 

Source
pub fn place(pointer: Pos2, size: Vec2, bounds: Rect, offset: f32) -> Rect
Expand description

Where a loupe of size goes for a pointer: offset points above and to the right of it, flipped to the left at the right edge of bounds and below at its top, and kept inside when it does not fit either way.