pub struct GeometricClip(/* private fields */);Expand description
A clip that leaves visible the inside of a geometry (WinUI
Microsoft.UI.Composition.GeometricClip), in the coordinates of the
visual it is set on, or of its view_box when it has
one: the view box maps the geometry onto the size of the visual as for a
shape visual. The transform of the clip applies after the view box. A
change of the geometry (its trimming and animations included) or of the
view box changes the clip.
Deviation (winui-composition.md): a geometric clip without a geometry clips nothing; the trimming of the geometry applies to the clip.
Implementations§
Source§impl GeometricClip
impl GeometricClip
Sourcepub fn from_clip(clip: &Rc<CompositionClip>) -> Option<GeometricClip>
pub fn from_clip(clip: &Rc<CompositionClip>) -> Option<GeometricClip>
The handle of clip as a geometric clip, if it is one.
Sourcepub fn geometry(&self) -> Option<Rc<CompositionGeometry>>
pub fn geometry(&self) -> Option<Rc<CompositionGeometry>>
The geometry whose inside stays visible.
pub fn set_geometry(&self, value: Option<Rc<CompositionGeometry>>)
Sourcepub fn view_box(&self) -> Option<Rc<CompositionViewBox>>
pub fn view_box(&self) -> Option<Rc<CompositionViewBox>>
The area of the geometry coordinates mapped onto the visual.
pub fn set_view_box(&self, value: Option<Rc<CompositionViewBox>>)
Trait Implementations§
Source§impl Clone for GeometricClip
impl Clone for GeometricClip
Source§impl Deref for GeometricClip
impl Deref for GeometricClip
Source§type Target = Rc<CompositionClip>
type Target = Rc<CompositionClip>
The resulting type after dereferencing.
Source§fn deref(&self) -> &Rc<CompositionClip>
fn deref(&self) -> &Rc<CompositionClip>
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for GeometricClip
impl !Send for GeometricClip
impl !Sync for GeometricClip
impl !UnwindSafe for GeometricClip
impl Freeze for GeometricClip
impl Unpin for GeometricClip
impl UnsafeUnpin for GeometricClip
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