FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ConicGradientBrush

    struct · ferroui-base · v0.5.0

    struct ConicGradientBrush
    

    Paints an area with a swept circular 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<ConicGradientBrush>
    

    Returns a strong reference to this object.

    Source

    center_property

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

    Source

    angle_property

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

    Source

    construct

    fn construct() -> Self
    

    Creates the class data.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    center

    fn center(self: &Self) -> RelativePoint
    

    The center point of the gradient.

    Source

    set_center

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

    Source

    angle

    fn angle(self: &Self) -> f64
    

    The angle of the start and end of the sweep, measured from above the center point.

    Source

    set_angle

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

    Source

    Trait implementations

    Availability

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