FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PolylineGeometry

    struct · ferroui-base · v0.5.0

    struct PolylineGeometry
    

    Represents the geometry of a polyline or polygon.

    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<PolylineGeometry>
    

    Returns a strong reference to this object.

    Source

    points_property

    fn points_property() -> &'static DirectProperty<PolylineGeometry, Option<Points>>
    

    Source

    is_filled_property

    fn is_filled_property() -> &'static StyledProperty<bool>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    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.

    Source

    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.

    Source

    points

    fn points(self: &Self) -> Points
    

    The figure's points. Panics if the property has been cleared.

    Source

    set_points

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

    Source

    is_filled

    fn is_filled(self: &Self) -> bool
    

    Whether the geometry is filled.

    Source

    set_is_filled

    fn set_is_filled(self: &Self, value: bool)
    

    Source

    fill_rule

    fn fill_rule(self: &Self) -> FillRule
    

    How the intersecting areas of the geometry are combined.

    Source

    Trait implementations

    Availability

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