FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InsetClip

    struct · ferroui-base · v0.5.0

    struct InsetClip
    

    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).

    View source

    Members

    from_clip

    fn from_clip(clip: &Rc<CompositionClip>) -> Option<InsetClip>
    

    The handle of clip as an inset clip, if it is one.

    Source

    left_inset

    fn left_inset(self: &Self) -> f32
    

    Source

    set_left_inset

    fn set_left_inset(self: &Self, value: f32)
    

    Source

    top_inset

    fn top_inset(self: &Self) -> f32
    

    Source

    set_top_inset

    fn set_top_inset(self: &Self, value: f32)
    

    Source

    right_inset

    fn right_inset(self: &Self) -> f32
    

    Source

    set_right_inset

    fn set_right_inset(self: &Self, value: f32)
    

    Source

    bottom_inset

    fn bottom_inset(self: &Self) -> f32
    

    Source

    set_bottom_inset

    fn set_bottom_inset(self: &Self, value: f32)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.