pub struct ServerSpotLightProps { /* private fields */ }Expand description
The server-side properties of ServerSpotLight.
Implementations§
Source§impl ServerSpotLightProps
impl ServerSpotLightProps
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_constant_attenuation_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_constant_attenuation_property() -> &'static CompositionPropertyOf<f32>
The composition property of ConstantAttenuation.
Sourcepub fn constant_attenuation(&self) -> f32
pub fn constant_attenuation(&self) -> f32
ConstantAttenuation (animated).
pub fn set_constant_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn id_of_linear_attenuation_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_linear_attenuation_property() -> &'static CompositionPropertyOf<f32>
The composition property of LinearAttenuation.
Sourcepub fn linear_attenuation(&self) -> f32
pub fn linear_attenuation(&self) -> f32
LinearAttenuation (animated).
pub fn set_linear_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn id_of_quadratic_attenuation_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_quadratic_attenuation_property() -> &'static CompositionPropertyOf<f32>
The composition property of QuadraticAttenuation.
Sourcepub fn quadratic_attenuation(&self) -> f32
pub fn quadratic_attenuation(&self) -> f32
QuadraticAttenuation (animated).
pub fn set_quadratic_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )
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 ServerSpotLightHooks, 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 ServerSpotLightHooks, value: Vector3D)
Sourcepub fn id_of_inner_cone_angle_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_inner_cone_angle_property() -> &'static CompositionPropertyOf<f32>
The composition property of InnerConeAngle.
Sourcepub fn inner_cone_angle(&self) -> f32
pub fn inner_cone_angle(&self) -> f32
InnerConeAngle (animated).
pub fn set_inner_cone_angle(&self, host: &dyn ServerSpotLightHooks, value: f32)
Sourcepub fn id_of_inner_cone_color_property() -> &'static CompositionPropertyOf<Color>
pub fn id_of_inner_cone_color_property() -> &'static CompositionPropertyOf<Color>
The composition property of InnerConeColor.
Sourcepub fn inner_cone_color(&self) -> Color
pub fn inner_cone_color(&self) -> Color
InnerConeColor (animated).
pub fn set_inner_cone_color( &self, host: &dyn ServerSpotLightHooks, value: Color, )
Sourcepub fn id_of_inner_cone_intensity_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_inner_cone_intensity_property() -> &'static CompositionPropertyOf<f32>
The composition property of InnerConeIntensity.
Sourcepub fn inner_cone_intensity(&self) -> f32
pub fn inner_cone_intensity(&self) -> f32
InnerConeIntensity (animated).
pub fn set_inner_cone_intensity( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn id_of_outer_cone_angle_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_outer_cone_angle_property() -> &'static CompositionPropertyOf<f32>
The composition property of OuterConeAngle.
Sourcepub fn outer_cone_angle(&self) -> f32
pub fn outer_cone_angle(&self) -> f32
OuterConeAngle (animated).
pub fn set_outer_cone_angle(&self, host: &dyn ServerSpotLightHooks, value: f32)
Sourcepub fn id_of_outer_cone_color_property() -> &'static CompositionPropertyOf<Color>
pub fn id_of_outer_cone_color_property() -> &'static CompositionPropertyOf<Color>
The composition property of OuterConeColor.
Sourcepub fn outer_cone_color(&self) -> Color
pub fn outer_cone_color(&self) -> Color
OuterConeColor (animated).
pub fn set_outer_cone_color( &self, host: &dyn ServerSpotLightHooks, value: Color, )
Sourcepub fn id_of_outer_cone_intensity_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_outer_cone_intensity_property() -> &'static CompositionPropertyOf<f32>
The composition property of OuterConeIntensity.
Sourcepub fn outer_cone_intensity(&self) -> f32
pub fn outer_cone_intensity(&self) -> f32
OuterConeIntensity (animated).
pub fn set_outer_cone_intensity( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>
pub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>
The composition property of Offset.
pub fn set_offset(&self, host: &dyn ServerSpotLightHooks, value: Vector3D)
Sourcepub fn id_of_min_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_min_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>
The composition property of MinAttenuationCutoff.
Sourcepub fn min_attenuation_cutoff(&self) -> f32
pub fn min_attenuation_cutoff(&self) -> f32
MinAttenuationCutoff (animated).
pub fn set_min_attenuation_cutoff( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn id_of_max_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>
pub fn id_of_max_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>
The composition property of MaxAttenuationCutoff.
Sourcepub fn max_attenuation_cutoff(&self) -> f32
pub fn max_attenuation_cutoff(&self) -> f32
MaxAttenuationCutoff (animated).
pub fn set_max_attenuation_cutoff( &self, host: &dyn ServerSpotLightHooks, value: f32, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerSpotLightHooks,
reader: &mut BatchStreamReader<'_>,
committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerSpotLightHooks, 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 ServerSpotLightProps
impl !RefUnwindSafe for ServerSpotLightProps
impl !Send for ServerSpotLightProps
impl !Sync for ServerSpotLightProps
impl !UnwindSafe for ServerSpotLightProps
impl Unpin for ServerSpotLightProps
impl UnsafeUnpin for ServerSpotLightProps
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more