FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RectangleClip

    struct · ferroui-base · v0.5.0

    struct RectangleClip
    

    A clip that leaves visible a rectangle, with optional rounded corners, in the coordinates of the visual it is set on (WinUI Microsoft.UI.Composition.RectangleClip). Every member is animatable (Left, Top, Right, Bottom, TopLeftRadius, TopRightRadius, BottomLeftRadius, BottomRightRadius); the radii are elliptical (WinUI Vector2).

    View source

    Members

    from_clip

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

    The handle of clip as a rectangle clip, if it is one.

    Source

    left

    fn left(self: &Self) -> f32
    

    Source

    set_left

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

    Source

    top

    fn top(self: &Self) -> f32
    

    Source

    set_top

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

    Source

    right

    fn right(self: &Self) -> f32
    

    Source

    set_right

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

    Source

    bottom

    fn bottom(self: &Self) -> f32
    

    Source

    set_bottom

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

    Source

    top_left_radius

    fn top_left_radius(self: &Self) -> Vector
    

    Source

    set_top_left_radius

    fn set_top_left_radius(self: &Self, value: Vector)
    

    Source

    top_right_radius

    fn top_right_radius(self: &Self) -> Vector
    

    Source

    set_top_right_radius

    fn set_top_right_radius(self: &Self, value: Vector)
    

    Source

    bottom_left_radius

    fn bottom_left_radius(self: &Self) -> Vector
    

    Source

    set_bottom_left_radius

    fn set_bottom_left_radius(self: &Self, value: Vector)
    

    Source

    bottom_right_radius

    fn bottom_right_radius(self: &Self) -> Vector
    

    Source

    set_bottom_right_radius

    fn set_bottom_right_radius(self: &Self, value: Vector)
    

    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.