FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    StreamGeometry

    struct · ferroui-base · v0.5.0

    struct StreamGeometry
    

    Represents the geometry of an arbitrarily complex shape.

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

    Returns a strong reference to this object.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    parse

    fn parse(s: &str) -> Result<Ref<StreamGeometry>, FormatError>
    

    Creates a stream geometry from a string of path data.

    Source

    from_commands

    fn from_commands(commands: &[PathCommand]) -> Ref<StreamGeometry>
    

    Creates a stream geometry from path data the compiler of the markup parsed (PathCommand::record): the geometry parse makes of the same text, without parsing it when the document is loaded (#603).

    Source

    open

    fn open(self: &Self) -> StreamGeometryContext
    

    Opens the geometry to start defining it.

    Returns a StreamGeometryContext which can be used to define the geometry.

    The new figures are added to the existing ones. The geometry is updated when the context is disposed.

    Source

    Trait implementations

    Availability

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