PathFigure
struct · ferroui-base · v0.5.0
struct PathFigure
Represents a subsection of a geometry: a single connected series of segments.
Members
TYPEto_refis_closed_propertyis_filled_propertysegments_propertystart_point_propertyconstructnewis_closedset_is_closedis_filledset_is_filledsegmentsset_segmentsstart_pointset_start_point
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PathFigure>
Returns a strong reference to this object.
is_closed_property
fn is_closed_property() -> &'static StyledProperty<bool>
is_filled_property
fn is_filled_property() -> &'static StyledProperty<bool>
segments_property
fn segments_property() -> &'static DirectProperty<PathFigure, Option<PathSegments>>
start_point_property
fn start_point_property() -> &'static StyledProperty<Point>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
Creates a figure with an empty segments collection.
is_closed
fn is_closed(self: &Self) -> bool
Whether the figure is closed.
set_is_closed
fn set_is_closed(self: &Self, value: bool)
is_filled
fn is_filled(self: &Self) -> bool
Whether the figure is filled.
set_is_filled
fn set_is_filled(self: &Self, value: bool)
segments
fn segments(self: &Self) -> Option<PathSegments>
The segments of the figure.
set_segments
fn set_segments(self: &Self, value: Option<PathSegments>)
start_point
fn start_point(self: &Self) -> Point
The start point of the figure.
set_start_point
fn set_start_point(self: &Self, value: Point)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToStringErasedDestructorIntoEitherDerefUpcast<T>Upcast<PathFigure>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.