pub struct CompositionLightProps { /* private fields */ }Expand description
The UI-thread properties of CompositionLight.
Implementations§
Source§impl CompositionLightProps
impl CompositionLightProps
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 initialize_defaults(&self, host: &dyn CompositionLightHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionLightHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionLightHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionLightHooks)
InitializeDefaults of this class alone.
Sourcepub fn targets(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn targets(&self) -> Option<Rc<dyn ICompositionObject>>
Targets (internal, FerroUI overlay).
Sourcepub fn set_targets(
&self,
host: &dyn CompositionLightHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_targets( &self, host: &dyn CompositionLightHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Targets (internal, FerroUI overlay).
Sourcepub fn exclusions_from_targets(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn exclusions_from_targets(&self) -> Option<Rc<dyn ICompositionObject>>
ExclusionsFromTargets (internal, FerroUI overlay).
Sourcepub fn set_exclusions_from_targets(
&self,
host: &dyn CompositionLightHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_exclusions_from_targets( &self, host: &dyn CompositionLightHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets ExclusionsFromTargets (internal, FerroUI overlay).
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
IsEnabled (default true, FerroUI overlay).
Sourcepub fn set_is_enabled(&self, host: &dyn CompositionLightHooks, value: bool)
pub fn set_is_enabled(&self, host: &dyn CompositionLightHooks, value: bool)
Sets IsEnabled (default true, FerroUI overlay).
Sourcepub fn serialize_changes_core(
&self,
_host: &dyn CompositionLightHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, _host: &dyn CompositionLightHooks, 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 CompositionLightProps
impl !RefUnwindSafe for CompositionLightProps
impl !Send for CompositionLightProps
impl !Sync for CompositionLightProps
impl !UnwindSafe for CompositionLightProps
impl Unpin for CompositionLightProps
impl UnsafeUnpin for CompositionLightProps
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