Struct sktablelayout::Size [−][src]
Individual size constraint for a cell.
Fields
width: f32
height: f32
Methods
impl Size
[src]
impl Size
pub fn join_max(a: &Size, b: &Size) -> Self
[src]
pub fn join_max(a: &Size, b: &Size) -> Self
pub fn join_min(a: &Size, b: &Size) -> Self
[src]
pub fn join_min(a: &Size, b: &Size) -> Self
pub fn spread(&self, divisions: f32) -> Self
[src]
pub fn spread(&self, divisions: f32) -> Self
Divides the width and height by a given division level. Used when a size must be spread across multiple table cells.
pub fn padded(&self, padding: Rectangle) -> Self
[src]
pub fn padded(&self, padding: Rectangle) -> Self
Adds padding from a supplied padding rectangle.
pub fn within(&self, other: &Size) -> bool
[src]
pub fn within(&self, other: &Size) -> bool
Returns whether this size should fit within another size.