PolyLineSegment
struct · ferroui-base · v0.5.0
struct PolyLineSegment
Represents a set of line segments defined by a points collection with each point specifying the end point of a line segment.
Members
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PolyLineSegment>
Returns a strong reference to this object.
points_property
fn points_property() -> &'static StyledProperty<Option<Points>>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
Creates a segment with an empty points collection.
with_points
fn with_points(points: impl IntoIterator<Item = Point>) -> Ref<Self>
Creates a segment with a copy of the given points.
points
fn points(self: &Self) -> Points
The points. Panics if the property has been cleared.
set_points
fn set_points(self: &Self, value: Points)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePathSegmentImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefUpcast<T>Upcast<PolyLineSegment>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplPathSegmentImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.