Nikolay Sivov : include: Add ID2D1CommandList and ID2D1CommandSink definition.

Alexandre Julliard julliard at winehq.org
Wed Oct 3 18:23:29 CDT 2018


Module: wine
Branch: master
Commit: 314e603cbb665fff0ffed85aa2da4369d873687d
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=314e603cbb665fff0ffed85aa2da4369d873687d

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Oct  3 08:53:55 2018 +0300

include: Add ID2D1CommandList and ID2D1CommandSink definition.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/d2d1_1.idl | 124 ++++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 file changed, 123 insertions(+), 1 deletion(-)

diff --git a/include/d2d1_1.idl b/include/d2d1_1.idl
index c6cd9c7..4a644ff 100644
--- a/include/d2d1_1.idl
+++ b/include/d2d1_1.idl
@@ -32,7 +32,6 @@ interface ID2D1Effect;
 interface ID2D1GradientStopCollection1;
 interface ID2D1ImageBrush;
 interface ID2D1BitmapBrush1;
-interface ID2D1CommandList;
 
 cpp_quote("#ifndef __dwrite_h__")
 /* already defined in dwrite.h but needed for WIDL */
@@ -431,6 +430,129 @@ interface ID2D1Device : ID2D1Resource
 
 [
     object,
+    uuid(54d7898a-a061-40a7-bec7-e465bcba2c4f),
+    local,
+]
+interface ID2D1CommandSink : IUnknown
+{
+    HRESULT BeginDraw();
+    HRESULT EndDraw();
+    HRESULT SetAntialiasMode(
+        [in] D2D1_ANTIALIAS_MODE antialias_mode
+    );
+    HRESULT SetTags(
+        [in] D2D1_TAG tag1,
+        [in] D2D1_TAG tag2
+    );
+    HRESULT SetTextAntialiasMode(
+        [in] D2D1_TEXT_ANTIALIAS_MODE antialias_mode
+    );
+    HRESULT SetTextRenderingParams(
+        [in] IDWriteRenderingParams *text_rendering_params
+    );
+    HRESULT SetTransform(
+        [in] D2D1_MATRIX_3X2_F *transform
+    );
+    HRESULT SetPrimitiveBlend(
+        [in] D2D1_PRIMITIVE_BLEND primitive_blend
+    );
+    HRESULT SetUnitMode(
+        [in] D2D1_UNIT_MODE unit_mode
+    );
+    HRESULT Clear(
+        [in] const D2D1_COLOR_F *color
+    );
+    HRESULT DrawGlyphRun(
+        [in] D2D1_POINT_2F baseline_origin,
+        [in] const DWRITE_GLYPH_RUN *glyph_run,
+        [in] const DWRITE_GLYPH_RUN_DESCRIPTION *glyph_run_desc,
+        [in] ID2D1Brush *brush,
+        [in] DWRITE_MEASURING_MODE measuring_mode
+    );
+    HRESULT DrawLine(
+        [in] D2D1_POINT_2F p0,
+        [in] D2D1_POINT_2F p1,
+        [in] ID2D1Brush *brush,
+        [in] float stroke_width,
+        [in] ID2D1StrokeStyle *stroke_style
+    );
+    HRESULT DrawGeometry(
+        [in] ID2D1Geometry *geometry,
+        [in] ID2D1Brush *brush,
+        [in] float stroke_width,
+        [in] ID2D1StrokeStyle *stroke_style
+    );
+    HRESULT DrawRectangle(
+        [in] const D2D1_RECT_F *rect,
+        [in] ID2D1Brush *brush,
+        [in] float stroke_width,
+        [in] ID2D1StrokeStyle *stroke_style
+    );
+    HRESULT DrawBitmap(
+        [in] ID2D1Bitmap *bitmap,
+        [in] const D2D1_RECT_F *dst_rect,
+        [in] float opacity,
+        [in] D2D1_INTERPOLATION_MODE interpolation_mode,
+        [in] const D2D1_RECT_F *src_rect,
+        [in] const D2D1_MATRIX_4X4_F *perspective_transform
+    );
+    HRESULT DrawImage(
+        [in] ID2D1Image *image,
+        [in] const D2D1_POINT_2F *target_offset,
+        [in] const D2D1_POINT_2F *image_rect,
+        [in] D2D1_INTERPOLATION_MODE interpolation_mode,
+        [in] D2D1_COMPOSITE_MODE composite_mode
+    );
+    HRESULT DrawGdiMetafile(
+        [in] ID2D1GdiMetafile *metafile,
+        [in] const D2D1_POINT_2F *target_offset
+    );
+    HRESULT FillMesh(
+        [in] ID2D1Mesh *mesh,
+        [in] ID2D1Brush *brush
+    );
+    HRESULT FillOpacityMask(
+        [in] ID2D1Bitmap *bitmap,
+        [in] ID2D1Brush *brush,
+        [in] const D2D1_RECT_F *dst_rect,
+        [in] const D2D1_RECT_F *src_rect
+    );
+    HRESULT FillGeometry(
+        [in] ID2D1Geometry *geometry,
+        [in] ID2D1Brush *brush,
+        [in] ID2D1Brush *opacity_brush
+    );
+    HRESULT FillRectangle(
+        [in] const D2D1_RECT_F *rect,
+        [in] ID2D1Brush *brush
+    );
+    HRESULT PushAxisAlignedClip(
+        [in] const D2D1_RECT_F *clip_rect,
+        [in] D2D1_ANTIALIAS_MODE antialias_mode
+    );
+    HRESULT PushLayer(
+        [in] const D2D1_LAYER_PARAMETERS1 *layer_parameters,
+        [in] ID2D1Layer *layer
+    );
+    HRESULT PopAxisAlignedClip();
+    HRESULT PopLayer();
+}
+
+[
+    object,
+    uuid(b4f34a19-2383-4d76-94f6-ec343657c3dc),
+    local,
+]
+interface ID2D1CommandList : ID2D1Image
+{
+    HRESULT Stream(
+        [in] ID2D1CommandSink *sink
+    );
+    HRESULT Close();
+}
+
+[
+    object,
     uuid(e8f7fe7a-191c-466d-ad95-975678bda998),
     local,
 ]




More information about the wine-cvs mailing list