d2d1: Add the ID2D1HwndRenderTarget interface.

oldstable
Henri Verbeet 2014-05-19 08:20:59 +02:00 committed by Alexandre Julliard
parent 9d95788f12
commit d76e605010
1 changed files with 21 additions and 0 deletions

View File

@ -265,6 +265,13 @@ typedef enum D2D1_FEATURE_LEVEL
D2D1_FEATURE_LEVEL_FORCE_DWORD = 0xffffffff,
} D2D1_FEATURE_LEVEL;
typedef enum D2D1_WINDOW_STATE
{
D2D1_WINDOW_STATE_NONE = 0x0000000,
D2D1_WINDOW_STATE_OCCLUDED = 0x0000001,
D2D1_WINDOW_STATE_FORCE_DWORD = 0xffffffff,
} D2D1_WINDOW_STATE;
typedef struct D2D1_BEZIER_SEGMENT
{
D2D1_POINT_2F point1;
@ -1092,5 +1099,19 @@ interface ID2D1BitmapRenderTarget : ID2D1RenderTarget
);
}
[
local,
object,
uuid(2cd90698-12e2-11dc-9fed-001143a055f9)
]
interface ID2D1HwndRenderTarget : ID2D1RenderTarget
{
D2D1_WINDOW_STATE CheckWindowState();
HRESULT Resize(
[in] const D2D1_SIZE_U size
);
HWND GetHwnd();
}
[local] HRESULT __stdcall D2D1CreateFactory(D2D1_FACTORY_TYPE factory_type, REFIID iid,
const D2D1_FACTORY_OPTIONS *factory_options, void **factory);