FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IGradientStop

    trait · ferroui-base · v0.5.0

    trait IGradientStop: 'static
    

    Describes the location and color of a transition point in a gradient.

    View source

    Members

    color

    fn color(self: &Self) -> Color
    

    The gradient stop color.

    Source

    offset

    fn offset(self: &Self) -> f64
    

    The gradient stop offset.

    Source

    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).

    Source

    is_immutable_gradient_stop

    fn is_immutable_gradient_stop(self: &Self) -> bool
    

    Whether the stop is an ImmutableGradientStop (the as ImmutableGradientStop test of upstream).

    Source

    Trait implementations

    Availability

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