Rectangle
struct · ferroui-controls · v0.5.0
struct Rectangle
Represents a rectangle with optional rounded corners.
Members
TYPEto_refradius_x_propertyradius_y_propertyconstructnewradius_xset_radius_xradius_yset_radius_y
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<Rectangle>
Returns a strong reference to this object.
radius_x_property
fn radius_x_property() -> &'static StyledProperty<f64>
Defines the RadiusX property.
radius_y_property
fn radius_y_property() -> &'static StyledProperty<f64>
Defines the RadiusY property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
radius_x
fn radius_x(self: &Self) -> f64
Gets the radius in the X-axis of the ellipse that rounds the corners of the rectangle.
set_radius_x
fn set_radius_x(self: &Self, value: f64)
Sets the radius in the X-axis of the ellipse that rounds the corners of the rectangle.
radius_y
fn radius_y(self: &Self) -> f64
Gets the radius in the Y-axis of the ellipse that rounds the corners of the rectangle.
set_radius_y
fn set_radius_y(self: &Self, value: f64)
Sets the radius in the Y-axis of the ellipse that rounds the corners of the rectangle.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeShapeImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<Rectangle>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplInteractiveImplInputElementImplControlImplFerroObjectImplShapeImplLayoutableImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.