Struct sixtyfps_corelib::layout::LayoutInfo [−][src]
#[repr(C)]pub struct LayoutInfo { pub min_width: f32, pub max_width: f32, pub min_height: f32, pub max_height: f32, pub min_width_percent: f32, pub max_width_percent: f32, pub min_height_percent: f32, pub max_height_percent: f32, pub preferred_width: f32, pub preferred_height: f32, pub horizontal_stretch: f32, pub vertical_stretch: f32, }
The constraint that applies to an item
Fields
min_width: f32
The minimum width for the item.
max_width: f32
The maximum width for the item.
min_height: f32
The minimum height for the item.
max_height: f32
The maximum height for the item.
min_width_percent: f32
The minimum width in percentage of the parent (value between 0 and 100).
max_width_percent: f32
The maximum width in percentage of the parent (value between 0 and 100).
min_height_percent: f32
The minimum height in percentage of the parent (value between 0 and 100).
max_height_percent: f32
The maximum height in percentage of the parent (value between 0 and 100).
preferred_width: f32
the preferred width
preferred_height: f32
the preferred height
horizontal_stretch: f32
the horizontal stretch factor
vertical_stretch: f32
the vertical stretch factor
Implementations
impl LayoutInfo
[src]
impl LayoutInfo
[src]pub fn merge(&self, other: &LayoutInfo) -> Self
[src]
Trait Implementations
impl Clone for LayoutInfo
[src]
impl Clone for LayoutInfo
[src]fn clone(&self) -> LayoutInfo
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LayoutInfo
[src]
impl Copy for LayoutInfo
[src]impl Default for LayoutInfo
[src]
impl Default for LayoutInfo
[src]impl PartialEq<LayoutInfo> for LayoutInfo
[src]
impl PartialEq<LayoutInfo> for LayoutInfo
[src]fn eq(&self, other: &LayoutInfo) -> bool
[src]
fn ne(&self, other: &LayoutInfo) -> bool
[src]
impl StructuralPartialEq for LayoutInfo
[src]
impl StructuralPartialEq for LayoutInfo
[src]Auto Trait Implementations
impl RefUnwindSafe for LayoutInfo
impl RefUnwindSafe for LayoutInfo
impl Send for LayoutInfo
impl Send for LayoutInfo
impl Sync for LayoutInfo
impl Sync for LayoutInfo
impl Unpin for LayoutInfo
impl Unpin for LayoutInfo
impl UnwindSafe for LayoutInfo
impl UnwindSafe for LayoutInfo