PathGeometry
struct · ferroui-base · v0.5.0
struct PathGeometry
Represents a complex shape that may be composed of arcs, curves, ellipses, lines, and rectangles.
Members
TYPEto_reffigures_propertyfill_rule_propertyconstructnewparsefiguresset_figuresfill_ruleset_fill_rule
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<PathGeometry>
Returns a strong reference to this object.
figures_property
fn figures_property() -> &'static DirectProperty<PathGeometry, Option<PathFigures>>
fill_rule_property
fn fill_rule_property() -> &'static StyledProperty<FillRule>
construct
fn construct() -> Self
Creates the class data.
new
fn new() -> Ref<Self>
Creates a path geometry with an empty figures collection.
parse
fn parse(path_data: &str) -> Result<Ref<PathGeometry>, FormatError>
Parses the specified path data to a path geometry.
figures
fn figures(self: &Self) -> Option<PathFigures>
The figures.
set_figures
fn set_figures(self: &Self, value: Option<PathFigures>)
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.
set_fill_rule
fn set_fill_rule(self: &Self, value: FillRule)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeGeometryImplExtStreamGeometryImplExtFerroObjectImplExtClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToStringErasedDestructorIntoEitherDerefUpcast<T>Upcast<PathGeometry>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleFerroObjectImplGeometryImplStreamGeometryImplDisplay
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.