FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    RectangleGeometry

    struct · ferroui-base · v0.5.0

    struct RectangleGeometry
    

    Represents the geometry of a rectangle.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<RectangleGeometry>
    

    Returns a strong reference to this object.

    Source

    radius_x_property

    fn radius_x_property() -> &'static StyledProperty<f64>
    

    Source

    radius_y_property

    fn radius_y_property() -> &'static StyledProperty<f64>
    

    Source

    rect_property

    fn rect_property() -> &'static StyledProperty<Rect>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_rect

    fn with_rect(rect: Rect) -> Ref<Self>
    

    Creates a rectangle geometry with the given bounds.

    Source

    with_rect_and_radii

    fn with_rect_and_radii(rect: Rect, radius_x: f64, radius_y: f64) -> Ref<Self>
    

    Creates a rectangle geometry with the given bounds and corner radii.

    Source

    radius_x

    fn radius_x(self: &Self) -> f64
    

    The x-axis radius of the ellipse that is used to round the corners of the rectangle. Corner radii are represented by an ellipse so this is the horizontal axis width of the ellipse.

    Source

    set_radius_x

    fn set_radius_x(self: &Self, value: f64)
    

    Source

    radius_y

    fn radius_y(self: &Self) -> f64
    

    The y-axis radius of the ellipse that is used to round the corners of the rectangle. Corner radii are represented by an ellipse so this is the vertical axis height of the ellipse.

    Source

    set_radius_y

    fn set_radius_y(self: &Self, value: f64)
    

    Source

    rect

    fn rect(self: &Self) -> Rect
    

    The bounds of the rectangle.

    Source

    set_rect

    fn set_rect(self: &Self, value: Rect)
    

    Source

    Trait implementations

    Availability

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