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
impl AreaModel for Area
source§fn without_gaps(self, gaps: &Gaps) -> Area
fn without_gaps(self, gaps: &Gaps) -> Area
The area without any outer gap (e.g margin)
source§fn move_with_offsets(&mut self, offset_x: &Length, offset_y: &Length)
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)
fn adjust_size(&mut self, node: &Node)
Adjust the size given the Node data