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