pub struct PropertySetSnapshot { /* private fields */ }Expand description
A snapshot of properties used by an animation
The snapshot is taken on the UI thread, where a reference parameter is
known by the id of its server object; the ids are resolved on the server
by resolve, before the animation instance that holds
the snapshot is initialized.
Implementations§
Source§impl PropertySetSnapshot
impl PropertySetSnapshot
pub fn new(dic: HashMap<String, PropertySetSnapshotValue>) -> Self
pub fn get_parameter(&self, name: &str) -> ExpressionVariant
pub fn get_object_parameter(&self, name: &str) -> Option<&dyn IExpressionObject>
Sourcepub fn get_server_object_parameter(
&self,
name: &str,
) -> Option<Rc<dyn IAnimatedServerObject>>
pub fn get_server_object_parameter( &self, name: &str, ) -> Option<Rc<dyn IAnimatedServerObject>>
The parameter as a server object, when it refers to one (the
is ServerObject test of upstream on GetObjectParameter).
pub fn get_property(&self, name: &str) -> ExpressionVariant
Sourcepub fn resolve(&self, compositor: &ServerCompositor)
pub fn resolve(&self, compositor: &ServerCompositor)
Resolves the server objects the snapshot refers to on compositor,
nested property sets included.
Upstream the snapshot holds the server objects themselves. An id names its server object until the composition object that holds it is dropped, disposed or not, and the snapshot is resolved by the batch that carries it, which precedes the release of any object it refers to; an id that names no animatable object leaves the parameter without an object, as a null reference does upstream.
Trait Implementations§
Source§impl IExpressionObject for PropertySetSnapshot
impl IExpressionObject for PropertySetSnapshot
Source§fn get_property(&self, name: &str) -> ExpressionVariant
fn get_property(&self, name: &str) -> ExpressionVariant
Invalid when
there is no such property.Source§fn key(&self) -> ExpressionObjectKey
fn key(&self) -> ExpressionObjectKey
ExpressionTrackedObjects). The default is the
address of the object, which is its reference identity for as long as
the object is alive and not moved; an implementation that has a stable
identifier should return that instead.Source§impl IExpressionParameterCollection for PropertySetSnapshot
impl IExpressionParameterCollection for PropertySetSnapshot
Source§fn get_parameter(&self, name: &str) -> ExpressionVariant
fn get_parameter(&self, name: &str) -> ExpressionVariant
Invalid when there is no such parameter.Source§fn get_object_parameter(&self, name: &str) -> Option<&dyn IExpressionObject>
fn get_object_parameter(&self, name: &str) -> Option<&dyn IExpressionObject>
Auto Trait Implementations§
impl !RefUnwindSafe for PropertySetSnapshot
impl !Send for PropertySetSnapshot
impl !Sync for PropertySetSnapshot
impl !UnwindSafe for PropertySetSnapshot
impl Freeze for PropertySetSnapshot
impl Unpin for PropertySetSnapshot
impl UnsafeUnpin for PropertySetSnapshot
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