#[repr(i32)]pub enum CompositionStretch {
None = 0,
Fill = 1,
Uniform = 2,
UniformToFill = 3,
}Expand description
How the content of a composition surface brush fills the area of the
brush (WinUI CompositionStretch).
Variants§
None = 0
The content keeps its natural size.
Fill = 1
The content is scaled to the area, without keeping its aspect ratio.
Uniform = 2
The content is scaled to fit inside the area, keeping its aspect ratio.
UniformToFill = 3
The content is scaled to cover the area, keeping its aspect ratio; the part outside the area is clipped.
Trait Implementations§
Source§impl BatchValue for CompositionStretch
impl BatchValue for CompositionStretch
Source§impl Clone for CompositionStretch
impl Clone for CompositionStretch
impl Copy for CompositionStretch
Source§impl Debug for CompositionStretch
impl Debug for CompositionStretch
Source§impl Default for CompositionStretch
impl Default for CompositionStretch
impl Eq for CompositionStretch
Source§impl Hash for CompositionStretch
impl Hash for CompositionStretch
Source§impl PartialEq for CompositionStretch
impl PartialEq for CompositionStretch
impl StructuralPartialEq for CompositionStretch
Auto Trait Implementations§
impl Freeze for CompositionStretch
impl RefUnwindSafe for CompositionStretch
impl Send for CompositionStretch
impl Sync for CompositionStretch
impl Unpin for CompositionStretch
impl UnsafeUnpin for CompositionStretch
impl UnwindSafe for CompositionStretch
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more