pub struct ServerSpriteVisualProps { /* private fields */ }Expand description
The server-side properties of ServerSpriteVisual.
Implementations§
Source§impl ServerSpriteVisualProps
impl ServerSpriteVisualProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type; the values of the UI thread arrive with the first batch.
Sourcepub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
pub fn find_props(&self, type_id: TypeId) -> Option<&dyn Any>
This block or the block of a base class, by type: what
IServerObject::get_props of the embedding class returns.
Sourcepub fn id_of_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_brush_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Brush.
Sourcepub fn brush(&self) -> Option<Rc<dyn IServerObject>>
pub fn brush(&self) -> Option<Rc<dyn IServerObject>>
Brush.
pub fn set_brush( &self, host: &dyn ServerSpriteVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_shadow_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_shadow_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Shadow.
Sourcepub fn shadow(&self) -> Option<Rc<dyn IServerObject>>
pub fn shadow(&self) -> Option<Rc<dyn IServerObject>>
Shadow.
pub fn set_shadow( &self, host: &dyn ServerSpriteVisualHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerSpriteVisualHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerSpriteVisualHooks, reader: &mut BatchStreamReader<'_>, committed_at: Duration, )
Reads the changes of the object: the base class first, then the changed-fields mask and the changed members of this class.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerSpriteVisualProps
impl !RefUnwindSafe for ServerSpriteVisualProps
impl !Send for ServerSpriteVisualProps
impl !Sync for ServerSpriteVisualProps
impl !UnwindSafe for ServerSpriteVisualProps
impl Unpin for ServerSpriteVisualProps
impl UnsafeUnpin for ServerSpriteVisualProps
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