pub struct ServerCompositionSimpleGradientBrush { /* private fields */ }Expand description
The gradient part of the server-side gradient brushes: the brush properties, the stops and the spread method.
Embedded by the linear, radial and conic gradient brushes, whose generated properties read their changes after it.
Implementations§
Source§impl ServerCompositionSimpleGradientBrush
impl ServerCompositionSimpleGradientBrush
pub fn new() -> Self
Sourcepub fn brush(&self) -> &ServerCompositionSimpleBrushProps
pub fn brush(&self) -> &ServerCompositionSimpleBrushProps
The brush properties.
pub fn gradient_stops(&self) -> Vec<Rc<dyn IGradientStop>>
pub fn spread_method(&self) -> GradientSpreadMethod
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionSimpleBrushHooks, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionSimpleGradientBrush
impl !RefUnwindSafe for ServerCompositionSimpleGradientBrush
impl !Send for ServerCompositionSimpleGradientBrush
impl !Sync for ServerCompositionSimpleGradientBrush
impl !UnwindSafe for ServerCompositionSimpleGradientBrush
impl Unpin for ServerCompositionSimpleGradientBrush
impl UnsafeUnpin for ServerCompositionSimpleGradientBrush
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