FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionRectangleGeometry

    struct · ferroui-base · v0.5.0

    struct CompositionRectangleGeometry
    

    A rectangle (WinUI Microsoft.UI.Composition.CompositionRectangleGeometry): (offset, size), both animatable (Offset, Size).

    View source

    Members

    from_geometry

    fn from_geometry(geometry: &Rc<CompositionGeometry>) -> Option<CompositionRectangleGeometry>
    

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

    Source

    geometry

    fn geometry(self: &Self) -> &Rc<CompositionGeometry>
    

    The geometry as a CompositionGeometry.

    Source

    offset

    fn offset(self: &Self) -> Vector
    

    The top left corner of the rectangle.

    Source

    set_offset

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

    Source

    size

    fn size(self: &Self) -> Vector
    

    The size of the rectangle.

    Source

    set_size

    fn set_size(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.