Skip to main content

ServerSpotLightProps

Struct ServerSpotLightProps 

Source
pub struct ServerSpotLightProps { /* private fields */ }
Expand description

The server-side properties of ServerSpotLight.

Implementations§

Source§

impl ServerSpotLightProps

Source

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.

Source

pub fn base(&self) -> &ServerCompositionLightProps

The properties of the base class.

Source

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.

Source

pub fn id_of_constant_attenuation_property() -> &'static CompositionPropertyOf<f32>

The composition property of ConstantAttenuation.

Source

pub fn constant_attenuation(&self) -> f32

ConstantAttenuation (animated).

Source

pub fn set_constant_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_linear_attenuation_property() -> &'static CompositionPropertyOf<f32>

The composition property of LinearAttenuation.

Source

pub fn linear_attenuation(&self) -> f32

LinearAttenuation (animated).

Source

pub fn set_linear_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_quadratic_attenuation_property() -> &'static CompositionPropertyOf<f32>

The composition property of QuadraticAttenuation.

Source

pub fn quadratic_attenuation(&self) -> f32

QuadraticAttenuation (animated).

Source

pub fn set_quadratic_attenuation( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_coordinate_space_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>

The composition property of CoordinateSpace.

Source

pub fn coordinate_space(&self) -> Option<Rc<dyn IServerObject>>

CoordinateSpace.

Source

pub fn set_coordinate_space( &self, host: &dyn ServerSpotLightHooks, value: Option<Rc<dyn IServerObject>>, )

Source

pub fn id_of_direction_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of Direction.

Source

pub fn direction(&self) -> Vector3D

Direction (animated).

Source

pub fn set_direction(&self, host: &dyn ServerSpotLightHooks, value: Vector3D)

Source

pub fn id_of_inner_cone_angle_property() -> &'static CompositionPropertyOf<f32>

The composition property of InnerConeAngle.

Source

pub fn inner_cone_angle(&self) -> f32

InnerConeAngle (animated).

Source

pub fn set_inner_cone_angle(&self, host: &dyn ServerSpotLightHooks, value: f32)

Source

pub fn id_of_inner_cone_color_property() -> &'static CompositionPropertyOf<Color>

The composition property of InnerConeColor.

Source

pub fn inner_cone_color(&self) -> Color

InnerConeColor (animated).

Source

pub fn set_inner_cone_color( &self, host: &dyn ServerSpotLightHooks, value: Color, )

Source

pub fn id_of_inner_cone_intensity_property() -> &'static CompositionPropertyOf<f32>

The composition property of InnerConeIntensity.

Source

pub fn inner_cone_intensity(&self) -> f32

InnerConeIntensity (animated).

Source

pub fn set_inner_cone_intensity( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_outer_cone_angle_property() -> &'static CompositionPropertyOf<f32>

The composition property of OuterConeAngle.

Source

pub fn outer_cone_angle(&self) -> f32

OuterConeAngle (animated).

Source

pub fn set_outer_cone_angle(&self, host: &dyn ServerSpotLightHooks, value: f32)

Source

pub fn id_of_outer_cone_color_property() -> &'static CompositionPropertyOf<Color>

The composition property of OuterConeColor.

Source

pub fn outer_cone_color(&self) -> Color

OuterConeColor (animated).

Source

pub fn set_outer_cone_color( &self, host: &dyn ServerSpotLightHooks, value: Color, )

Source

pub fn id_of_outer_cone_intensity_property() -> &'static CompositionPropertyOf<f32>

The composition property of OuterConeIntensity.

Source

pub fn outer_cone_intensity(&self) -> f32

OuterConeIntensity (animated).

Source

pub fn set_outer_cone_intensity( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_offset_property() -> &'static CompositionPropertyOf<Vector3D>

The composition property of Offset.

Source

pub fn offset(&self) -> Vector3D

Offset (animated).

Source

pub fn set_offset(&self, host: &dyn ServerSpotLightHooks, value: Vector3D)

Source

pub fn id_of_min_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>

The composition property of MinAttenuationCutoff.

Source

pub fn min_attenuation_cutoff(&self) -> f32

MinAttenuationCutoff (animated).

Source

pub fn set_min_attenuation_cutoff( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

pub fn id_of_max_attenuation_cutoff_property() -> &'static CompositionPropertyOf<f32>

The composition property of MaxAttenuationCutoff.

Source

pub fn max_attenuation_cutoff(&self) -> f32

MaxAttenuationCutoff (animated).

Source

pub fn set_max_attenuation_cutoff( &self, host: &dyn ServerSpotLightHooks, value: f32, )

Source

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.

Source

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§

Source§

impl Default for ServerSpotLightProps

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ClassDefaults for T
where T: ?Sized,

Source§

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
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.