pub struct CompositionConicGradientBrush(/* private fields */);Expand description
A composition brush that paints with a conic gradient.
Implementations§
Source§impl CompositionConicGradientBrush
impl CompositionConicGradientBrush
Sourcepub fn from_brush(
brush: &Rc<CompositionBrush>,
) -> Option<CompositionConicGradientBrush>
pub fn from_brush( brush: &Rc<CompositionBrush>, ) -> Option<CompositionConicGradientBrush>
The handle of brush as this class, if it is one.
Source§impl CompositionConicGradientBrush
impl CompositionConicGradientBrush
pub fn angle(&self) -> f64
pub fn set_angle(&self, value: f64)
pub fn center(&self) -> RelativePoint
pub fn set_center(&self, value: RelativePoint)
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 CompositionConicGradientBrush
impl Deref for CompositionConicGradientBrush
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 CompositionConicGradientBrush
impl !Send for CompositionConicGradientBrush
impl !Sync for CompositionConicGradientBrush
impl !UnwindSafe for CompositionConicGradientBrush
impl Freeze for CompositionConicGradientBrush
impl Unpin for CompositionConicGradientBrush
impl UnsafeUnpin for CompositionConicGradientBrush
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