pub struct CompositionTargetProps { /* private fields */ }Expand description
The UI-thread properties of CompositionTarget.
Implementations§
Source§impl CompositionTargetProps
impl CompositionTargetProps
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 CompositionTargetHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionTargetHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionTargetHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionTargetHooks)
InitializeDefaults of this class alone.
Sourcepub fn root(&self) -> Option<Rc<dyn ICompositionObject>>
pub fn root(&self) -> Option<Rc<dyn ICompositionObject>>
Root.
Sourcepub fn set_root(
&self,
host: &dyn CompositionTargetHooks,
value: Option<Rc<dyn ICompositionObject>>,
)
pub fn set_root( &self, host: &dyn CompositionTargetHooks, value: Option<Rc<dyn ICompositionObject>>, )
Sets Root.
Sourcepub fn is_enabled(&self) -> bool
pub fn is_enabled(&self) -> bool
IsEnabled.
Sourcepub fn set_is_enabled(&self, host: &dyn CompositionTargetHooks, value: bool)
pub fn set_is_enabled(&self, host: &dyn CompositionTargetHooks, value: bool)
Sets IsEnabled.
Sourcepub fn debug_overlays(&self) -> RendererDebugOverlays
pub fn debug_overlays(&self) -> RendererDebugOverlays
DebugOverlays.
Sourcepub fn set_debug_overlays(
&self,
host: &dyn CompositionTargetHooks,
value: RendererDebugOverlays,
)
pub fn set_debug_overlays( &self, host: &dyn CompositionTargetHooks, value: RendererDebugOverlays, )
Sets DebugOverlays.
Sourcepub fn last_layout_pass_timing(&self) -> LayoutPassTiming
pub fn last_layout_pass_timing(&self) -> LayoutPassTiming
LastLayoutPassTiming (internal).
Sourcepub fn set_last_layout_pass_timing(
&self,
host: &dyn CompositionTargetHooks,
value: LayoutPassTiming,
)
pub fn set_last_layout_pass_timing( &self, host: &dyn CompositionTargetHooks, value: LayoutPassTiming, )
Sets LastLayoutPassTiming (internal).
Sourcepub fn set_scaling(&self, host: &dyn CompositionTargetHooks, value: f64)
pub fn set_scaling(&self, host: &dyn CompositionTargetHooks, value: f64)
Sets Scaling.
Sourcepub fn set_size(&self, host: &dyn CompositionTargetHooks, value: Size)
pub fn set_size(&self, host: &dyn CompositionTargetHooks, value: Size)
Sets Size.
Sourcepub fn transparency_level(&self) -> CompositionTransparencyLevel
pub fn transparency_level(&self) -> CompositionTransparencyLevel
TransparencyLevel.
Sourcepub fn set_transparency_level(
&self,
host: &dyn CompositionTargetHooks,
value: CompositionTransparencyLevel,
)
pub fn set_transparency_level( &self, host: &dyn CompositionTargetHooks, value: CompositionTransparencyLevel, )
Sets TransparencyLevel.
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.
Sourcepub fn set_platform_specific_scene_info(
&self,
host: &dyn CompositionTargetHooks,
value: Option<Arc<dyn Any + Send + Sync>>,
)
pub fn set_platform_specific_scene_info( &self, host: &dyn CompositionTargetHooks, value: Option<Arc<dyn Any + Send + Sync>>, )
Sets PlatformSpecificSceneInfo.
Sourcepub fn serialize_changes_core(
&self,
_host: &dyn CompositionTargetHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, _host: &dyn CompositionTargetHooks, 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 CompositionTargetProps
impl !RefUnwindSafe for CompositionTargetProps
impl !Send for CompositionTargetProps
impl !Sync for CompositionTargetProps
impl !UnwindSafe for CompositionTargetProps
impl Unpin for CompositionTargetProps
impl UnsafeUnpin for CompositionTargetProps
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