FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IDashStyle

    trait · ferroui-base · v0.5.0

    trait IDashStyle: 'static
    

    Represents the sequence of dashes and gaps that will be applied by a pen.

    Implemented by ImmutableDashStyle and, through an adapter, by handles (Ref) of DashStyle.

    View source

    Members

    dashes

    fn dashes(self: &Self) -> Option<Vec<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

    as_any

    fn as_any(self: &Self) -> &dyn Any
    

    The implementing value, for downcasts to ImmutableDashStyle.

    Source

    as_object

    fn as_object(self: &Self) -> Option<&FerroObject>
    

    The object behind the dash style when it is a mutable DashStyle.

    Source

    into_immutable_dash_style

    fn into_immutable_dash_style(self: Rc<Self>) -> Rc<ImmutableDashStyle>
    

    Converts the dash style to an immutable dash style; an immutable dash style returns itself.

    Source

    equals

    fn equals(self: &Self, other: &dyn IDashStyle) -> bool
    

    Whether the dash style equals other. Mutable dash styles compare by reference, immutable ones structurally.

    Source

    Trait implementations

    Availability

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