Compositor 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
管理应用程序与系统合成器进程之间的会话。
Compositor 类为应用程序创建 Compositor 的实例,该应用程序可用作跨视觉层、效果系统和动画系统的 Windows.UI.Composition 命名空间中各种类型的工厂。 Compositor 类还用于管理从工厂创建的对象的生存期。
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
- 继承
- 属性
- 实现
Windows 要求
| 设备系列 |
Windows 10 (在 10.0.10240.0 中引入)
|
| API contract |
Windows.Foundation.UniversalApiContract (在 v1.0 中引入)
|
注解
Compositor 隐式同步对关联视觉对象所做的更改,以确保以事务方式应用这些更改。
有关详细信息,请参阅 合成 UI 概述 和 合成可视化树概述 。
必须在具有 CoreDispatcher 的线程中创建 Compositor 的新实例。
版本历史记录
| Windows 版本 | SDK 版本 | 增值 |
|---|---|---|
| 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 | 注释 |
| 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 |
构造函数
| Compositor() |
创建 Compositor 的实例。 |
属性
| Comment |
获取或设置要与 Compositor 关联的字符串。 |
| DefaultGraphicsDevice |
获取默认图形设备。 |
| DispatcherQueue |
获取此合成程序的调度程序队列。 |
| GlobalPlaybackRate |
获取或设置此合成器创建的所有关键帧动画的动画播放速率。 |
| MaxGlobalPlaybackRate |
获取此合成器创建的所有关键帧动画允许的最大播放速率。 |
| MinGlobalPlaybackRate |
获取此合成器创建的所有关键帧动画允许的最小播放速率。 |