[PATCH 3/5] d2d1: Add the ID2D1SolidColorBrush interface.
Henri Verbeet
hverbeet at codeweavers.com
Thu May 15 03:15:33 CDT 2014
---
include/d2d1.idl | 14 ++++++++++++++
include/d2dbasetypes.h | 13 +++++++++++++
2 files changed, 27 insertions(+)
diff --git a/include/d2d1.idl b/include/d2d1.idl
index 88a733f..7f7de1d 100644
--- a/include/d2d1.idl
+++ b/include/d2d1.idl
@@ -32,6 +32,7 @@ typedef UINT64 D2D1_TAG;
typedef D2D_SIZE_U D2D1_SIZE_U;
typedef D2D_POINT_2U D2D1_POINT_2U;
typedef D2D_RECT_U D2D1_RECT_U;
+typedef D2D_COLOR_F D2D1_COLOR_F;
enum
{
@@ -616,5 +617,18 @@ interface ID2D1BitmapBrush : ID2D1Brush
);
}
+[
+ local,
+ object,
+ uuid(2cd906a9-12e2-11dc-9fed-001143a055f9)
+]
+interface ID2D1SolidColorBrush : ID2D1Brush
+{
+ void SetColor(
+ [in] const D2D1_COLOR_F *color
+ );
+ D2D1_COLOR_F GetColor();
+}
+
[local] HRESULT __stdcall D2D1CreateFactory(D2D1_FACTORY_TYPE factory_type, REFIID iid,
const D2D1_FACTORY_OPTIONS *factory_options, void **factory);
diff --git a/include/d2dbasetypes.h b/include/d2dbasetypes.h
index 61158ac..e5acff2 100644
--- a/include/d2dbasetypes.h
+++ b/include/d2dbasetypes.h
@@ -16,6 +16,19 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
+#ifndef D3DCOLORVALUE_DEFINED
+typedef struct D3DCOLORVALUE
+{
+ float r;
+ float g;
+ float b;
+ float a;
+} D3DCOLORVALUE;
+#define D3DCOLORVALUE_DEFINED
+#endif
+
+typedef D3DCOLORVALUE D2D_COLOR_F;
+
typedef struct D2D_POINT_2F
{
FLOAT x;
--
1.7.10.4
More information about the wine-patches
mailing list