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 SizeGrouping
pub fn join(a: &SizeGrouping, b: &SizeGrouping) -> SizeGrouping
[src]
pub fn join(a: &SizeGrouping, b: &SizeGrouping) -> SizeGrouping
pub fn spread(&self, divisions: f32) -> SizeGrouping
[src]
pub fn spread(&self, divisions: f32) -> SizeGrouping
pub fn padded(&self, padding: Rectangle) -> SizeGrouping
[src]
pub fn padded(&self, padding: Rectangle) -> SizeGrouping
pub fn box_fit(
&self,
area: &Size,
prop: &CellProperties
) -> (f32, f32, f32, f32)
[src]
pub fn box_fit(
&self,
area: &Size,
prop: &CellProperties
) -> (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 SizeGrouping
fn clone(&self) -> SizeGrouping
[src]
fn clone(&self) -> SizeGrouping
Returns 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 SizeGrouping
Auto Trait Implementations
impl Send for SizeGrouping
impl Send for SizeGrouping
impl Sync for SizeGrouping
impl Sync for SizeGrouping