2 * Copyright 2012 Nikolay Sivov for CodeWeavers
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 import
"dxgiformat.idl";
26 typedef unsigned int UINT32
;
29 typedef enum DWRITE_MEASURING_MODE
31 DWRITE_MEASURING_MODE_NATURAL
,
32 DWRITE_MEASURING_MODE_GDI_CLASSIC
,
33 DWRITE_MEASURING_MODE_GDI_NATURAL
34 } DWRITE_MEASURING_MODE
;
36 typedef enum DWRITE_GLYPH_IMAGE_FORMATS
38 DWRITE_GLYPH_IMAGE_FORMATS_NONE
= 0,
39 DWRITE_GLYPH_IMAGE_FORMATS_TRUETYPE
= 1 << 0,
40 DWRITE_GLYPH_IMAGE_FORMATS_CFF
= 1 << 1,
41 DWRITE_GLYPH_IMAGE_FORMATS_COLR
= 1 << 2,
42 DWRITE_GLYPH_IMAGE_FORMATS_SVG
= 1 << 3,
43 DWRITE_GLYPH_IMAGE_FORMATS_PNG
= 1 << 4,
44 DWRITE_GLYPH_IMAGE_FORMATS_JPEG
= 1 << 5,
45 DWRITE_GLYPH_IMAGE_FORMATS_TIFF
= 1 << 6,
46 DWRITE_GLYPH_IMAGE_FORMATS_PREMULTIPLIED_B8G8R8A8
= 1 << 7
47 } DWRITE_GLYPH_IMAGE_FORMATS
;
49 typedef enum D2D1_ALPHA_MODE
51 D2D1_ALPHA_MODE_UNKNOWN
= 0,
52 D2D1_ALPHA_MODE_PREMULTIPLIED
= 1,
53 D2D1_ALPHA_MODE_STRAIGHT
= 2,
54 D2D1_ALPHA_MODE_IGNORE
= 3,
55 D2D1_ALPHA_MODE_FORCE_DWORD
= 0xffffffff,
58 typedef struct D2D1_PIXEL_FORMAT
61 D2D1_ALPHA_MODE alphaMode
;
64 typedef struct D2D_POINT_2F
68 } D2D_POINT_2F
, D2D1_POINT_2F
;
70 typedef POINT D2D_POINT_2L
, D2D1_POINT_2L
;
72 typedef struct D2D_SIZE_U
76 } D2D_SIZE_U
, D2D1_SIZE_U
;
78 typedef struct D2D_MATRIX_4X4_F
84 float _11
, _12
, _13
, _14
;
85 float _21
, _22
, _23
, _24
;
86 float _31
, _32
, _33
, _34
;
87 float _41
, _42
, _43
, _44
;