Enum ContentStretch
#[repr(i32)]pub enum ContentStretch {
None = 0,
Fill = 1,
Uniform = 2,
UniformToFill = 3,
Repeat = 4,
}Expand description
Content stretch option.
Variants§
None = 0
Fill = 1
Content is displayed unstretched in the middle of area.
Uniform = 2
Content encompasses full area.
UniformToFill = 3
Content stretched to fill as much of area as possible. If aspect ratios do not match, leave area undrawn.
Repeat = 4
Content stretched to fill full area. If aspect ratios do not match, clip excess area.
Implementations§
§impl ContentStretch
impl ContentStretch
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> ContentStretch
Trait Implementations§
§impl Clone for ContentStretch
impl Clone for ContentStretch
§fn clone(&self) -> ContentStretch
fn clone(&self) -> ContentStretch
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 more§impl Debug for ContentStretch
impl Debug for ContentStretch
§impl Display for ContentStretch
impl Display for ContentStretch
§impl PartialEq for ContentStretch
impl PartialEq for ContentStretch
§impl VariantConstraint for ContentStretch
impl VariantConstraint for ContentStretch
§type DataArg<'a> = ContentStretch
type DataArg<'a> = ContentStretch
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = ContentStretch
type RetArg = ContentStretch
§fn as_arg(&self) -> <ContentStretch as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <ContentStretch as VariantConstraint>::DataArg<'_>
impl Copy for ContentStretch
impl Eq for ContentStretch
impl PropertyTypeConstraint for ContentStretch
impl StructuralPartialEq for ContentStretch
Auto Trait Implementations§
impl Freeze for ContentStretch
impl RefUnwindSafe for ContentStretch
impl Send for ContentStretch
impl Sync for ContentStretch
impl Unpin for ContentStretch
impl UnwindSafe for ContentStretch
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