d2d1: Add the ID2D1GdiInteropRenderTarget interface.

oldstable
Henri Verbeet 2014-05-19 08:21:01 +02:00 committed by Alexandre Julliard
parent 60de2d686c
commit bfcce57b9b
1 changed files with 23 additions and 0 deletions

View File

@ -272,6 +272,13 @@ typedef enum D2D1_WINDOW_STATE
D2D1_WINDOW_STATE_FORCE_DWORD = 0xffffffff,
} D2D1_WINDOW_STATE;
typedef enum D2D1_DC_INITIALIZE_MODE
{
D2D1_DC_INITIALIZE_MODE_COPY = 0,
D2D1_DC_INITIALIZE_MODE_CLEAR = 1,
D2D1_DC_INITIALIZE_MODE_FORCE_DWORD = 0xffffffff,
} D2D1_DC_INITIALIZE_MODE;
typedef struct D2D1_BEZIER_SEGMENT
{
D2D1_POINT_2F point1;
@ -1126,5 +1133,21 @@ interface ID2D1DCRenderTarget : ID2D1RenderTarget
);
}
[
local,
object,
uuid(e0db51c3-6f77-4bae-b3d5-e47509b35838)
]
interface ID2D1GdiInteropRenderTarget : IUnknown
{
HRESULT GetDC(
[in] D2D1_DC_INITIALIZE_MODE mode,
[out] HDC *dc
);
HRESULT ReleaseDC(
[in] const RECT *update
);
}
[local] HRESULT __stdcall D2D1CreateFactory(D2D1_FACTORY_TYPE factory_type, REFIID iid,
const D2D1_FACTORY_OPTIONS *factory_options, void **factory);