Struct sixtyfps_corelib::layout::LayoutInfo  [−][src]
#[repr(C)]pub struct LayoutInfo {
    pub max: f32,
    pub max_percent: f32,
    pub min: f32,
    pub min_percent: f32,
    pub preferred: f32,
    pub stretch: f32,
}Expand description
The constraint that applies to an item
Fields
max: f32The maximum size for the item.
max_percent: f32The maximum size in percentage of the parent (value between 0 and 100).
min: f32The minimum size for this item.
min_percent: f32The minimum size in percentage of the parent (value between 0 and 100).
preferred: f32the preferred size
stretch: f32the stretch factor
Implementations
Helper function to return a preferred size which is within the min/max constraints
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for LayoutInfo
impl Send for LayoutInfo
impl Sync for LayoutInfo
impl Unpin for LayoutInfo
impl UnwindSafe for LayoutInfo
Blanket Implementations
Mutably borrows from an owned value. Read more