pub struct InsetClip(/* private fields */);Expand description
A clip that leaves visible the rectangle (left_inset, top_inset, width - right_inset, height - bottom_inset) of the visual it is set on
(WinUI Microsoft.UI.Composition.InsetClip). The insets are animatable
(LeftInset, TopInset, RightInset, BottomInset).
Implementations§
Source§impl InsetClip
impl InsetClip
Sourcepub fn from_clip(clip: &Rc<CompositionClip>) -> Option<InsetClip>
pub fn from_clip(clip: &Rc<CompositionClip>) -> Option<InsetClip>
The handle of clip as an inset clip, if it is one.
pub fn left_inset(&self) -> f32
pub fn set_left_inset(&self, value: f32)
pub fn top_inset(&self) -> f32
pub fn set_top_inset(&self, value: f32)
pub fn right_inset(&self) -> f32
pub fn set_right_inset(&self, value: f32)
pub fn bottom_inset(&self) -> f32
pub fn set_bottom_inset(&self, value: f32)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for InsetClip
impl !Send for InsetClip
impl !Sync for InsetClip
impl !UnwindSafe for InsetClip
impl Freeze for InsetClip
impl Unpin for InsetClip
impl UnsafeUnpin for InsetClip
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
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