pub struct SpotLightProps { /* private fields */ }Expand description
The UI-thread properties of SpotLight.
Implementations§
Source§impl SpotLightProps
impl SpotLightProps
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates the properties with every field at the default of its type.
The defaults of the schema are applied by
initialize_defaults.
Sourcepub fn base(&self) -> &CompositionLightProps
pub fn base(&self) -> &CompositionLightProps
The properties of the base class.
Sourcepub fn initialize_defaults(&self, host: &dyn SpotLightHooks)
pub fn initialize_defaults(&self, host: &dyn SpotLightHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn SpotLightHooks)
pub fn initialize_own_defaults(&self, host: &dyn SpotLightHooks)
InitializeDefaults of this class alone.
Sourcepub fn constant_attenuation(&self) -> f32
pub fn constant_attenuation(&self) -> f32
ConstantAttenuation (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_constant_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_constant_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
Sets ConstantAttenuation (animated, default 1.0, FerroUI overlay).
Sourcepub fn linear_attenuation(&self) -> f32
pub fn linear_attenuation(&self) -> f32
LinearAttenuation (animated, FerroUI overlay).
Sourcepub fn set_linear_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_linear_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
Sets LinearAttenuation (animated, FerroUI overlay).
Sourcepub fn quadratic_attenuation(&self) -> f32
pub fn quadratic_attenuation(&self) -> f32
QuadraticAttenuation (animated, FerroUI overlay).
Sourcepub fn set_quadratic_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_quadratic_attenuation(&self, host: &dyn SpotLightHooks, value: f32)
Sets QuadraticAttenuation (animated, FerroUI overlay).
Sourcepub fn coordinate_space(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn coordinate_space(&self) -> Option<Rc<dyn ICompositionObject>>
CoordinateSpace (FerroUI overlay).
Sourcepub fn set_coordinate_space(
&self,
host: &dyn SpotLightHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_coordinate_space( &self, host: &dyn SpotLightHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets CoordinateSpace (FerroUI overlay).
Sourcepub fn direction(&self) -> Vector3D
pub fn direction(&self) -> Vector3D
Direction (animated, default Vector3D::new(0.0, 0.0, -1.0), FerroUI overlay).
Sourcepub fn set_direction(&self, host: &dyn SpotLightHooks, value: Vector3D)
pub fn set_direction(&self, host: &dyn SpotLightHooks, value: Vector3D)
Sets Direction (animated, default Vector3D::new(0.0, 0.0, -1.0), FerroUI overlay).
Sourcepub fn inner_cone_angle(&self) -> f32
pub fn inner_cone_angle(&self) -> f32
InnerConeAngle (animated, FerroUI overlay).
Sourcepub fn set_inner_cone_angle(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_inner_cone_angle(&self, host: &dyn SpotLightHooks, value: f32)
Sets InnerConeAngle (animated, FerroUI overlay).
Sourcepub fn inner_cone_color(&self) -> Color
pub fn inner_cone_color(&self) -> Color
InnerConeColor (animated, default crate::media::Colors::WHITE, FerroUI overlay).
Sourcepub fn set_inner_cone_color(&self, host: &dyn SpotLightHooks, value: Color)
pub fn set_inner_cone_color(&self, host: &dyn SpotLightHooks, value: Color)
Sets InnerConeColor (animated, default crate::media::Colors::WHITE, FerroUI overlay).
Sourcepub fn inner_cone_intensity(&self) -> f32
pub fn inner_cone_intensity(&self) -> f32
InnerConeIntensity (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_inner_cone_intensity(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_inner_cone_intensity(&self, host: &dyn SpotLightHooks, value: f32)
Sets InnerConeIntensity (animated, default 1.0, FerroUI overlay).
Sourcepub fn outer_cone_angle(&self) -> f32
pub fn outer_cone_angle(&self) -> f32
OuterConeAngle (animated, default std::f32::consts::FRAC_PI_4, FerroUI overlay).
Sourcepub fn set_outer_cone_angle(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_outer_cone_angle(&self, host: &dyn SpotLightHooks, value: f32)
Sets OuterConeAngle (animated, default std::f32::consts::FRAC_PI_4, FerroUI overlay).
Sourcepub fn outer_cone_color(&self) -> Color
pub fn outer_cone_color(&self) -> Color
OuterConeColor (animated, default crate::media::Colors::WHITE, FerroUI overlay).
Sourcepub fn set_outer_cone_color(&self, host: &dyn SpotLightHooks, value: Color)
pub fn set_outer_cone_color(&self, host: &dyn SpotLightHooks, value: Color)
Sets OuterConeColor (animated, default crate::media::Colors::WHITE, FerroUI overlay).
Sourcepub fn outer_cone_intensity(&self) -> f32
pub fn outer_cone_intensity(&self) -> f32
OuterConeIntensity (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_outer_cone_intensity(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_outer_cone_intensity(&self, host: &dyn SpotLightHooks, value: f32)
Sets OuterConeIntensity (animated, default 1.0, FerroUI overlay).
Sourcepub fn set_offset(&self, host: &dyn SpotLightHooks, value: Vector3D)
pub fn set_offset(&self, host: &dyn SpotLightHooks, value: Vector3D)
Sets Offset (animated, FerroUI overlay).
Sourcepub fn min_attenuation_cutoff(&self) -> f32
pub fn min_attenuation_cutoff(&self) -> f32
MinAttenuationCutoff (animated, FerroUI overlay).
Sourcepub fn set_min_attenuation_cutoff(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_min_attenuation_cutoff(&self, host: &dyn SpotLightHooks, value: f32)
Sets MinAttenuationCutoff (animated, FerroUI overlay).
Sourcepub fn max_attenuation_cutoff(&self) -> f32
pub fn max_attenuation_cutoff(&self) -> f32
MaxAttenuationCutoff (animated, default f32::MAX, FerroUI overlay).
Sourcepub fn set_max_attenuation_cutoff(&self, host: &dyn SpotLightHooks, value: f32)
pub fn set_max_attenuation_cutoff(&self, host: &dyn SpotLightHooks, value: f32)
Sets MaxAttenuationCutoff (animated, default f32::MAX, FerroUI overlay).
Sourcepub fn start_animation(
&self,
host: &dyn SpotLightHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn SpotLightHooks, property_name: &str, animation: &dyn ICompositionAnimation, final_value: Option<ExpressionVariant>, ) -> bool
Connects an animation with the named property. Returns false when
neither this class nor its generated bases have an animated property
of that name: the caller continues with its hand-written base.
Sourcepub fn serialize_changes_core(
&self,
host: &dyn SpotLightHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn SpotLightHooks, writer: &mut BatchStreamWriter<'_>, )
Writes 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 SpotLightProps
impl !RefUnwindSafe for SpotLightProps
impl !Send for SpotLightProps
impl !Sync for SpotLightProps
impl !UnwindSafe for SpotLightProps
impl Unpin for SpotLightProps
impl UnsafeUnpin for SpotLightProps
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