Struct sixtyfps_compilerlib::layout::LayoutConstraints [−][src]
pub struct LayoutConstraints {
pub min_width: Option<NamedReference>,
pub max_width: Option<NamedReference>,
pub min_height: Option<NamedReference>,
pub max_height: Option<NamedReference>,
pub preferred_width: Option<NamedReference>,
pub preferred_height: Option<NamedReference>,
pub horizontal_stretch: Option<NamedReference>,
pub vertical_stretch: Option<NamedReference>,
pub fixed_width: bool,
pub fixed_height: bool,
}
Fields
min_width: Option<NamedReference>
max_width: Option<NamedReference>
min_height: Option<NamedReference>
max_height: Option<NamedReference>
preferred_width: Option<NamedReference>
preferred_height: Option<NamedReference>
horizontal_stretch: Option<NamedReference>
vertical_stretch: Option<NamedReference>
fixed_width: bool
fixed_height: bool
Implementations
pub fn for_each_restrictions<'a>(
&'a self,
orientation: Orientation
) -> impl Iterator<Item = (&NamedReference, &'static str)>
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for LayoutConstraints
impl !Send for LayoutConstraints
impl !Sync for LayoutConstraints
impl Unpin for LayoutConstraints
impl !UnwindSafe for LayoutConstraints
Blanket Implementations
Mutably borrows from an owned value. Read more