pub enum WidgetConstraint {
}Variants§
Width(f32)
Height(f32)
MinWidth(f32)
MinHeight(f32)
Size(Size)
MinSize(Size)
AspectRatio(f32)
Shrink
ShrinkHorizontal
ShrinkVertical
TopLeft(Point)
Center(LayoutVars)
CenterHorizontal(Variable, Variable)
CenterVertical(Variable, Variable)
Implementations§
Source§impl WidgetConstraint
impl WidgetConstraint
pub fn builder(self, default_strength: f64) -> WidgetConstraintBuilder
Trait Implementations§
Source§impl Clone for WidgetConstraint
impl Clone for WidgetConstraint
Source§fn clone(&self) -> WidgetConstraint
fn clone(&self) -> WidgetConstraint
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WidgetConstraint
impl Debug for WidgetConstraint
impl Copy for WidgetConstraint
Auto Trait Implementations§
impl Freeze for WidgetConstraint
impl RefUnwindSafe for WidgetConstraint
impl Send for WidgetConstraint
impl Sync for WidgetConstraint
impl Unpin for WidgetConstraint
impl UnwindSafe for WidgetConstraint
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more