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