FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ImmutableDashStyle

    struct · ferroui-base · v0.5.0

    struct ImmutableDashStyle
    

    Represents the sequence of dashes and gaps that will be applied by an ImmutablePen.

    View source

    Members

    new

    fn new(dashes: Option<&[f64]>, offset: f64) -> Self
    

    Creates a dash style. None dashes produce an empty sequence.

    Source

    dashes

    fn dashes(self: &Self) -> &[f64]
    

    The length of alternating dashes and gaps.

    Source

    offset

    fn offset(self: &Self) -> f64
    

    How far in the dash sequence the stroke will start.

    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
    • Debug
    • PartialEq
    • IDashStyle

    Availability

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