GeometryDrawing
struct · ferroui-base · v0.5.0
struct GeometryDrawing
Represents a drawing of a Geometry with a brush and a pen.
Members
TYPEto_refgeometry_propertybrush_propertypen_propertyconstructnewgeometryset_geometrybrushset_brushpenset_pen
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<GeometryDrawing>
Returns a strong reference to this object.
geometry_property
fn geometry_property() -> &'static StyledProperty<Option<Ref<Geometry>>>
Defines the Geometry property.
brush_property
fn brush_property() -> &'static StyledProperty<Option<Rc<dyn IBrush>>>
Defines the Brush property.
pen_property
fn pen_property() -> &'static StyledProperty<Option<Rc<dyn IPen>>>
Defines the Pen property.
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
geometry
fn geometry(self: &Self) -> Option<Ref<Geometry>>
The geometry that describes the shape of this drawing.
set_geometry
fn set_geometry(self: &Self, value: impl Into<Nullable<Geometry>>)
brush
fn brush(self: &Self) -> Option<Rc<dyn IBrush>>
The brush used to fill the interior of the shape described by this drawing.
set_brush
fn set_brush(self: &Self, value: Option<Rc<dyn IBrush>>)
pen
fn pen(self: &Self) -> Option<Rc<dyn IPen>>
The pen used to stroke this drawing.
set_pen
fn set_pen(self: &Self, value: Option<Rc<dyn IPen>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeDrawingImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<GeometryDrawing>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDrawingImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.