Commit 048b0421 authored by Mohamad Al-Jaf's avatar Mohamad Al-Jaf Committed by Alexandre Julliard

include: Add Windows.UI.Composition.CompositionGraphicsDevice definition.

Needed for mingw Firefox build.
parent 191dbcc8
......@@ -68,6 +68,10 @@ namespace Windows.UI.Composition {
interface ICompositionEasingFunctionStatics;
interface ICompositionEffectBrush;
interface ICompositionEffectFactory;
interface ICompositionGraphicsDevice;
interface ICompositionGraphicsDevice2;
interface ICompositionGraphicsDevice3;
interface ICompositionGraphicsDevice4;
interface ICompositionObject;
interface ICompositionObject2;
interface ICompositionObject3;
......@@ -102,6 +106,7 @@ namespace Windows.UI.Composition {
interface IInsetClip;
interface ILinearEasingFunction;
interface IQuaternionKeyFrameAnimation;
interface IRenderingDeviceReplacedEventArgs;
interface IScalarKeyFrameAnimation;
interface ISpriteVisual;
interface ISpriteVisual2;
......@@ -126,6 +131,7 @@ namespace Windows.UI.Composition {
runtimeclass CompositionEasingFunction;
runtimeclass CompositionEffectBrush;
runtimeclass CompositionEffectFactory;
runtimeclass CompositionGraphicsDevice;
runtimeclass CompositionObject;
runtimeclass CompositionPropertySet;
runtimeclass CompositionScopedBatch;
......@@ -139,6 +145,7 @@ namespace Windows.UI.Composition {
runtimeclass LinearEasingFunction;
runtimeclass KeyFrameAnimation;
runtimeclass QuaternionKeyFrameAnimation;
runtimeclass RenderingDeviceReplacedEventArgs;
runtimeclass ScalarKeyFrameAnimation;
runtimeclass SpriteVisual;
runtimeclass Vector2KeyFrameAnimation;
......@@ -155,6 +162,7 @@ namespace Windows.UI.Composition {
interface Windows.Foundation.Collections.IIterator<Windows.UI.Composition.CompositionAnimation *>;
interface Windows.Foundation.Collections.IIterator<Windows.UI.Composition.Visual *>;
interface Windows.Foundation.TypedEventHandler<IInspectable *, Windows.UI.Composition.CompositionBatchCompletedEventArgs *>;
interface Windows.Foundation.TypedEventHandler<Windows.UI.Composition.CompositionGraphicsDevice *, Windows.UI.Composition.RenderingDeviceReplacedEventArgs *>;
}
[
......@@ -487,6 +495,24 @@ namespace Windows.UI.Composition {
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
exclusiveto(Windows.UI.Composition.CompositionGraphicsDevice),
uuid(fb22c6e1-80a2-4667-9936-dbeaf6eefe95)
]
interface ICompositionGraphicsDevice : IInspectable
{
HRESULT CreateDrawingSurface(
[in] Windows.Foundation.Size pixels, [in] Windows.Graphics.DirectX.DirectXPixelFormat format,
[in] Windows.Graphics.DirectX.DirectXAlphaMode mode, [out, retval] Windows.UI.Composition.CompositionDrawingSurface **result
);
[eventadd] HRESULT RenderingDeviceReplaced(
[in] Windows.Foundation.TypedEventHandler<Windows.UI.Composition.CompositionGraphicsDevice *, Windows.UI.Composition.RenderingDeviceReplacedEventArgs *> *handler,
[out, retval] EventRegistrationToken *token
);
[eventremove] HRESULT RenderingDeviceReplaced([in] EventRegistrationToken token);
}
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
exclusiveto(Windows.UI.Composition.CompositionPropertySet),
uuid(c9d6d202-5f67-4453-9117-9eadd430d3c2)
]
......@@ -731,6 +757,16 @@ namespace Windows.UI.Composition {
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
exclusiveto(Windows.UI.Composition.RenderingDeviceReplacedEventArgs),
uuid(3a31ac7d-28bf-4e7a-8524-71679d480f38)
]
interface IRenderingDeviceReplacedEventArgs : IInspectable
{
[propget] HRESULT GraphicsDevice([out, retval] Windows.UI.Composition.CompositionGraphicsDevice **value);
}
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
exclusiveto(Windows.UI.Composition.ScalarKeyFrameAnimation),
uuid(ae288fa9-252c-4b95-a725-bf85e38000a1)
]
......@@ -987,6 +1023,19 @@ namespace Windows.UI.Composition {
}
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass CompositionGraphicsDevice : Windows.UI.Composition.CompositionObject
{
[default] interface Windows.UI.Composition.ICompositionGraphicsDevice;
[contract(Windows.Foundation.UniversalApiContract, 4.0)] interface Windows.UI.Composition.ICompositionGraphicsDevice2;
[contract(Windows.Foundation.UniversalApiContract, 8.0)] interface Windows.UI.Composition.ICompositionGraphicsDevice3;
[contract(Windows.Foundation.UniversalApiContract, 12.0)] interface Windows.UI.Composition.ICompositionGraphicsDevice4;
}
[
composable(Windows.UI.Composition.ICompositionObjectFactory, public, Windows.Foundation.UniversalApiContract, 2.0),
contract(Windows.Foundation.UniversalApiContract, 2.0),
marshaling_behavior(agile),
......@@ -1136,6 +1185,16 @@ namespace Windows.UI.Composition {
marshaling_behavior(agile),
threading(both)
]
runtimeclass RenderingDeviceReplacedEventArgs : Windows.UI.Composition.CompositionObject
{
[default] interface Windows.UI.Composition.IRenderingDeviceReplacedEventArgs;
}
[
contract(Windows.Foundation.UniversalApiContract, 2.0),
marshaling_behavior(agile),
threading(both)
]
runtimeclass ScalarKeyFrameAnimation : Windows.UI.Composition.KeyFrameAnimation
{
[default] interface Windows.UI.Composition.IScalarKeyFrameAnimation;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment