Compositor Compositor Compositor Compositor Class

Definition

Manages the session between an application and the system compositor process.

The Compositor class creates an instance of the Compositor for the application that can be used as a factory for a variety of types in the Windows.UI.Composition namespace spanning the visual layer, effects system and animation system. The Compositor class also manages the lifetime of objects created from the factory.

public : sealed class Compositor : IClosable, ICompositor, ICompositor2, ICompositor3, ICompositor4, ICompositor5, ICompositor6
struct winrt::Windows::UI::Composition::Compositor : IClosable, ICompositor, ICompositor2, ICompositor3, ICompositor4, ICompositor5, ICompositor6
public sealed class Compositor : IDisposable, ICompositor, ICompositor2, ICompositor3, ICompositor4, ICompositor5, ICompositor6
Public NotInheritable Class Compositor Implements IDisposable, ICompositor, ICompositor2, ICompositor3, ICompositor4, ICompositor5, ICompositor6
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Remarks

The Compositor implicitly synchronizes changes made to associated visuals to ensure they get applied in a transactional manner.

See the Composition UI Overview and Composition Visual Tree Overview for more information.

New instances of Compositor must be created on a thread that has a CoreDispatcher.

Constructors

Compositor() Compositor() Compositor() Compositor()

Creates an instance of Compositor.

Properties

Comment Comment Comment Comment

Gets or sets a string to associate with the Compositor.

GlobalPlaybackRate GlobalPlaybackRate GlobalPlaybackRate GlobalPlaybackRate

Gets or sets the rate at which animation plays for all KeyFrame animations created by this compositor.

MaxGlobalPlaybackRate MaxGlobalPlaybackRate MaxGlobalPlaybackRate MaxGlobalPlaybackRate

Gets the maximum allowed playback rate for all KeyFrame animations created by this compositor..

MinGlobalPlaybackRate MinGlobalPlaybackRate MinGlobalPlaybackRate MinGlobalPlaybackRate

Gets the minimum allowed playback rate for all KeyFrame animations created by this compositor.

Methods

Close() Close() Close() Close()

Closes the Compositor object and releases system resources.

CreateAmbientLight() CreateAmbientLight() CreateAmbientLight() CreateAmbientLight()

Creates an instance of AmbientLight.

CreateAnimationGroup() CreateAnimationGroup() CreateAnimationGroup() CreateAnimationGroup()

Creates an instance of CompositionAnimationGroup.

CreateBackdropBrush() CreateBackdropBrush() CreateBackdropBrush() CreateBackdropBrush()

Creates an instance of CompositionBackdropBrush.

CreateBooleanKeyFrameAnimation() CreateBooleanKeyFrameAnimation() CreateBooleanKeyFrameAnimation() CreateBooleanKeyFrameAnimation()

Creates an instance of BooleanKeyFrameAnimation.

CreateBounceScalarAnimation() CreateBounceScalarAnimation() CreateBounceScalarAnimation() CreateBounceScalarAnimation()

Creates an instance of BounceScalarNaturalMotionAnimation.

CreateBounceVector2Animation() CreateBounceVector2Animation() CreateBounceVector2Animation() CreateBounceVector2Animation()

Creates an instance of BounceVector2NaturalMotionAnimation.

CreateBounceVector3Animation() CreateBounceVector3Animation() CreateBounceVector3Animation() CreateBounceVector3Animation()

Creates an instance of BounceVector3NaturalMotionAnimation.

CreateColorBrush() CreateColorBrush() CreateColorBrush() CreateColorBrush()

Creates an instance of CompositionColorBrush.

CreateColorBrush(Color) CreateColorBrush(Color) CreateColorBrush(Color) CreateColorBrush(Color)

Creates an instance of CompositionColorBrush using the specified color.

CreateColorGradientStop() CreateColorGradientStop() CreateColorGradientStop() CreateColorGradientStop()

Creates an instance of CompositionColorGradientStop.

CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color) CreateColorGradientStop(Single, Color)

Creates an instance of CompositionColorGradientStop with the specified offset and color.

CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation() CreateColorKeyFrameAnimation()

Creates an instance of ColorKeyFrameAnimation.

CreateContainerShape() CreateContainerShape() CreateContainerShape() CreateContainerShape()

Creates an instance of CompositionContainerShape.

CreateContainerVisual() CreateContainerVisual() CreateContainerVisual() CreateContainerVisual()

Creates an instance of ContainerVisual.

CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2) CreateCubicBezierEasingFunction(Vector2, Vector2)

Creates an instance of CubicBezierEasingFunction.

CreateDistantLight() CreateDistantLight() CreateDistantLight() CreateDistantLight()

Creates an instance of DistantLight.

CreateDropShadow() CreateDropShadow() CreateDropShadow() CreateDropShadow()

Creates an instance of DropShadow.

CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect) CreateEffectFactory(IGraphicsEffect)

Creates an instance of CompositionEffectFactory.

CreateEffectFactory(IGraphicsEffect, IIterable<String>) CreateEffectFactory(IGraphicsEffect, IIterable<String>) CreateEffectFactory(IGraphicsEffect, IIterable<String>) CreateEffectFactory(IGraphicsEffect, IIterable<String>)

Creates an instance of CompositionEffectFactory specifying effect parameters that should be animatable.

CreateEllipseGeometry() CreateEllipseGeometry() CreateEllipseGeometry() CreateEllipseGeometry()

Creates an instance of CompositionEllipseGeometry.

CreateExpressionAnimation() CreateExpressionAnimation() CreateExpressionAnimation() CreateExpressionAnimation()

Creates an instance of ExpressionAnimation.

CreateExpressionAnimation(String) CreateExpressionAnimation(String) CreateExpressionAnimation(String) CreateExpressionAnimation(String)

Creates an instance of ExpressionAnimation.

CreateGeometricClip() CreateGeometricClip() CreateGeometricClip() CreateGeometricClip()

Creates an instance of CompositionGeometricClip.

CreateGeometricClip(CompositionGeometry) CreateGeometricClip(CompositionGeometry) CreateGeometricClip(CompositionGeometry) CreateGeometricClip(CompositionGeometry)

Creates an instance of CompositionGeometricClip using the specified geometry.

CreateHostBackdropBrush() CreateHostBackdropBrush() CreateHostBackdropBrush() CreateHostBackdropBrush()

Creates an instance of CompositionBackdropBrush that samples from the area behind the visual, before the window is drawn.

CreateImplicitAnimationCollection() CreateImplicitAnimationCollection() CreateImplicitAnimationCollection() CreateImplicitAnimationCollection()

Creates an instance of ImplicitAnimationCollection.

CreateInsetClip() CreateInsetClip() CreateInsetClip() CreateInsetClip()

Creates an instance of InsetClip.

CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single) CreateInsetClip(Single, Single, Single, Single)

Creates an instance of InsetClip.

CreateLayerVisual() CreateLayerVisual() CreateLayerVisual() CreateLayerVisual()

Creates an instance of LayerVisual.

CreateLinearEasingFunction() CreateLinearEasingFunction() CreateLinearEasingFunction() CreateLinearEasingFunction()

Creates an instance of LinearEasingFunction.

CreateLinearGradientBrush() CreateLinearGradientBrush() CreateLinearGradientBrush() CreateLinearGradientBrush()

Creates an instance of CompositionLinearGradientBrush.

CreateLineGeometry() CreateLineGeometry() CreateLineGeometry() CreateLineGeometry()

Creates an instance of CompositionLineGeometry.

CreateMaskBrush() CreateMaskBrush() CreateMaskBrush() CreateMaskBrush()

Creates an instance of CompositionMaskBrush.

CreateNineGridBrush() CreateNineGridBrush() CreateNineGridBrush() CreateNineGridBrush()

Creates an instance of CompositionNineGridBrush.

CreatePathGeometry() CreatePathGeometry() CreatePathGeometry() CreatePathGeometry()

Creates an instance of CompositionPathGeometry.

CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath) CreatePathGeometry(CompositionPath)

Creates an instance of CompositionPathGeometry using the specified path.

CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation() CreatePathKeyFrameAnimation()

Creates an instance of PathKeyFrameAnimation.

CreatePointLight() CreatePointLight() CreatePointLight() CreatePointLight()

Creates an instance of PointLight.

CreatePropertySet() CreatePropertySet() CreatePropertySet() CreatePropertySet()

Creates an instance of CompositionPropertySet.

CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation() CreateQuaternionKeyFrameAnimation()

Creates an instance of QuaternionKeyFrameAnimation.

CreateRectangleGeometry() CreateRectangleGeometry() CreateRectangleGeometry() CreateRectangleGeometry()

Creates an instance of CompositionRectangleGeometry.

CreateRedirectVisual() CreateRedirectVisual() CreateRedirectVisual() CreateRedirectVisual()

Creates an instance of RedirectVisual.

CreateRedirectVisual(Visual) CreateRedirectVisual(Visual) CreateRedirectVisual(Visual) CreateRedirectVisual(Visual)

Creates an instance of RedirectVisual using the specified source.

CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry() CreateRoundedRectangleGeometry()

Creates an instance of CompositionRoundedRectangleGeometry.

CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation() CreateScalarKeyFrameAnimation()

Creates an instance of ScalarKeyFrameAnimation.

CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes) CreateScopedBatch(CompositionBatchTypes)

Creates an instance of CompositionScopedBatch.

CreateShapeVisual() CreateShapeVisual() CreateShapeVisual() CreateShapeVisual()

Creates an instance of ShapeVisual.

CreateSpotLight() CreateSpotLight() CreateSpotLight() CreateSpotLight()

Creates an instance of SpotLight.

CreateSpringScalarAnimation() CreateSpringScalarAnimation() CreateSpringScalarAnimation() CreateSpringScalarAnimation()

Creates an instance of SpringScalarNaturalMotionAnimation.

CreateSpringVector2Animation() CreateSpringVector2Animation() CreateSpringVector2Animation() CreateSpringVector2Animation()

Creates an instance of SpringVector2NaturalMotionAnimation.

CreateSpringVector3Animation() CreateSpringVector3Animation() CreateSpringVector3Animation() CreateSpringVector3Animation()

Creates an instance of SpringVector3NaturalMotionAnimation.

CreateSpriteShape() CreateSpriteShape() CreateSpriteShape() CreateSpriteShape()

Creates an instance of CompositionSpriteShape.

CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry) CreateSpriteShape(CompositionGeometry)

Creates an instance of CompositionSpriteShape using the specified geometry.

CreateSpriteVisual() CreateSpriteVisual() CreateSpriteVisual() CreateSpriteVisual()

Creates an instance of SpriteVisual.

CreateStepEasingFunction() CreateStepEasingFunction() CreateStepEasingFunction() CreateStepEasingFunction()

Creates an instance of StepEasingFunction.

CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32) CreateStepEasingFunction(Int32)

Creates an instance of StepEasingFunction with the specified step count.

CreateSurfaceBrush() CreateSurfaceBrush() CreateSurfaceBrush() CreateSurfaceBrush()

Creates an instance of CompositionSurfaceBrush.

CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface) CreateSurfaceBrush(ICompositionSurface)

Creates an instance of CompositionSurfaceBrush using the specified composition surface.

CreateTargetForCurrentView() CreateTargetForCurrentView() CreateTargetForCurrentView() CreateTargetForCurrentView()

Creates a CompositionTarget for the current view.

CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation() CreateVector2KeyFrameAnimation()

Creates an instance of Vector2KeyFrameAnimation.

CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation() CreateVector3KeyFrameAnimation()

Creates an instance of Vector3KeyFrameAnimation.

CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation() CreateVector4KeyFrameAnimation()

Creates an instance of Vector4KeyFrameAnimation.

CreateViewBox() CreateViewBox() CreateViewBox() CreateViewBox()

Creates an instance of CompositionViewBox.

Dispose() Dispose() Dispose() Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes) GetCommitBatch(CompositionBatchTypes)

Retrieves a commit batch for the current commit cycle.

RequestCommitAsync() RequestCommitAsync() RequestCommitAsync() RequestCommitAsync()

Attempts to initiate a commit cycle ansynchronously.

See Also