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.
Members
dashes
fn dashes(self: &Self) -> Option<Vec<f64>>
The length of alternating dashes and gaps.
offset
fn offset(self: &Self) -> f64
How far in the dash sequence the stroke will start.
as_any
fn as_any(self: &Self) -> &dyn Any
The implementing value, for downcasts to ImmutableDashStyle.
as_object
fn as_object(self: &Self) -> Option<&FerroObject>
The object behind the dash style when it is a mutable DashStyle.
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.
equals
fn equals(self: &Self, other: &dyn IDashStyle) -> bool
Whether the dash style equals other. Mutable dash styles compare by
reference, immutable ones structurally.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.