pub struct CompositionRadialGradientBrush(/* private fields */);Expand description
A composition brush that paints with a radial gradient.
Implementations§
Source§impl CompositionRadialGradientBrush
impl CompositionRadialGradientBrush
Sourcepub fn from_brush(
brush: &Rc<CompositionBrush>,
) -> Option<CompositionRadialGradientBrush>
pub fn from_brush( brush: &Rc<CompositionBrush>, ) -> Option<CompositionRadialGradientBrush>
The handle of brush as this class, if it is one.
Source§impl CompositionRadialGradientBrush
impl CompositionRadialGradientBrush
pub fn center(&self) -> RelativePoint
pub fn set_center(&self, value: RelativePoint)
pub fn gradient_origin(&self) -> RelativePoint
pub fn set_gradient_origin(&self, value: RelativePoint)
pub fn radius_x(&self) -> RelativeScalar
pub fn set_radius_x(&self, value: RelativeScalar)
pub fn radius_y(&self) -> RelativeScalar
pub fn set_radius_y(&self, value: RelativeScalar)
pub fn radius(&self) -> f64
Methods from Deref<Target = CompositionGradientBrush>§
Sourcepub fn gradient_stops(&self) -> FerroList<Rc<dyn IGradientStop>>
pub fn gradient_stops(&self) -> FerroList<Rc<dyn IGradientStop>>
The gradient stops. Mutations of the list itself are not tracked - assign
the property to ship in-place edits made after a commit. Stops created via
Compositor::create_gradient_stop_with stay live
on the server and animate individually; other stops are snapshotted at
serialization time.
pub fn set_gradient_stops(&self, value: FerroList<Rc<dyn IGradientStop>>)
Sourcepub fn spread_method(&self) -> GradientSpreadMethod
pub fn spread_method(&self) -> GradientSpreadMethod
How the gradient repeats outside the stop range.
pub fn set_spread_method(&self, value: GradientSpreadMethod)
Trait Implementations§
Source§impl Deref for CompositionRadialGradientBrush
impl Deref for CompositionRadialGradientBrush
Source§type Target = CompositionGradientBrush
type Target = CompositionGradientBrush
The resulting type after dereferencing.
Source§fn deref(&self) -> &CompositionGradientBrush
fn deref(&self) -> &CompositionGradientBrush
Dereferences the value.
Auto Trait Implementations§
impl !RefUnwindSafe for CompositionRadialGradientBrush
impl !Send for CompositionRadialGradientBrush
impl !Sync for CompositionRadialGradientBrush
impl !UnwindSafe for CompositionRadialGradientBrush
impl Freeze for CompositionRadialGradientBrush
impl Unpin for CompositionRadialGradientBrush
impl UnsafeUnpin for CompositionRadialGradientBrush
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more