uiautomationcore/tests: Fix UiaNodeFromHandle tests on Windows 11.
[wine.git] / include / dxgitype.idl
bloba9ed5719a5f2c132988d8f58b4f5b19e25db390e
1 /*
2 * Copyright 2007 Andras Kovacs
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 "dxgicommon.idl";
20 import "dxgiformat.idl";
22 cpp_quote("#if 0")
23 typedef unsigned int UINT;
24 typedef long BOOL;
25 cpp_quote("#endif")
27 typedef enum DXGI_MODE_ROTATION
29 DXGI_MODE_ROTATION_UNSPECIFIED = 0x0,
30 DXGI_MODE_ROTATION_IDENTITY = 0x1,
31 DXGI_MODE_ROTATION_ROTATE90 = 0x2,
32 DXGI_MODE_ROTATION_ROTATE180 = 0x3,
33 DXGI_MODE_ROTATION_ROTATE270 = 0x4,
34 } DXGI_MODE_ROTATION;
36 typedef enum DXGI_MODE_SCANLINE_ORDER
38 DXGI_MODE_SCANLINE_ORDER_UNSPECIFIED = 0x0,
39 DXGI_MODE_SCANLINE_ORDER_PROGRESSIVE = 0x1,
40 DXGI_MODE_SCANLINE_ORDER_UPPER_FIELD_FIRST = 0x2,
41 DXGI_MODE_SCANLINE_ORDER_LOWER_FIELD_FIRST = 0x3,
42 } DXGI_MODE_SCANLINE_ORDER;
44 typedef enum DXGI_MODE_SCALING
46 DXGI_MODE_SCALING_UNSPECIFIED = 0x0,
47 DXGI_MODE_SCALING_CENTERED = 0x1,
48 DXGI_MODE_SCALING_STRETCHED = 0x2,
49 } DXGI_MODE_SCALING;
51 cpp_quote("#ifndef D3DCOLORVALUE_DEFINED")
52 cpp_quote("#define D3DCOLORVALUE_DEFINED")
53 typedef struct _D3DCOLORVALUE
55 float r;
56 float g;
57 float b;
58 float a;
59 } D3DCOLORVALUE;
60 cpp_quote("#endif")
61 typedef D3DCOLORVALUE DXGI_RGBA;
63 typedef struct DXGI_MODE_DESC
65 UINT Width;
66 UINT Height;
67 DXGI_RATIONAL RefreshRate;
68 DXGI_FORMAT Format;
69 DXGI_MODE_SCANLINE_ORDER ScanlineOrdering;
70 DXGI_MODE_SCALING Scaling;
71 } DXGI_MODE_DESC;
73 typedef struct DXGI_GAMMA_CONTROL_CAPABILITIES
75 BOOL ScaleAndOffsetSupported;
76 float MaxConvertedValue;
77 float MinConvertedValue;
78 UINT NumGammaControlPoints;
79 float ControlPointPositions[1025];
80 } DXGI_GAMMA_CONTROL_CAPABILITIES;
82 typedef struct DXGI_RGB
84 float Red;
85 float Green;
86 float Blue;
87 } DXGI_RGB;
89 typedef struct DXGI_GAMMA_CONTROL
91 DXGI_RGB Scale;
92 DXGI_RGB Offset;
93 DXGI_RGB GammaCurve[1025];
94 } DXGI_GAMMA_CONTROL;