IGradientStop
trait · ferroui-base · v0.5.0
trait IGradientStop: 'static
Describes the location and color of a transition point in a gradient.
Members
color
fn color(self: &Self) -> Color
The gradient stop color.
offset
fn offset(self: &Self) -> f64
The gradient stop offset.
as_composition_gradient_stop
fn as_composition_gradient_stop(self: &Self) -> Option<&crate::rendering::composition::CompositionGradientStop>
The stop as a composition gradient stop, if it is one (the is CompositionGradientStop test of upstream).
is_immutable_gradient_stop
fn is_immutable_gradient_stop(self: &Self) -> bool
Whether the stop is an ImmutableGradientStop
(the as ImmutableGradientStop test of upstream).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.