FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PathGeometry

    struct · ferroui-base · v0.5.0

    struct PathGeometry
    

    Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.

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

    Returns a strong reference to this object.

    Source

    figures_property

    fn figures_property() -> &'static DirectProperty<PathGeometry, Option<PathFigures>>
    

    Source

    fill_rule_property

    fn fill_rule_property() -> &'static StyledProperty<FillRule>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Creates a path geometry with an empty figures collection.

    Source

    parse

    fn parse(path_data: &str) -> Result<Ref<PathGeometry>, FormatError>
    

    Parses the specified path data to a path geometry.

    Source

    figures

    fn figures(self: &Self) -> Option<PathFigures>
    

    The figures.

    Source

    set_figures

    fn set_figures(self: &Self, value: Option<PathFigures>)
    

    Source

    fill_rule

    fn fill_rule(self: &Self) -> FillRule
    

    How the intersecting areas contained in the path geometry are combined. The default value is FillRule::EvenOdd.

    Source

    set_fill_rule

    fn set_fill_rule(self: &Self, value: FillRule)
    

    Source

    Trait implementations

    Availability

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