Compositor Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ref class Compositor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class Compositor final : IClosable
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 131072)]
class Compositor final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class Compositor : System.IDisposable
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(131072, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 131072)]
public sealed class Compositor : System.IDisposable
Public NotInheritable Class Compositor
Implements IDisposable
- Inheritance
- Attributes
- Implements
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
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.
Version history
Windows version | SDK version | Value added |
---|---|---|
1607 | 14393 | CreateAmbientLight |
1607 | 14393 | CreateAnimationGroup |
1607 | 14393 | CreateBackdropBrush |
1607 | 14393 | CreateDistantLight |
1607 | 14393 | CreateDropShadow |
1607 | 14393 | CreateImplicitAnimationCollection |
1607 | 14393 | CreateLayerVisual |
1607 | 14393 | CreateMaskBrush |
1607 | 14393 | CreateNineGridBrush |
1607 | 14393 | CreatePointLight |
1607 | 14393 | CreateSpotLight |
1607 | 14393 | CreateStepEasingFunction |
1607 | 14393 | CreateStepEasingFunction(Int32) |
1703 | 15063 | CreateHostBackdropBrush |
1709 | 16299 | CreateColorGradientStop |
1709 | 16299 | CreateColorGradientStop(Single,Color) |
1709 | 16299 | CreateLinearGradientBrush |
1709 | 16299 | CreateSpringScalarAnimation |
1709 | 16299 | CreateSpringVector2Animation |
1709 | 16299 | CreateSpringVector3Animation |
1803 | 17134 | Comment |
1803 | 17134 | CreateBounceScalarAnimation |
1803 | 17134 | CreateBounceVector2Animation |
1803 | 17134 | CreateBounceVector3Animation |
1803 | 17134 | CreateContainerShape |
1803 | 17134 | CreateEllipseGeometry |
1803 | 17134 | CreateLineGeometry |
1803 | 17134 | CreatePathGeometry |
1803 | 17134 | CreatePathGeometry(CompositionPath) |
1803 | 17134 | CreatePathKeyFrameAnimation |
1803 | 17134 | CreateRectangleGeometry |
1803 | 17134 | CreateRoundedRectangleGeometry |
1803 | 17134 | CreateShapeVisual |
1803 | 17134 | CreateSpriteShape |
1803 | 17134 | CreateSpriteShape(CompositionGeometry) |
1803 | 17134 | CreateViewBox |
1803 | 17134 | GlobalPlaybackRate |
1803 | 17134 | MaxGlobalPlaybackRate |
1803 | 17134 | MinGlobalPlaybackRate |
1803 | 17134 | RequestCommitAsync |
1809 | 17763 | CreateBooleanKeyFrameAnimation |
1809 | 17763 | CreateGeometricClip |
1809 | 17763 | CreateGeometricClip(CompositionGeometry) |
1809 | 17763 | CreateRedirectVisual |
1809 | 17763 | CreateRedirectVisual(Visual) |
1903 | 18362 | CreateProjectedShadow |
1903 | 18362 | CreateProjectedShadowCaster |
1903 | 18362 | CreateProjectedShadowReceiver |
1903 | 18362 | CreateRadialGradientBrush |
1903 | 18362 | CreateVisualSurface |
Constructors
Compositor() |
Creates an instance of Compositor. |
Properties
Comment |
Gets or sets a string to associate with the Compositor. |
DefaultGraphicsDevice |
Gets the default graphics device. |
DispatcherQueue |
Gets the dispatcher queue for this compositor. |
GlobalPlaybackRate |
Gets or sets the rate at which animation plays for all KeyFrame animations created by this compositor. |
MaxGlobalPlaybackRate |
Gets the maximum allowed playback rate for all KeyFrame animations created by this compositor.. |
MinGlobalPlaybackRate |
Gets the minimum allowed playback rate for all KeyFrame animations created by this compositor. |