Type Alias Area

Source
pub type Area = Rect<f32, ()>;
Expand description

Area used by a Node, including its margins.

Aliased Type§

#[repr(C)]
pub struct Area { pub origin: Point2D<f32, ()>, pub size: Size2D<f32, ()>, }

Fields§

§origin: Point2D<f32, ()>§size: Size2D<f32, ()>

Trait Implementations§

Source§

impl AreaConverter for Area

Source§

impl AreaModel for Area

Source§

fn without_gaps(self, gaps: &Gaps) -> Area

The area without any outer gap (e.g margin)
Source§

fn adjust_size(&mut self, node: &Node)

Adjust the size given the Node data
Source§

fn expand(&mut self, size: &Size2D)

Source§

fn max_area_when_rotated(&self, center: Point2D) -> Area

Source§

fn clip(&mut self, other: &Self)