Struct windows::UI::Composition::CompositionObject
pub struct CompositionObject(/* private fields */);
Implementations§
§impl CompositionObject
impl CompositionObject
pub fn PopulatePropertyInfo<P0>(
&self,
propertyname: &HSTRING,
propertyinfo: P0,
) -> Result<()>where
P0: Param<AnimationPropertyInfo>,
pub fn Close(&self) -> Result<()>
pub fn Compositor(&self) -> Result<Compositor>
pub fn Dispatcher(&self) -> Result<CoreDispatcher>
pub fn Properties(&self) -> Result<CompositionPropertySet>
pub fn StartAnimation<P0>(
&self,
propertyname: &HSTRING,
animation: P0,
) -> Result<()>where
P0: Param<CompositionAnimation>,
pub fn StopAnimation(&self, propertyname: &HSTRING) -> Result<()>
pub fn Comment(&self) -> Result<HSTRING>
pub fn SetComment(&self, value: &HSTRING) -> Result<()>
pub fn ImplicitAnimations(&self) -> Result<ImplicitAnimationCollection>
pub fn SetImplicitAnimations<P0>(&self, value: P0) -> Result<()>where
P0: Param<ImplicitAnimationCollection>,
pub fn StartAnimationGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<ICompositionAnimationBase>,
pub fn StopAnimationGroup<P0>(&self, value: P0) -> Result<()>where
P0: Param<ICompositionAnimationBase>,
pub fn DispatcherQueue(&self) -> Result<DispatcherQueue>
pub fn TryGetAnimationController( &self, propertyname: &HSTRING, ) -> Result<AnimationController>
pub fn StartAnimationWithController<P0, P1>(
&self,
propertyname: &HSTRING,
animation: P0,
animationcontroller: P1,
) -> Result<()>where
P0: Param<CompositionAnimation>,
P1: Param<AnimationController>,
pub fn StartAnimationWithIAnimationObject<P0, P1>(
target: P0,
propertyname: &HSTRING,
animation: P1,
) -> Result<()>where
P0: Param<IAnimationObject>,
P1: Param<CompositionAnimation>,
pub fn StartAnimationGroupWithIAnimationObject<P0, P1>(
target: P0,
animation: P1,
) -> Result<()>where
P0: Param<IAnimationObject>,
P1: Param<ICompositionAnimationBase>,
Trait Implementations§
§impl CanInto<CompositionObject> for AmbientLight
impl CanInto<CompositionObject> for AmbientLight
§impl CanInto<CompositionObject> for AnimationController
impl CanInto<CompositionObject> for AnimationController
§impl CanInto<CompositionObject> for AnimationPropertyInfo
impl CanInto<CompositionObject> for AnimationPropertyInfo
§impl CanInto<CompositionObject> for BackEasingFunction
impl CanInto<CompositionObject> for BackEasingFunction
§impl CanInto<CompositionObject> for BooleanKeyFrameAnimation
impl CanInto<CompositionObject> for BooleanKeyFrameAnimation
§impl CanInto<CompositionObject> for BounceEasingFunction
impl CanInto<CompositionObject> for BounceEasingFunction
§impl CanInto<CompositionObject> for BounceScalarNaturalMotionAnimation
impl CanInto<CompositionObject> for BounceScalarNaturalMotionAnimation
§impl CanInto<CompositionObject> for BounceVector2NaturalMotionAnimation
impl CanInto<CompositionObject> for BounceVector2NaturalMotionAnimation
§impl CanInto<CompositionObject> for BounceVector3NaturalMotionAnimation
impl CanInto<CompositionObject> for BounceVector3NaturalMotionAnimation
§impl CanInto<CompositionObject> for CircleEasingFunction
impl CanInto<CompositionObject> for CircleEasingFunction
§impl CanInto<CompositionObject> for ColorKeyFrameAnimation
impl CanInto<CompositionObject> for ColorKeyFrameAnimation
§impl CanInto<CompositionObject> for CompositionAnimation
impl CanInto<CompositionObject> for CompositionAnimation
§impl CanInto<CompositionObject> for CompositionAnimationGroup
impl CanInto<CompositionObject> for CompositionAnimationGroup
§impl CanInto<CompositionObject> for CompositionBackdropBrush
impl CanInto<CompositionObject> for CompositionBackdropBrush
§impl CanInto<CompositionObject> for CompositionBatchCompletedEventArgs
impl CanInto<CompositionObject> for CompositionBatchCompletedEventArgs
§impl CanInto<CompositionObject> for CompositionBrush
impl CanInto<CompositionObject> for CompositionBrush
§impl CanInto<CompositionObject> for CompositionClip
impl CanInto<CompositionObject> for CompositionClip
§impl CanInto<CompositionObject> for CompositionColorBrush
impl CanInto<CompositionObject> for CompositionColorBrush
§impl CanInto<CompositionObject> for CompositionColorGradientStop
impl CanInto<CompositionObject> for CompositionColorGradientStop
§impl CanInto<CompositionObject> for CompositionCommitBatch
impl CanInto<CompositionObject> for CompositionCommitBatch
§impl CanInto<CompositionObject> for CompositionConditionalValue
impl CanInto<CompositionObject> for CompositionConditionalValue
§impl CanInto<CompositionObject> for CompositionContainerShape
impl CanInto<CompositionObject> for CompositionContainerShape
§impl CanInto<CompositionObject> for CompositionDrawingSurface
impl CanInto<CompositionObject> for CompositionDrawingSurface
§impl CanInto<CompositionObject> for CompositionEasingFunction
impl CanInto<CompositionObject> for CompositionEasingFunction
§impl CanInto<CompositionObject> for CompositionEffectBrush
impl CanInto<CompositionObject> for CompositionEffectBrush
§impl CanInto<CompositionObject> for CompositionEffectFactory
impl CanInto<CompositionObject> for CompositionEffectFactory
§impl CanInto<CompositionObject> for CompositionEllipseGeometry
impl CanInto<CompositionObject> for CompositionEllipseGeometry
§impl CanInto<CompositionObject> for CompositionGeometricClip
impl CanInto<CompositionObject> for CompositionGeometricClip
§impl CanInto<CompositionObject> for CompositionGeometry
impl CanInto<CompositionObject> for CompositionGeometry
§impl CanInto<CompositionObject> for CompositionGradientBrush
impl CanInto<CompositionObject> for CompositionGradientBrush
§impl CanInto<CompositionObject> for CompositionGraphicsDevice
impl CanInto<CompositionObject> for CompositionGraphicsDevice
§impl CanInto<CompositionObject> for CompositionInteractionSourceCollection
impl CanInto<CompositionObject> for CompositionInteractionSourceCollection
§impl CanInto<CompositionObject> for CompositionLight
impl CanInto<CompositionObject> for CompositionLight
§impl CanInto<CompositionObject> for CompositionLineGeometry
impl CanInto<CompositionObject> for CompositionLineGeometry
§impl CanInto<CompositionObject> for CompositionLinearGradientBrush
impl CanInto<CompositionObject> for CompositionLinearGradientBrush
§impl CanInto<CompositionObject> for CompositionMaskBrush
impl CanInto<CompositionObject> for CompositionMaskBrush
§impl CanInto<CompositionObject> for CompositionMipmapSurface
impl CanInto<CompositionObject> for CompositionMipmapSurface
§impl CanInto<CompositionObject> for CompositionNineGridBrush
impl CanInto<CompositionObject> for CompositionNineGridBrush
§impl CanInto<CompositionObject> for CompositionPathGeometry
impl CanInto<CompositionObject> for CompositionPathGeometry
§impl CanInto<CompositionObject> for CompositionProjectedShadow
impl CanInto<CompositionObject> for CompositionProjectedShadow
§impl CanInto<CompositionObject> for CompositionProjectedShadowCaster
impl CanInto<CompositionObject> for CompositionProjectedShadowCaster
§impl CanInto<CompositionObject> for CompositionProjectedShadowCasterCollection
impl CanInto<CompositionObject> for CompositionProjectedShadowCasterCollection
§impl CanInto<CompositionObject> for CompositionProjectedShadowReceiver
impl CanInto<CompositionObject> for CompositionProjectedShadowReceiver
§impl CanInto<CompositionObject> for CompositionProjectedShadowReceiverUnorderedCollection
impl CanInto<CompositionObject> for CompositionProjectedShadowReceiverUnorderedCollection
§impl CanInto<CompositionObject> for CompositionPropertySet
impl CanInto<CompositionObject> for CompositionPropertySet
§impl CanInto<CompositionObject> for CompositionRadialGradientBrush
impl CanInto<CompositionObject> for CompositionRadialGradientBrush
§impl CanInto<CompositionObject> for CompositionRectangleGeometry
impl CanInto<CompositionObject> for CompositionRectangleGeometry
§impl CanInto<CompositionObject> for CompositionRoundedRectangleGeometry
impl CanInto<CompositionObject> for CompositionRoundedRectangleGeometry
§impl CanInto<CompositionObject> for CompositionScopedBatch
impl CanInto<CompositionObject> for CompositionScopedBatch
§impl CanInto<CompositionObject> for CompositionShadow
impl CanInto<CompositionObject> for CompositionShadow
§impl CanInto<CompositionObject> for CompositionShape
impl CanInto<CompositionObject> for CompositionShape
§impl CanInto<CompositionObject> for CompositionShapeCollection
impl CanInto<CompositionObject> for CompositionShapeCollection
§impl CanInto<CompositionObject> for CompositionSpriteShape
impl CanInto<CompositionObject> for CompositionSpriteShape
§impl CanInto<CompositionObject> for CompositionStrokeDashArray
impl CanInto<CompositionObject> for CompositionStrokeDashArray
§impl CanInto<CompositionObject> for CompositionSurfaceBrush
impl CanInto<CompositionObject> for CompositionSurfaceBrush
§impl CanInto<CompositionObject> for CompositionTarget
impl CanInto<CompositionObject> for CompositionTarget
§impl CanInto<CompositionObject> for CompositionTexture
impl CanInto<CompositionObject> for CompositionTexture
§impl CanInto<CompositionObject> for CompositionTransform
impl CanInto<CompositionObject> for CompositionTransform
§impl CanInto<CompositionObject> for CompositionViewBox
impl CanInto<CompositionObject> for CompositionViewBox
§impl CanInto<CompositionObject> for CompositionVirtualDrawingSurface
impl CanInto<CompositionObject> for CompositionVirtualDrawingSurface
§impl CanInto<CompositionObject> for CompositionVisualSurface
impl CanInto<CompositionObject> for CompositionVisualSurface
§impl CanInto<CompositionObject> for ContainerVisual
impl CanInto<CompositionObject> for ContainerVisual
§impl CanInto<CompositionObject> for CubicBezierEasingFunction
impl CanInto<CompositionObject> for CubicBezierEasingFunction
§impl CanInto<CompositionObject> for DelegatedInkTrailVisual
impl CanInto<CompositionObject> for DelegatedInkTrailVisual
§impl CanInto<CompositionObject> for DesktopWindowTarget
impl CanInto<CompositionObject> for DesktopWindowTarget
§impl CanInto<CompositionObject> for DistantLight
impl CanInto<CompositionObject> for DistantLight
§impl CanInto<CompositionObject> for DropShadow
impl CanInto<CompositionObject> for DropShadow
§impl CanInto<CompositionObject> for ElasticEasingFunction
impl CanInto<CompositionObject> for ElasticEasingFunction
§impl CanInto<CompositionObject> for ExponentialEasingFunction
impl CanInto<CompositionObject> for ExponentialEasingFunction
§impl CanInto<CompositionObject> for ExpressionAnimation
impl CanInto<CompositionObject> for ExpressionAnimation
§impl CanInto<CompositionObject> for ImplicitAnimationCollection
impl CanInto<CompositionObject> for ImplicitAnimationCollection
§impl CanInto<CompositionObject> for InitialValueExpressionCollection
impl CanInto<CompositionObject> for InitialValueExpressionCollection
§impl CanInto<CompositionObject> for InteractionSourceConfiguration
impl CanInto<CompositionObject> for InteractionSourceConfiguration
§impl CanInto<CompositionObject> for InteractionTracker
impl CanInto<CompositionObject> for InteractionTracker
§impl CanInto<CompositionObject> for InteractionTrackerInertiaModifier
impl CanInto<CompositionObject> for InteractionTrackerInertiaModifier
§impl CanInto<CompositionObject> for InteractionTrackerInertiaMotion
impl CanInto<CompositionObject> for InteractionTrackerInertiaMotion
§impl CanInto<CompositionObject> for InteractionTrackerInertiaNaturalMotion
impl CanInto<CompositionObject> for InteractionTrackerInertiaNaturalMotion
§impl CanInto<CompositionObject> for InteractionTrackerInertiaRestingValue
impl CanInto<CompositionObject> for InteractionTrackerInertiaRestingValue
§impl CanInto<CompositionObject> for InteractionTrackerVector2InertiaModifier
impl CanInto<CompositionObject> for InteractionTrackerVector2InertiaModifier
§impl CanInto<CompositionObject> for InteractionTrackerVector2InertiaNaturalMotion
impl CanInto<CompositionObject> for InteractionTrackerVector2InertiaNaturalMotion
§impl CanInto<CompositionObject> for KeyFrameAnimation
impl CanInto<CompositionObject> for KeyFrameAnimation
§impl CanInto<CompositionObject> for LayerVisual
impl CanInto<CompositionObject> for LayerVisual
§impl CanInto<CompositionObject> for LinearEasingFunction
impl CanInto<CompositionObject> for LinearEasingFunction
§impl CanInto<CompositionObject> for NaturalMotionAnimation
impl CanInto<CompositionObject> for NaturalMotionAnimation
§impl CanInto<CompositionObject> for PathKeyFrameAnimation
impl CanInto<CompositionObject> for PathKeyFrameAnimation
§impl CanInto<CompositionObject> for PointLight
impl CanInto<CompositionObject> for PointLight
§impl CanInto<CompositionObject> for PowerEasingFunction
impl CanInto<CompositionObject> for PowerEasingFunction
§impl CanInto<CompositionObject> for QuaternionKeyFrameAnimation
impl CanInto<CompositionObject> for QuaternionKeyFrameAnimation
§impl CanInto<CompositionObject> for RectangleClip
impl CanInto<CompositionObject> for RectangleClip
§impl CanInto<CompositionObject> for RedirectVisual
impl CanInto<CompositionObject> for RedirectVisual
§impl CanInto<CompositionObject> for RenderingDeviceReplacedEventArgs
impl CanInto<CompositionObject> for RenderingDeviceReplacedEventArgs
§impl CanInto<CompositionObject> for ScalarKeyFrameAnimation
impl CanInto<CompositionObject> for ScalarKeyFrameAnimation
§impl CanInto<CompositionObject> for ScalarNaturalMotionAnimation
impl CanInto<CompositionObject> for ScalarNaturalMotionAnimation
§impl CanInto<CompositionObject> for SceneBoundingBox
impl CanInto<CompositionObject> for SceneBoundingBox
§impl CanInto<CompositionObject> for SceneComponent
impl CanInto<CompositionObject> for SceneComponent
§impl CanInto<CompositionObject> for SceneComponentCollection
impl CanInto<CompositionObject> for SceneComponentCollection
§impl CanInto<CompositionObject> for SceneMaterial
impl CanInto<CompositionObject> for SceneMaterial
§impl CanInto<CompositionObject> for SceneMaterialInput
impl CanInto<CompositionObject> for SceneMaterialInput
§impl CanInto<CompositionObject> for SceneMeshMaterialAttributeMap
impl CanInto<CompositionObject> for SceneMeshMaterialAttributeMap
§impl CanInto<CompositionObject> for SceneMeshRendererComponent
impl CanInto<CompositionObject> for SceneMeshRendererComponent
§impl CanInto<CompositionObject> for SceneMetallicRoughnessMaterial
impl CanInto<CompositionObject> for SceneMetallicRoughnessMaterial
§impl CanInto<CompositionObject> for SceneModelTransform
impl CanInto<CompositionObject> for SceneModelTransform
§impl CanInto<CompositionObject> for SceneNodeCollection
impl CanInto<CompositionObject> for SceneNodeCollection
§impl CanInto<CompositionObject> for SceneObject
impl CanInto<CompositionObject> for SceneObject
§impl CanInto<CompositionObject> for ScenePbrMaterial
impl CanInto<CompositionObject> for ScenePbrMaterial
§impl CanInto<CompositionObject> for SceneRendererComponent
impl CanInto<CompositionObject> for SceneRendererComponent
§impl CanInto<CompositionObject> for SceneSurfaceMaterialInput
impl CanInto<CompositionObject> for SceneSurfaceMaterialInput
§impl CanInto<CompositionObject> for SceneVisual
impl CanInto<CompositionObject> for SceneVisual
§impl CanInto<CompositionObject> for ShapeVisual
impl CanInto<CompositionObject> for ShapeVisual
§impl CanInto<CompositionObject> for SineEasingFunction
impl CanInto<CompositionObject> for SineEasingFunction
§impl CanInto<CompositionObject> for SpringScalarNaturalMotionAnimation
impl CanInto<CompositionObject> for SpringScalarNaturalMotionAnimation
§impl CanInto<CompositionObject> for SpringVector2NaturalMotionAnimation
impl CanInto<CompositionObject> for SpringVector2NaturalMotionAnimation
§impl CanInto<CompositionObject> for SpringVector3NaturalMotionAnimation
impl CanInto<CompositionObject> for SpringVector3NaturalMotionAnimation
§impl CanInto<CompositionObject> for SpriteVisual
impl CanInto<CompositionObject> for SpriteVisual
§impl CanInto<CompositionObject> for StepEasingFunction
impl CanInto<CompositionObject> for StepEasingFunction
§impl CanInto<CompositionObject> for Vector2KeyFrameAnimation
impl CanInto<CompositionObject> for Vector2KeyFrameAnimation
§impl CanInto<CompositionObject> for Vector2NaturalMotionAnimation
impl CanInto<CompositionObject> for Vector2NaturalMotionAnimation
§impl CanInto<CompositionObject> for Vector3KeyFrameAnimation
impl CanInto<CompositionObject> for Vector3KeyFrameAnimation
§impl CanInto<CompositionObject> for Vector3NaturalMotionAnimation
impl CanInto<CompositionObject> for Vector3NaturalMotionAnimation
§impl CanInto<CompositionObject> for Vector4KeyFrameAnimation
impl CanInto<CompositionObject> for Vector4KeyFrameAnimation
§impl CanInto<CompositionObject> for VisualCollection
impl CanInto<CompositionObject> for VisualCollection
§impl CanInto<CompositionObject> for VisualInteractionSource
impl CanInto<CompositionObject> for VisualInteractionSource
§impl CanInto<CompositionObject> for VisualUnorderedCollection
impl CanInto<CompositionObject> for VisualUnorderedCollection
§impl CanInto<IAnimationObject> for CompositionObject
impl CanInto<IAnimationObject> for CompositionObject
§impl CanInto<IInspectable> for CompositionObject
impl CanInto<IInspectable> for CompositionObject
§impl CanInto<IUnknown> for CompositionObject
impl CanInto<IUnknown> for CompositionObject
§impl Clone for CompositionObject
impl Clone for CompositionObject
§fn clone(&self) -> CompositionObject
fn clone(&self) -> CompositionObject
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for CompositionObject
impl Debug for CompositionObject
§impl From<&CompositionObject> for &IInspectable
impl From<&CompositionObject> for &IInspectable
§fn from(value: &CompositionObject) -> Self
fn from(value: &CompositionObject) -> Self
Converts to this type from the input type.
§impl From<&CompositionObject> for &IUnknown
impl From<&CompositionObject> for &IUnknown
§fn from(value: &CompositionObject) -> Self
fn from(value: &CompositionObject) -> Self
Converts to this type from the input type.
§impl From<CompositionObject> for IInspectable
impl From<CompositionObject> for IInspectable
§fn from(value: CompositionObject) -> Self
fn from(value: CompositionObject) -> Self
Converts to this type from the input type.
§impl From<CompositionObject> for IUnknown
impl From<CompositionObject> for IUnknown
§fn from(value: CompositionObject) -> Self
fn from(value: CompositionObject) -> Self
Converts to this type from the input type.
§impl Interface for CompositionObject
impl Interface for CompositionObject
§const IID: GUID = <ICompositionObject as windows_core::Interface>::IID
const IID: GUID = <ICompositionObject as windows_core::Interface>::IID
The
GUID
associated with the interface.§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for CompositionObject
impl PartialEq for CompositionObject
§fn eq(&self, other: &CompositionObject) -> bool
fn eq(&self, other: &CompositionObject) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompositionObject
impl Send for CompositionObject
impl StructuralPartialEq for CompositionObject
impl Sync for CompositionObject
Auto Trait Implementations§
impl Freeze for CompositionObject
impl RefUnwindSafe for CompositionObject
impl Unpin for CompositionObject
impl UnwindSafe for CompositionObject
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)