Henri Verbeet : d2d1: Add the ID2D1GdiInteropRenderTarget interface.

Alexandre Julliard julliard at winehq.org
Mon May 19 15:09:59 CDT 2014


Module: wine
Branch: master
Commit: bfcce57b9b9ed59fc648a8996fb1047e9b99af10
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bfcce57b9b9ed59fc648a8996fb1047e9b99af10

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Mon May 19 08:21:01 2014 +0200

d2d1: Add the ID2D1GdiInteropRenderTarget interface.

---

 include/d2d1.idl |   23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/include/d2d1.idl b/include/d2d1.idl
index 2c9db1a..b76e51f 100644
--- a/include/d2d1.idl
+++ b/include/d2d1.idl
@@ -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);




More information about the wine-cvs mailing list