EllipseGeometry
struct · ferroui-base · v0.5.0
struct EllipseGeometry
Represents the geometry of an ellipse or circle.
Members
TYPEto_refrect_propertyradius_x_propertyradius_y_propertycenter_propertyconstructnewwith_rectrectset_rectradius_xset_radius_xradius_yset_radius_ycenterset_center
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<EllipseGeometry>
Returns a strong reference to this object.
rect_property
fn rect_property() -> &'static StyledProperty<Rect>
radius_x_property
fn radius_x_property() -> &'static StyledProperty<f64>
radius_y_property
fn radius_y_property() -> &'static StyledProperty<f64>
center_property
fn center_property() -> &'static StyledProperty<Point>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_rect
fn with_rect(rect: Rect) -> Ref<Self>
Creates an ellipse geometry filling the given bounds.
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.
set_rect
fn set_rect(self: &Self, value: Rect)
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.
set_radius_x
fn set_radius_x(self: &Self, value: f64)
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.
set_radius_y
fn set_radius_y(self: &Self, value: f64)
center
fn center(self: &Self) -> Point
A point that defines the center of the ellipse.
set_center
fn set_center(self: &Self, value: Point)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGeometryImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<EllipseGeometry>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplGeometryImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.