Type Alias torin::geometry::Area

source ·
pub type Area = Rect<f32, Measure>;

Aliased Type§

struct Area {
    pub origin: Point2D<f32, Measure>,
    pub size: Size2D<f32, Measure>,
}

Fields§

§origin: Point2D<f32, Measure>§size: Size2D<f32, Measure>

Trait Implementations§

source§

impl AreaModel for Area

source§

fn after_gaps(&self, margin: &Gaps) -> Area

Get the area inside after including the gaps (margins or paddings)

source§

fn move_with_offsets(&mut self, offset_x: &Length, offset_y: &Length)

Get the area inside after including the gaps (margins or paddings)

source§

fn align_content( &mut self, available_area: &Area, contents_size: &Size2D, alignment: &Alignment, direction: &DirectionMode, alignment_direction: AlignmentDirection )