PolylineGeometry
struct · ferroui-base · v0.5.0
struct PolylineGeometry
Represents the geometry of a polyline or polygon.
Members
TYPEto_refpoints_propertyis_filled_propertyconstructnewwith_pointswith_points_and_fill_rulepointsset_pointsis_filledset_is_filledfill_rule
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PolylineGeometry>
Returns a strong reference to this object.
points_property
fn points_property() -> &'static DirectProperty<PolylineGeometry, Option<Points>>
is_filled_property
fn is_filled_property() -> &'static StyledProperty<bool>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
with_points
fn with_points(points: impl IntoIterator<Item = Point>, is_filled: bool) -> Ref<Self>
Creates a polyline geometry with a copy of the given points.
with_points_and_fill_rule
fn with_points_and_fill_rule(points: impl IntoIterator<Item = Point>, is_filled: bool, fill_rule: FillRule) -> Ref<Self>
Creates a polyline geometry with a copy of the given points and the given fill rule.
points
fn points(self: &Self) -> Points
The figure's points. Panics if the property has been cleared.
set_points
fn set_points(self: &Self, value: Points)
is_filled
fn is_filled(self: &Self) -> bool
Whether the geometry is filled.
set_is_filled
fn set_is_filled(self: &Self, value: bool)
fill_rule
fn fill_rule(self: &Self) -> FillRule
How the intersecting areas of the geometry are combined.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGeometryImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<PolylineGeometry>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplGeometryImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.