FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    VncRectangle

    struct · ferroui-headless-vnc · v0.5.0

    struct VncRectangle
    

    Bounds the changed pixels of a framebuffer.

    The fields are the settable properties of the original.

    View source

    Members

    x

    x: i32
    

    The X coordinate of the leftmost changed pixel.

    Source

    y

    y: i32
    

    The Y coordinate of the topmost changed pixel.

    Source

    width

    width: i32
    

    The width of the changed region.

    Source

    height

    height: i32
    

    The height of the changed region.

    Source

    new

    fn new(x: i32, y: i32, width: i32, height: i32) -> Self
    

    Initializes a new instance of the VncRectangle structure.

    Panics

    When a value is negative (ArgumentOutOfRangeException).

    Source

    area

    fn area(self: &Self) -> i32
    

    Gets the number of pixels.

    Source

    is_empty

    fn is_empty(self: &Self) -> bool
    

    Gets a value indicating whether the region is empty: true if the region contains no pixels.

    Source

    intersect

    fn intersect(rect1: VncRectangle, rect2: VncRectangle) -> VncRectangle
    

    Intersects two rectangles.

    Source

    union

    fn union(rect1: VncRectangle, rect2: VncRectangle) -> VncRectangle
    

    Finds a region that contains both rectangles.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ResourceKeyObject
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Same
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Display
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for x86_64-unknown-linux-gnu, aarch64-apple-darwin. Cargo features are listed in the crate index.