FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CompositionRadialGradientBrush

    struct · ferroui-base · v0.5.0

    struct CompositionRadialGradientBrush
    

    A composition brush that paints with a radial gradient.

    View source

    Members

    from_brush

    fn from_brush(brush: &Rc<CompositionBrush>) -> Option<CompositionRadialGradientBrush>
    

    The handle of brush as this class, if it is one.

    Source

    center

    fn center(self: &Self) -> RelativePoint
    

    Source

    set_center

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

    Source

    gradient_origin

    fn gradient_origin(self: &Self) -> RelativePoint
    

    Source

    set_gradient_origin

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

    Source

    radius_x

    fn radius_x(self: &Self) -> RelativeScalar
    

    Source

    set_radius_x

    fn set_radius_x(self: &Self, value: RelativeScalar)
    

    Source

    radius_y

    fn radius_y(self: &Self) -> RelativeScalar
    

    Source

    set_radius_y

    fn set_radius_y(self: &Self, value: RelativeScalar)
    

    Source

    radius

    fn radius(self: &Self) -> f64
    

    Source

    ellipse_center

    fn ellipse_center(self: &Self) -> Vector
    

    EllipseCenter: the centre of the ellipse, the upstream center, in the unit of the mapping mode.

    Source

    set_ellipse_center

    fn set_ellipse_center(self: &Self, value: Vector)
    

    Sets the centre; the gradient origin moves with it, keeping gradient_origin_offset.

    Source

    ellipse_radius

    fn ellipse_radius(self: &Self) -> Vector
    

    EllipseRadius: the radii of the ellipse, the upstream radius_x and radius_y, in the unit of the mapping mode.

    Source

    set_ellipse_radius

    fn set_ellipse_radius(self: &Self, value: Vector)
    

    Source

    gradient_origin_offset

    fn gradient_origin_offset(self: &Self) -> Vector
    

    GradientOriginOffset: where the gradient starts relative to the centre of the ellipse; the upstream gradient_origin is the centre plus this offset.

    Source

    set_gradient_origin_offset

    fn set_gradient_origin_offset(self: &Self, value: Vector)
    

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone
    • Deref

    Availability

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