Share via


Compositor Klasse

Definition

Verwaltet die Sitzung zwischen einer Anwendung und dem Systemkompositorprozess.

Die Compositor-Klasse erstellt eine instance des Compositor für die Anwendung, die als Factory für eine Vielzahl von Typen im Windows.UI.Composition-Namespace verwendet werden kann, die die visuelle Ebene, das Effektsystem und das Animationssystem umfassen. Die Compositor-Klasse verwaltet auch die Lebensdauer von Objekten, die von der Factory erstellt wurden.

public ref class Compositor sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.LiftedContract, 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(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.Foundation.WindowsAppSDKContract, 65536)]
class Compositor final : IClosable
[Windows.Foundation.Metadata.Activatable(65536, "Microsoft.Foundation.LiftedContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.LiftedContract), 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(65536, "Microsoft.Foundation.WindowsAppSDKContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.Foundation.WindowsAppSDKContract), 65536)]
public sealed class Compositor : System.IDisposable
function Compositor()
Public NotInheritable Class Compositor
Implements IDisposable
Vererbung
Object Platform::Object IInspectable Compositor
Attribute
Implementiert

Hinweise

Der Compositor synchronisiert implizit Änderungen, die an zugeordneten Visuals vorgenommen wurden, um sicherzustellen, dass sie transaktional angewendet werden.

Weitere Informationen finden Sie in der Übersicht über die Kompositionsoberfläche und der visuellen Struktur der Komposition .

Neue Instanzen von Compositor müssen in einem Thread erstellt werden, der über einen CoreDispatcher verfügt.

Konstruktoren

Compositor()

Erstellt eine instance von Compositor.

Eigenschaften

Comment

Ruft eine Zeichenfolge ab, die dem Compositor zugeordnet werden soll, oder legt diese fest.

DispatcherQueue

Ruft die Dispatcherwarteschlange für diesen Compositor ab.

GlobalPlaybackRate

Ruft die Rate ab, mit der die Animation für alle KeyFrameanimationen wiedergegeben wird, die von diesem Compositor erstellt wurden, oder legt diese fest.

MaxGlobalPlaybackRate

Ruft die maximal zulässige Wiedergaberate für alle KeyFrame-Animationen ab, die von diesem Compositor erstellt wurden.

MinGlobalPlaybackRate

Ruft die minimale zulässige Wiedergaberate für alle KeyFrame-Animationen ab, die von diesem Compositor erstellt wurden.

Methoden

Close()

Schließt das Compositor-Objekt und gibt Systemressourcen frei.

CreateAmbientLight()

Erstellt eine instance von AmbientLight.

CreateAnimationController()

Erstellt eine instance von AnimationController.

CreateAnimationGroup()

Erstellt eine instance von CompositionAnimationGroup.

CreateAnimationPropertyInfo()

Erstellt eine instance von AnimationPropertyInfo.

CreateBackdropBrush()

Erstellt eine instance von CompositionBackdropBrush.

CreateBooleanKeyFrameAnimation()

Erstellt eine instance von BooleanKeyFrameAnimation.

CreateBounceScalarAnimation()

Erstellt eine instance von BounceScalarNaturalMotionAnimation.

CreateBounceVector2Animation()

Erstellt eine instance von BounceVector2NaturalMotionAnimation.

CreateBounceVector3Animation()

Erstellt eine instance von BounceVector3NaturalMotionAnimation.

CreateColorBrush()

Erstellt eine instance von CompositionColorBrush.

CreateColorBrush(Color)

Erstellt eine instance von CompositionColorBrush unter Verwendung der angegebenen Farbe.

CreateColorGradientStop()

Erstellt eine instance von CompositionColorGradientStop.

CreateColorGradientStop(Single, Color)

Erstellt eine instance von CompositionColorGradientStop mit dem angegebenen Offset und der angegebenen Farbe.

CreateColorKeyFrameAnimation()

Erstellt eine instance von ColorKeyFrameAnimation.

CreateContainerShape()

Erstellt eine instance von CompositionContainerShape.

CreateContainerVisual()

Erstellt eine instance von ContainerVisual.

CreateCubicBezierEasingFunction(Vector2, Vector2)

Erstellt eine instance von CubicBezierEasingFunction.

CreateDistantLight()

Erstellt eine instance von DistantLight.

CreateDropShadow()

Erstellt eine instance von DropShadow.

CreateEffectFactory(IGraphicsEffect)

Erstellt eine instance von CompositionEffectFactory.

CreateEffectFactory(IGraphicsEffect, IIterable<String>)

Erstellt eine instance von CompositionEffectFactory, die Effektparameter angibt, die abstellbar sein sollten.

CreateEllipseGeometry()

Erstellt eine instance von CompositionEllipseGeometry.

CreateExpressionAnimation()

Erstellt eine instance von ExpressionAnimation.

CreateExpressionAnimation(String)

Erstellt eine instance von ExpressionAnimation.

CreateGeometricClip()

Erstellt eine instance von CompositionGeometricClip.

CreateGeometricClip(CompositionGeometry)

Erstellt eine instance von CompositionGeometricClip unter Verwendung der angegebenen Geometrie.

CreateImplicitAnimationCollection()

Erstellt eine instance von ImplicitAnimationCollection.

CreateInsetClip()

Erstellt eine instance von InsetClip.

CreateInsetClip(Single, Single, Single, Single)

Erstellt eine instance von InsetClip.

CreateLayerVisual()

Erstellt eine instance von LayerVisual.

CreateLinearEasingFunction()

Erstellt eine instance von LinearEasingFunction.

CreateLinearGradientBrush()

Erstellt eine instance von CompositionLinearGradientBrush.

CreateLineGeometry()

Erstellt eine instance von CompositionLineGeometry.

CreateMaskBrush()

Erstellt eine instance von CompositionMaskBrush.

CreateNineGridBrush()

Erstellt eine instance von CompositionNineGridBrush.

CreatePathGeometry()

Erstellt eine instance von CompositionPathGeometry.

CreatePathGeometry(CompositionPath)

Erstellt eine instance von CompositionPathGeometry unter Verwendung des angegebenen Pfads.

CreatePathKeyFrameAnimation()

Erstellt eine instance von PathKeyFrameAnimation.

CreatePointLight()

Erstellt eine instance von PointLight.

CreateProjectedShadow()

Erstellt eine instance von CompositionProjectedShadow.

CreateProjectedShadowCaster()

Erstellt eine instance von CompositionProjectedShadowCaster.

CreateProjectedShadowReceiver()

Erstellt eine instance von CompositionProjectedShadowReceiver.

CreatePropertySet()

Erstellt eine instance von CompositionPropertySet.

CreateQuaternionKeyFrameAnimation()

Erstellt eine instance von QuaternionKeyFrameAnimation.

CreateRadialGradientBrush()

Erstellt eine instance von CompositionRadialGradientBrush.

CreateRectangleClip()

Erstellt eine instance von RectangleClip mit Standardwerten.

CreateRectangleClip(Single, Single, Single, Single)

Erstellt eine instance von RectangleClip mit den angegebenen Edgewerten.

CreateRectangleClip(Single, Single, Single, Single, Vector2, Vector2, Vector2, Vector2)

Erstellt eine instance von RectangleClip mit den angegebenen Rand- und Eckradiuswerten.

CreateRectangleGeometry()

Erstellt eine instance von CompositionRectangleGeometry.

CreateRedirectVisual()

Erstellt eine instance von RedirectVisual.

CreateRedirectVisual(Visual)

Erstellt eine instance von RedirectVisual unter Verwendung der angegebenen Quelle.

CreateRoundedRectangleGeometry()

Erstellt eine instance von CompositionRoundedRectangleGeometry.

CreateScalarKeyFrameAnimation()

Erstellt eine instance von ScalarKeyFrameAnimation.

CreateScopedBatch(CompositionBatchTypes)

Erstellt eine instance von CompositionScopedBatch.

CreateShapeVisual()

Erstellt eine instance von ShapeVisual.

CreateSpotLight()

Erstellt eine instance von SpotLight.

CreateSpringScalarAnimation()

Erstellt eine instance von SpringScalarNaturalMotionAnimation.

CreateSpringVector2Animation()

Erstellt eine instance von SpringVector2NaturalMotionAnimation.

CreateSpringVector3Animation()

Erstellt eine instance von SpringVector3NaturalMotionAnimation.

CreateSpriteShape()

Erstellt eine instance von CompositionSpriteShape.

CreateSpriteShape(CompositionGeometry)

Erstellt eine instance von CompositionSpriteShape unter Verwendung der angegebenen Geometrie.

CreateSpriteVisual()

Erstellt eine instance von SpriteVisual.

CreateStepEasingFunction()

Erstellt eine instance von StepEasingFunction.

CreateStepEasingFunction(Int32)

Erstellt eine instance von StepEasingFunction mit der angegebenen Schrittanzahl.

CreateSurfaceBrush()

Erstellt eine instance von CompositionSurfaceBrush.

CreateSurfaceBrush(ICompositionSurface)

Erstellt eine instance von CompositionSurfaceBrush mithilfe der angegebenen Kompositionsoberfläche.

CreateVector2KeyFrameAnimation()

Erstellt eine instance von Vector2KeyFrameAnimation.

CreateVector3KeyFrameAnimation()

Erstellt eine instance von Vector3KeyFrameAnimation.

CreateVector4KeyFrameAnimation()

Erstellt eine instance von Vector4KeyFrameAnimation.

CreateViewBox()

Erstellt eine instance von CompositionViewBox.

CreateVisualSurface()

Erstellt eine instance von CompositionVisualSurface.

Dispose()

Führt anwendungsspezifische Aufgaben durch, die mit der Freigabe, der Zurückgabe oder dem Zurücksetzen von nicht verwalteten Ressourcen zusammenhängen.

GetCommitBatch(CompositionBatchTypes)

Ruft einen Commitbatch für den aktuellen Commitzyklus ab.

RequestCommitAsync()

Versucht, einen Commitzyklus synchron zu initiieren.

Gilt für:

Weitere Informationen