d2d1: Add the ID2D1SolidColorBrush interface.

This commit is contained in:
Henri Verbeet 2014-05-15 10:15:33 +02:00 committed by Alexandre Julliard
parent d156bf03a6
commit a4677f8670
2 changed files with 27 additions and 0 deletions

View File

@ -32,6 +32,7 @@ typedef UINT64 D2D1_TAG;
typedef D2D_SIZE_U D2D1_SIZE_U; typedef D2D_SIZE_U D2D1_SIZE_U;
typedef D2D_POINT_2U D2D1_POINT_2U; typedef D2D_POINT_2U D2D1_POINT_2U;
typedef D2D_RECT_U D2D1_RECT_U; typedef D2D_RECT_U D2D1_RECT_U;
typedef D2D_COLOR_F D2D1_COLOR_F;
enum 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, [local] HRESULT __stdcall D2D1CreateFactory(D2D1_FACTORY_TYPE factory_type, REFIID iid,
const D2D1_FACTORY_OPTIONS *factory_options, void **factory); const D2D1_FACTORY_OPTIONS *factory_options, void **factory);

View File

@ -16,6 +16,19 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA * 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 typedef struct D2D_POINT_2F
{ {
FLOAT x; FLOAT x;