Enum Stretch
#[repr(i32)]pub enum Stretch {
None = 0,
Fill = 1,
Uniform = 2,
UniformToFill = 3,
Repeat = 4,
Count = 5,
}Expand description
Defines the stretch modes.
Variants§
None = 0
Does not stretch the mask.
Fill = 1
Stretches the mask to fill the node.
Uniform = 2
Stretches the mask using uniform scaling to fill the node in either vertical or horizontal direction, whichever requires smaller scale.
UniformToFill = 3
Stretches the mask using uniform scaling to fill the node in either vertical or horizontal direction, whichever requires larger scale.
Repeat = 4
Does not stretch the mask, and allows the mask to repeat outside of its area based on the mask texture wrap mode.
Count = 5
The number of stretch modes.
Implementations§
Trait Implementations§
§impl VariantConstraint for Stretch
impl VariantConstraint for Stretch
impl Copy for Stretch
impl Eq for Stretch
impl PropertyTypeConstraint for Stretch
impl StructuralPartialEq for Stretch
Auto Trait Implementations§
impl Freeze for Stretch
impl RefUnwindSafe for Stretch
impl Send for Stretch
impl Sync for Stretch
impl Unpin for Stretch
impl UnwindSafe for Stretch
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