FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PathCommand

    enum · ferroui-base · v0.5.0

    enum PathCommand
    

    One call of the path markup parser on its geometry context.

    View source

    Members

    SetFillRule

    SetFillRule(crate::media::FillRule)
    

    set_fill_rule(fill_rule).

    Source

    BeginFigure

    BeginFigure(crate::Point, bool)
    

    begin_figure(start_point, is_filled).

    Source

    LineTo

    LineTo(crate::Point, bool)
    

    line_to(point, is_stroked).

    Source

    QuadraticBezierTo

    QuadraticBezierTo(crate::Point, crate::Point, bool)
    

    quadratic_bezier_to(control_point, end_point, is_stroked).

    Source

    CubicBezierTo

    CubicBezierTo(crate::Point, crate::Point, crate::Point, bool)
    

    cubic_bezier_to(control_point1, control_point2, end_point, is_stroked).

    Source

    ArcTo

    ArcTo(crate::Point, crate::Size, f64, bool, crate::media::SweepDirection, bool)
    

    arc_to(point, size, rotation_angle, is_large_arc, sweep_direction, is_stroked).

    Source

    EndFigure

    EndFigure(bool)
    

    end_figure(is_closed).

    Source

    record

    fn record(path_data: &str) -> Result<Vec<PathCommand>, FormatError>
    

    The calls PathMarkupParser makes for path_data, in order; the error of the parser when it refuses the text.

    Source

    is_finite

    fn is_finite(self: &Self) -> bool
    

    Whether every number of the command is finite: what a constant table can state as Rust literals.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq

    Availability

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