Struct flo_ui::BoundsLayout
[−]
[src]
pub struct BoundsLayout { /* fields omitted */ }
Perfoms layout with a bounding box
Methods
impl BoundsLayout
[src]
pub fn new(width: f32, height: f32) -> BoundsLayout
[src]
Creates a new bounds layout that acts within a particular bounding box
pub fn to_abs(&mut self, x: &Position, y: &Position) -> (f32, f32)
[src]
Lays out a single point within this bounding box
pub fn to_abs_bounds(&mut self, bounds: &Bounds) -> ((f32, f32), (f32, f32))
[src]
Lays out some rectangular bounds within this bounding box