FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    EllipseGeometry

    struct · ferroui-base · v0.5.0

    struct EllipseGeometry
    

    Represents the geometry of an ellipse or circle.

    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<EllipseGeometry>
    

    Returns a strong reference to this object.

    Source

    rect_property

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

    Source

    radius_x_property

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

    Source

    radius_y_property

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

    Source

    center_property

    fn center_property() -> &'static StyledProperty<Point>
    

    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 an ellipse geometry filling the given bounds.

    Source

    rect

    fn rect(self: &Self) -> Rect
    

    A rect that defines the bounds of the ellipse. When set, this takes priority over the other properties that define an ellipse using a center point and X/Y-axis radii.

    Source

    set_rect

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

    Source

    radius_x

    fn radius_x(self: &Self) -> f64
    

    A double that defines the radius in the X-axis of the ellipse. In other words, the horizontal half-extent of the ellipse.

    Source

    set_radius_x

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

    Source

    radius_y

    fn radius_y(self: &Self) -> f64
    

    A double that defines the radius in the Y-axis of the ellipse. In other words, the vertical half-extent of the ellipse.

    Source

    set_radius_y

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

    Source

    center

    fn center(self: &Self) -> Point
    

    A point that defines the center of the ellipse.

    Source

    set_center

    fn set_center(self: &Self, value: Point)
    

    Source

    Trait implementations

    Availability

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