pub struct ServerCompositionTargetProps { /* private fields */ }Expand description
The server-side properties of ServerCompositionTarget.
Implementations§
Source§impl ServerCompositionTargetProps
impl ServerCompositionTargetProps
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 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_root_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
pub fn id_of_root_property() -> &'static CompositionPropertyOf<Option<Rc<dyn IServerObject>>>
The composition property of Root.
Sourcepub fn root(&self) -> Option<Rc<dyn IServerObject>>
pub fn root(&self) -> Option<Rc<dyn IServerObject>>
Root.
pub fn set_root( &self, host: &dyn ServerCompositionTargetHooks, value: Option<Rc<dyn IServerObject>>, )
Sourcepub fn id_of_is_enabled_property() -> &'static CompositionPropertyOf<bool>
pub fn id_of_is_enabled_property() -> &'static CompositionPropertyOf<bool>
The composition property of IsEnabled.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
IsEnabled.
pub fn set_is_enabled( &self, host: &dyn ServerCompositionTargetHooks, value: bool, )
Sourcepub fn id_of_debug_overlays_property() -> &'static CompositionPropertyOf<RendererDebugOverlays>
pub fn id_of_debug_overlays_property() -> &'static CompositionPropertyOf<RendererDebugOverlays>
The composition property of DebugOverlays.
Sourcepub fn debug_overlays(&self) -> RendererDebugOverlays
pub fn debug_overlays(&self) -> RendererDebugOverlays
DebugOverlays.
pub fn set_debug_overlays( &self, host: &dyn ServerCompositionTargetHooks, value: RendererDebugOverlays, )
Sourcepub fn id_of_last_layout_pass_timing_property() -> &'static CompositionPropertyOf<LayoutPassTiming>
pub fn id_of_last_layout_pass_timing_property() -> &'static CompositionPropertyOf<LayoutPassTiming>
The composition property of LastLayoutPassTiming.
Sourcepub fn last_layout_pass_timing(&self) -> LayoutPassTiming
pub fn last_layout_pass_timing(&self) -> LayoutPassTiming
LastLayoutPassTiming.
pub fn set_last_layout_pass_timing( &self, host: &dyn ServerCompositionTargetHooks, value: LayoutPassTiming, )
Sourcepub fn id_of_scaling_property() -> &'static CompositionPropertyOf<f64>
pub fn id_of_scaling_property() -> &'static CompositionPropertyOf<f64>
The composition property of Scaling.
pub fn set_scaling(&self, host: &dyn ServerCompositionTargetHooks, value: f64)
Sourcepub fn id_of_size_property() -> &'static CompositionPropertyOf<Size>
pub fn id_of_size_property() -> &'static CompositionPropertyOf<Size>
The composition property of Size.
pub fn set_size(&self, host: &dyn ServerCompositionTargetHooks, value: Size)
Sourcepub fn id_of_transparency_level_property() -> &'static CompositionPropertyOf<CompositionTransparencyLevel>
pub fn id_of_transparency_level_property() -> &'static CompositionPropertyOf<CompositionTransparencyLevel>
The composition property of TransparencyLevel.
Sourcepub fn transparency_level(&self) -> CompositionTransparencyLevel
pub fn transparency_level(&self) -> CompositionTransparencyLevel
TransparencyLevel.
pub fn set_transparency_level( &self, host: &dyn ServerCompositionTargetHooks, value: CompositionTransparencyLevel, )
Sourcepub fn id_of_platform_specific_scene_info_property() -> &'static CompositionPropertyOf<Option<Arc<dyn Any + Send + Sync>>>
pub fn id_of_platform_specific_scene_info_property() -> &'static CompositionPropertyOf<Option<Arc<dyn Any + Send + Sync>>>
The composition property of PlatformSpecificSceneInfo.
Sourcepub fn platform_specific_scene_info(&self) -> Option<Arc<dyn Any + Send + Sync>>
pub fn platform_specific_scene_info(&self) -> Option<Arc<dyn Any + Send + Sync>>
PlatformSpecificSceneInfo.
pub fn set_platform_specific_scene_info( &self, host: &dyn ServerCompositionTargetHooks, value: Option<Arc<dyn Any + Send + Sync>>, )
Sourcepub fn deserialize_changes_core(
&self,
host: &dyn ServerCompositionTargetHooks,
reader: &mut BatchStreamReader<'_>,
_committed_at: Duration,
)
pub fn deserialize_changes_core( &self, host: &dyn ServerCompositionTargetHooks, 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 ServerCompositionTargetProps
impl !RefUnwindSafe for ServerCompositionTargetProps
impl !Send for ServerCompositionTargetProps
impl !Sync for ServerCompositionTargetProps
impl !UnwindSafe for ServerCompositionTargetProps
impl Unpin for ServerCompositionTargetProps
impl UnsafeUnpin for ServerCompositionTargetProps
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