pub struct CompositionBitmapCacheProps { /* private fields */ }Expand description
The UI-thread properties of CompositionBitmapCache.
Implementations§
Source§impl CompositionBitmapCacheProps
impl CompositionBitmapCacheProps
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) -> &CompositionCacheModeProps
pub fn base(&self) -> &CompositionCacheModeProps
The properties of the base class.
Sourcepub fn initialize_defaults(&self, host: &dyn CompositionBitmapCacheHooks)
pub fn initialize_defaults(&self, host: &dyn CompositionBitmapCacheHooks)
The InitializeDefaults calls of the constructor chain: the base
classes first, then this class.
Sourcepub fn initialize_own_defaults(&self, host: &dyn CompositionBitmapCacheHooks)
pub fn initialize_own_defaults(&self, host: &dyn CompositionBitmapCacheHooks)
InitializeDefaults of this class alone.
Sourcepub fn render_at_scale(&self) -> f64
pub fn render_at_scale(&self) -> f64
RenderAtScale (animated, default 1.0).
Sourcepub fn set_render_at_scale(
&self,
host: &dyn CompositionBitmapCacheHooks,
value: f64,
)
pub fn set_render_at_scale( &self, host: &dyn CompositionBitmapCacheHooks, value: f64, )
Sets RenderAtScale (animated, default 1.0).
Sourcepub fn snaps_to_device_pixels(&self) -> bool
pub fn snaps_to_device_pixels(&self) -> bool
SnapsToDevicePixels (animated, default false).
Sourcepub fn set_snaps_to_device_pixels(
&self,
host: &dyn CompositionBitmapCacheHooks,
value: bool,
)
pub fn set_snaps_to_device_pixels( &self, host: &dyn CompositionBitmapCacheHooks, value: bool, )
Sets SnapsToDevicePixels (animated, default false).
Sourcepub fn enable_clear_type(&self) -> bool
pub fn enable_clear_type(&self) -> bool
EnableClearType (animated, default false).
Sourcepub fn set_enable_clear_type(
&self,
host: &dyn CompositionBitmapCacheHooks,
value: bool,
)
pub fn set_enable_clear_type( &self, host: &dyn CompositionBitmapCacheHooks, value: bool, )
Sets EnableClearType (animated, default false).
Sourcepub fn start_animation(
&self,
host: &dyn CompositionBitmapCacheHooks,
property_name: &str,
animation: &dyn ICompositionAnimation,
final_value: Option<ExpressionVariant>,
) -> bool
pub fn start_animation( &self, host: &dyn CompositionBitmapCacheHooks, 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 CompositionBitmapCacheHooks,
writer: &mut BatchStreamWriter<'_>,
)
pub fn serialize_changes_core( &self, host: &dyn CompositionBitmapCacheHooks, 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 CompositionBitmapCacheProps
impl !RefUnwindSafe for CompositionBitmapCacheProps
impl !Sync for CompositionBitmapCacheProps
impl Send for CompositionBitmapCacheProps
impl Unpin for CompositionBitmapCacheProps
impl UnsafeUnpin for CompositionBitmapCacheProps
impl UnwindSafe for CompositionBitmapCacheProps
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