FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<PolyLineSegment>
    

    Returns a strong reference to this object.

    Source

    points_property

    fn points_property() -> &'static StyledProperty<Option<Points>>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a segment with an empty points collection.

    Source

    with_points

    fn with_points(points: impl IntoIterator<Item = Point>) -> Ref<Self>
    

    Creates a segment with a copy of the given points.

    Source

    points

    fn points(self: &Self) -> Points
    

    The points. Panics if the property has been cleared.

    Source

    set_points

    fn set_points(self: &Self, value: Points)
    

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.