pub struct ServerCompositionGradientBrush { /* private fields */ }Expand description
The part of the server-side gradient brushes that upstream’s
hand-written ServerCompositionGradientBrush adds to the generated
ServerCompositionBrush: the brush properties, the gradient stops and
the spread method.
Implementations§
Source§impl ServerCompositionGradientBrush
impl ServerCompositionGradientBrush
pub fn new() -> Self
Sourcepub fn brush(&self) -> &ServerCompositionBrushProps
pub fn brush(&self) -> &ServerCompositionBrushProps
The properties of the generated base class.
Sourcepub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
pub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
This part or the block of its base class, by type.
Sourcepub fn id_of_gradient_stops_property() -> &'static CompositionPropertyOf<Vec<Rc<dyn IGradientStop>>>
pub fn id_of_gradient_stops_property() -> &'static CompositionPropertyOf<Vec<Rc<dyn IGradientStop>>>
s_IdOfGradientStopsProperty.
pub fn gradient_stops(&self) -> Vec<Rc<dyn IGradientStop>>
Sourcepub fn set_gradient_stops(
&self,
host: &dyn IServerRenderResourceHost,
core: &ServerRenderResourceCore,
value: Vec<ServerResourceRef<dyn IGradientStop>>,
)
pub fn set_gradient_stops( &self, host: &dyn IServerRenderResourceHost, core: &ServerRenderResourceCore, value: Vec<ServerResourceRef<dyn IGradientStop>>, )
Sets the gradient stops: the render resources among them are
observed by the brush (SetValue of the render resource).
pub fn spread_method(&self) -> GradientSpreadMethod
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionBrushHooks,
resource: &dyn IServerRenderResourceHost,
core: &ServerRenderResourceCore,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionBrushHooks, resource: &dyn IServerRenderResourceHost, core: &ServerRenderResourceCore, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
DeserializeChangesCore: the generated base class, then the spread
method and the stops. host and resource are the brush.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerCompositionGradientBrush
impl !RefUnwindSafe for ServerCompositionGradientBrush
impl !Send for ServerCompositionGradientBrush
impl !Sync for ServerCompositionGradientBrush
impl !UnwindSafe for ServerCompositionGradientBrush
impl Unpin for ServerCompositionGradientBrush
impl UnsafeUnpin for ServerCompositionGradientBrush
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