FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    GradientStop

    struct · ferroui-base · v0.5.0

    struct GradientStop
    

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

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<GradientStop>
    

    Returns a strong reference to this object.

    Source

    offset_property

    fn offset_property() -> &'static StyledProperty<f64>
    

    Source

    color_property

    fn color_property() -> &'static StyledProperty<Color>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    with_color_and_offset

    fn with_color_and_offset(color: Color, offset: f64) -> Ref<Self>
    

    Creates a gradient stop with the given color and offset.

    Source

    offset

    fn offset(self: &Self) -> f64
    

    The gradient stop offset.

    Source

    set_offset

    fn set_offset(self: &Self, value: f64)
    

    Source

    color

    fn color(self: &Self) -> Color
    

    The gradient stop color.

    Source

    set_color

    fn set_color(self: &Self, value: Color)
    

    Source

    Trait implementations

    Availability

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