pub struct ServerLightState { /* private fields */ }Expand description
The bookkeeping of a light: the observer of its changes and the targets it lit, whose subtrees are drawn again when the light changes.
Implementations§
Source§impl ServerLightState
impl ServerLightState
Sourcepub fn xaml_binding(
&self,
) -> Option<(String, Option<Rc<ServerCompositionVisual>>)>
pub fn xaml_binding( &self, ) -> Option<(String, Option<Rc<ServerCompositionVisual>>)>
The id of the XAML light and the visual of the element that holds it, when the light belongs to a XAML light.
Sourcepub fn lit_targets(&self) -> Vec<Rc<ServerCompositionVisual>>
pub fn lit_targets(&self) -> Vec<Rc<ServerCompositionVisual>>
The targets the light lit when it last changed.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerLightState
impl !RefUnwindSafe for ServerLightState
impl !Send for ServerLightState
impl !Sync for ServerLightState
impl !UnwindSafe for ServerLightState
impl Unpin for ServerLightState
impl UnsafeUnpin for ServerLightState
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