FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Rect

    struct · ferroui-designer-tools · v0.5.0

    struct Rect
    

    View source

    Members

    x

    x: f64
    

    Source

    y

    y: f64
    

    Source

    width

    width: f64
    

    Source

    height

    height: f64
    

    Source

    new

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

    Source

    right

    fn right(self: Self) -> f64
    

    Source

    bottom

    fn bottom(self: Self) -> f64
    

    Source

    center

    fn center(self: Self) -> Point
    

    Source

    validate

    fn validate(self: Self) -> Result<()>
    

    Source

    contains

    fn contains(self: Self, p: Point) -> bool
    

    Source

    intersects

    fn intersects(self: Self, other: Self) -> bool
    

    Source

    union

    fn union(self: Self, other: Self) -> Self
    

    Source

    translated

    fn translated(self: Self, delta: Point) -> Result<Self>
    

    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
    • DeserializeOwned
    • Clone
    • Copy
    • Debug
    • Default
    • StructuralPartialEq
    • PartialEq
    • Serialize
    • Deserialize<'de>

    Availability

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