Skip to main content

CompositionTargetProps

Struct CompositionTargetProps 

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

The UI-thread properties of CompositionTarget.

Implementations§

Source§

impl CompositionTargetProps

Source

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.

Source

pub fn initialize_defaults(&self, host: &dyn CompositionTargetHooks)

The InitializeDefaults calls of the constructor chain: the base classes first, then this class.

Source

pub fn initialize_own_defaults(&self, host: &dyn CompositionTargetHooks)

InitializeDefaults of this class alone.

Source

pub fn root(&self) -> Option<Rc<dyn ICompositionObject>>

Root.

Source

pub fn set_root( &self, host: &dyn CompositionTargetHooks, value: Option<Rc<dyn ICompositionObject>>, )

Sets Root.

Source

pub fn is_enabled(&self) -> bool

IsEnabled.

Source

pub fn set_is_enabled(&self, host: &dyn CompositionTargetHooks, value: bool)

Sets IsEnabled.

Source

pub fn debug_overlays(&self) -> RendererDebugOverlays

DebugOverlays.

Source

pub fn set_debug_overlays( &self, host: &dyn CompositionTargetHooks, value: RendererDebugOverlays, )

Sets DebugOverlays.

Source

pub fn last_layout_pass_timing(&self) -> LayoutPassTiming

LastLayoutPassTiming (internal).

Source

pub fn set_last_layout_pass_timing( &self, host: &dyn CompositionTargetHooks, value: LayoutPassTiming, )

Sets LastLayoutPassTiming (internal).

Source

pub fn scaling(&self) -> f64

Scaling.

Source

pub fn set_scaling(&self, host: &dyn CompositionTargetHooks, value: f64)

Sets Scaling.

Source

pub fn size(&self) -> Size

Size.

Source

pub fn set_size(&self, host: &dyn CompositionTargetHooks, value: Size)

Sets Size.

Source

pub fn transparency_level(&self) -> CompositionTransparencyLevel

TransparencyLevel.

Source

pub fn set_transparency_level( &self, host: &dyn CompositionTargetHooks, value: CompositionTransparencyLevel, )

Sets TransparencyLevel.

Source

pub fn platform_specific_scene_info(&self) -> Option<Arc<dyn Any + Send + Sync>>

PlatformSpecificSceneInfo.

Source

pub fn set_platform_specific_scene_info( &self, host: &dyn CompositionTargetHooks, value: Option<Arc<dyn Any + Send + Sync>>, )

Sets PlatformSpecificSceneInfo.

Source

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§

Source§

impl Default for CompositionTargetProps

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.