FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    LinearGradientBrush

    struct · ferroui-base · v0.5.0

    struct LinearGradientBrush
    

    A brush that draws with a linear 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<LinearGradientBrush>
    

    Returns a strong reference to this object.

    Source

    start_point_property

    fn start_point_property() -> &'static StyledProperty<RelativePoint>
    

    Source

    end_point_property

    fn end_point_property() -> &'static StyledProperty<RelativePoint>
    

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    start_point

    fn start_point(self: &Self) -> RelativePoint
    

    The start point for the gradient.

    Source

    set_start_point

    fn set_start_point(self: &Self, value: RelativePoint)
    

    Source

    end_point

    fn end_point(self: &Self) -> RelativePoint
    

    The end point for the gradient.

    Source

    set_end_point

    fn set_end_point(self: &Self, value: RelativePoint)
    

    Source

    Trait implementations

    Availability

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