Struct sktablelayout::SizeGrouping [−][src]
Combines the maximum, minimum and preferred sizes for a cell.
Fields
minimum: Size
maximum: Size
preferred: Size
Methods
impl SizeGrouping[src]
impl SizeGroupingpub fn join(a: &SizeGrouping, b: &SizeGrouping) -> SizeGrouping[src]
pub fn join(a: &SizeGrouping, b: &SizeGrouping) -> SizeGroupingpub fn spread(&self, divisions: f32) -> SizeGrouping[src]
pub fn spread(&self, divisions: f32) -> SizeGroupingpub fn box_fit(&self, area: &Size, flags: CellFlags) -> (f32, f32, f32, f32)[src]
pub fn box_fit(&self, area: &Size, flags: CellFlags) -> (f32, f32, f32, f32)Attempts to fit an item of a given size within an area, subject
to layout rules specified by flags. Returns the X, Y coordinates
as well as width and height of the box fitted to the area.
Trait Implementations
impl Clone for SizeGrouping[src]
impl Clone for SizeGroupingfn clone(&self) -> SizeGrouping[src]
fn clone(&self) -> SizeGroupingReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Default for SizeGrouping[src]
impl Default for SizeGroupingAuto Trait Implementations
impl Send for SizeGrouping
impl Send for SizeGroupingimpl Sync for SizeGrouping
impl Sync for SizeGrouping