Trait torin::geometry::AreaModel

source ·
pub trait AreaModel {
    // Required methods
    fn without_gaps(self, gap: &Gaps) -> Area;
    fn move_with_offsets(&mut self, offset_x: &Length, offset_y: &Length);
    fn adjust_size(&mut self, node: &Node);
}

Required Methods§

source

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

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

source

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

Adjust the available area with the node offsets (mainly used by scrollviews)

source

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

Adjust the size given the Node data

Implementors§