PathCommand
enum · ferroui-base · v0.5.0
enum PathCommand
One call of the path markup parser on its geometry context.
Members
SetFillRule
SetFillRule(crate::media::FillRule)
set_fill_rule(fill_rule).
BeginFigure
BeginFigure(crate::Point, bool)
begin_figure(start_point, is_filled).
LineTo
LineTo(crate::Point, bool)
line_to(point, is_stroked).
QuadraticBezierTo
QuadraticBezierTo(crate::Point, crate::Point, bool)
quadratic_bezier_to(control_point, end_point, is_stroked).
CubicBezierTo
CubicBezierTo(crate::Point, crate::Point, crate::Point, bool)
cubic_bezier_to(control_point1, control_point2, end_point, is_stroked).
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).
EndFigure
EndFigure(bool)
end_figure(is_closed).
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEq
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.