pub struct ServerDistantLightProps { /* private fields */ }Expand description
The server-side properties of ServerDistantLight.
Implementations§
Source§impl ServerDistantLightProps
impl ServerDistantLightProps
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 base(&self) -> &ServerCompositionLightProps
pub fn base(&self) -> &ServerCompositionLightProps
The properties of the 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 block or the block of a base class, by type: what
IServerObject::get_props of the embedding class returns.
Sourcepub fn id_of_color_property() -> &'static CompositionPropertyOf<Color>
pub fn id_of_color_property() -> &'static CompositionPropertyOf<Color>
The composition property of Color.
pub fn set_color(&self, host: &dyn ServerDistantLightHooks, value: Color)
Sourcepub fn id_of_coordinate_space_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_coordinate_space_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of CoordinateSpace.
Sourcepub fn coordinate_space(&self) -> Option<Rc<dyn IServerObject>>
pub fn coordinate_space(&self) -> Option<Rc<dyn IServerObject>>
CoordinateSpace.
pub fn set_coordinate_space( &self, host: &dyn ServerDistantLightHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_direction_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_direction_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of Direction.
pub fn set_direction(&self, host: &dyn ServerDistantLightHooks, value: Vector3D)
Sourcepub fn id_of_intensity_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_intensity_property() -> &'static CompositionPropertyOf<f32>
The composition property of Intensity.
pub fn set_intensity(&self, host: &dyn ServerDistantLightHooks, value: f32)
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerDistantLightHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerDistantLightHooks, 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.
Sourcepub fn get_composition_property(
name: &str,
) -> Option<&'static CompositionProperty>
pub fn get_composition_property( name: &str, ) -> Option<&'static CompositionProperty>
The composition property with the given name, among the properties of this class and of its generated bases that have a variant form.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ServerDistantLightProps
impl !RefUnwindSafe for ServerDistantLightProps
impl !Send for ServerDistantLightProps
impl !Sync for ServerDistantLightProps
impl !UnwindSafe for ServerDistantLightProps
impl Unpin for ServerDistantLightProps
impl UnsafeUnpin for ServerDistantLightProps
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