/usr/include/wine-development/windows/dwrite_2.idl is in libwine-development-dev 1.7.29-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | /*
* Copyright 2014 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
import "dwrite_1.idl";
typedef enum DWRITE_OPTICAL_ALIGNMENT
{
DWRITE_OPTICAL_ALIGNMENT_NONE,
DWRITE_OPTICAL_ALIGNMENT_NO_SIDE_BEARINGS
} DWRITE_OPTICAL_ALIGNMENT;
typedef enum DWRITE_GRID_FIT_MODE
{
DWRITE_GRID_FIT_MODE_DEFAULT,
DWRITE_GRID_FIT_MODE_DISABLED,
DWRITE_GRID_FIT_MODE_ENABLED
} DWRITE_GRID_FIT_MODE;
typedef struct DWRITE_TEXT_METRICS1
{
/* DWRITE_TEXT_METRICS fields */
FLOAT left;
FLOAT top;
FLOAT width;
FLOAT widthIncludingTrailingWhitespace;
FLOAT height;
FLOAT layoutWidth;
FLOAT layoutHeight;
UINT32 maxBidiReorderingDepth;
UINT32 lineCount;
/* DWRITE_TEXT_METRICS1 fields */
FLOAT heightIncludingTrailingWhitespace;
} DWRITE_TEXT_METRICS1;
typedef struct _D3DCOLORVALUE
{
union {
FLOAT r;
FLOAT dvR;
};
union {
FLOAT g;
FLOAT dvG;
};
union {
FLOAT b;
FLOAT dvB;
};
union {
FLOAT a;
FLOAT dvA;
};
} D3DCOLORVALUE;
typedef D3DCOLORVALUE DWRITE_COLOR_F;
typedef struct DWRITE_COLOR_GLYPH_RUN
{
DWRITE_GLYPH_RUN glyphRun;
DWRITE_GLYPH_RUN_DESCRIPTION* glyphRunDescription;
FLOAT baselineOriginX;
FLOAT baselineOriginY;
DWRITE_COLOR_F runColor;
UINT16 paletteIndex;
} DWRITE_COLOR_GLYPH_RUN;
[
local,
object,
uuid(d3e0e934-22a0-427e-aae4-7d9574b59db1)
]
interface IDWriteTextRenderer1 : IDWriteTextRenderer
{
HRESULT DrawGlyphRun(void *context,
FLOAT originX,
FLOAT originY,
DWRITE_GLYPH_ORIENTATION_ANGLE angle,
DWRITE_MEASURING_MODE mode,
DWRITE_GLYPH_RUN const *run,
DWRITE_GLYPH_RUN_DESCRIPTION const *rundescr,
IUnknown *effect);
HRESULT DrawUnderline(void *context,
FLOAT originX,
FLOAT originY,
DWRITE_GLYPH_ORIENTATION_ANGLE angle,
DWRITE_UNDERLINE const *underline,
IUnknown *effect);
HRESULT DrawStrikethrough(void *context,
FLOAT originX,
FLOAT originY,
DWRITE_GLYPH_ORIENTATION_ANGLE angle,
DWRITE_STRIKETHROUGH const *strikethrough,
IUnknown *effect
);
HRESULT DrawInlineObject(void *context,
FLOAT originX,
FLOAT originY,
DWRITE_GLYPH_ORIENTATION_ANGLE angle,
IDWriteInlineObject *inlineObject,
BOOL is_sideways,
BOOL is_rtl,
IUnknown *effect
);
}
[
local,
object,
uuid(efa008f9-f7a1-48bf-b05c-f224713cc0ff)
]
interface IDWriteFontFallback : IUnknown
{
HRESULT MapCharacters(IDWriteTextAnalysisSource *source,
UINT32 position,
UINT32 length,
IDWriteFontCollection *basecollection,
const WCHAR *baseFamilyName,
DWRITE_FONT_WEIGHT baseWeight,
DWRITE_FONT_STYLE baseStyle,
DWRITE_FONT_STRETCH baseStretch,
UINT32 *mappedLength,
IDWriteFont **mappedFont,
FLOAT *scale
);
}
[
local,
object,
uuid(5f174b49-0d8b-4cfb-8bca-f1cce9d06c67)
]
interface IDWriteTextFormat1 : IDWriteTextFormat
{
HRESULT SetVerticalGlyphOrientation(DWRITE_VERTICAL_GLYPH_ORIENTATION orientation);
DWRITE_VERTICAL_GLYPH_ORIENTATION GetVerticalGlyphOrientation();
HRESULT SetLastLineWrapping(BOOL lastline_wrapping_enabled);
BOOL GetLastLineWrapping();
HRESULT SetOpticalAlignment(DWRITE_OPTICAL_ALIGNMENT alignment);
DWRITE_OPTICAL_ALIGNMENT GetOpticalAlignment();
HRESULT SetFontFallback(IDWriteFontFallback *fallback);
HRESULT GetFontFallback(IDWriteFontFallback **fallback);
}
[
local,
object,
uuid(1093c18f-8d5e-43f0-b064-0917311b525e)
]
interface IDWriteTextLayout2 : IDWriteTextLayout1
{
HRESULT GetMetrics(DWRITE_TEXT_METRICS1 *metrics);
HRESULT SetVerticalGlyphOrientation(DWRITE_VERTICAL_GLYPH_ORIENTATION orientation);
DWRITE_VERTICAL_GLYPH_ORIENTATION GetVerticalGlyphOrientation();
HRESULT SetLastLineWrapping(BOOL lastline_wrapping_enabled);
BOOL GetLastLineWrapping();
HRESULT SetOpticalAlignment(DWRITE_OPTICAL_ALIGNMENT alignment);
DWRITE_OPTICAL_ALIGNMENT GetOpticalAlignment();
HRESULT SetFontFallback(IDWriteFontFallback *fallback);
HRESULT GetFontFallback(IDWriteFontFallback **fallback);
}
[
local,
object,
uuid(553a9ff3-5693-4df7-b52b-74806f7f2eb9)
]
interface IDWriteTextAnalyzer2 : IDWriteTextAnalyzer1
{
HRESULT GetGlyphOrientationTransform(DWRITE_GLYPH_ORIENTATION_ANGLE angle,
BOOL is_sideways,
FLOAT originX,
FLOAT originY,
DWRITE_MATRIX *transform
);
HRESULT GetTypographicFeatures(IDWriteFontFace *fontface,
DWRITE_SCRIPT_ANALYSIS analysis,
const WCHAR *localeName,
UINT32 max_tagcount,
UINT32 *actual_tagcount,
DWRITE_FONT_FEATURE_TAG *tags
);
HRESULT CheckTypographicFeature(IDWriteFontFace *fontface,
DWRITE_SCRIPT_ANALYSIS analysis,
const WCHAR *localeName,
DWRITE_FONT_FEATURE_TAG feature,
UINT32 glyph_count,
const UINT16 *indices,
UINT8 *feature_applies
);
}
[
local,
object,
uuid(fd882d06-8aba-4fb8-b849-8be8b73e14de)
]
interface IDWriteFontFallbackBuilder : IUnknown
{
HRESULT AddMapping(const DWRITE_UNICODE_RANGE *ranges,
UINT32 rangesCount,
WCHAR const **targetFamilyNames,
UINT32 targetFamilyNamesCount,
[defaultvalue(NULL)] IDWriteFontCollection *collection,
[defaultvalue(NULL)] WCHAR const *localeName,
[defaultvalue(NULL)] WCHAR const *baseFamilyName,
[defaultvalue(1)] FLOAT scale
);
HRESULT AddMappings(IDWriteFontFallback *fallback);
HRESULT CreateFontFallback(IDWriteFontFallback **fallback);
}
[
local,
object,
uuid(29748ed6-8c9c-4a6a-be0b-d912e8538944)
]
interface IDWriteFont2 : IDWriteFont1
{
BOOL IsColorFont();
}
[
local,
object,
uuid(d8b768ff-64bc-4e66-982b-ec8e87f693f7)
]
interface IDWriteFontFace2 : IDWriteFontFace1
{
BOOL IsColorFont();
UINT32 GetColorPaletteCount();
UINT32 GetPaletteEntryCount();
HRESULT GetPaletteEntries(UINT32 palette_index,
UINT32 first_entry_index,
UINT32 entry_count,
DWRITE_COLOR_F *entries
);
HRESULT GetRecommendedRenderingMode(FLOAT fontEmSize,
FLOAT dpiX,
FLOAT dpiY,
DWRITE_MATRIX const *transform,
BOOL is_sideways,
DWRITE_OUTLINE_THRESHOLD threshold,
DWRITE_MEASURING_MODE measuringmode,
IDWriteRenderingParams *params,
DWRITE_RENDERING_MODE *renderingmode,
DWRITE_GRID_FIT_MODE *gridfitmode
);
}
[
local,
object,
uuid(d31fbe17-f157-41a2-8d24-cb779e0560e8)
]
interface IDWriteColorGlyphRunEnumerator : IUnknown
{
HRESULT MoveNext(BOOL *hasRun);
HRESULT GetCurrentRun(DWRITE_COLOR_GLYPH_RUN const **run);
}
[
local,
object,
uuid(f9d711c3-9777-40ae-87e8-3e5aF9bf0948)
]
interface IDWriteRenderingParams2 : IDWriteRenderingParams1
{
DWRITE_GRID_FIT_MODE GetGridFitMode();
};
[
local,
object,
uuid(0439fc60-ca44-4994-8dee-3a9af7b732ec)
]
interface IDWriteFactory2 : IDWriteFactory1
{
HRESULT GetSystemFontFallback(IDWriteFontFallback **fallback);
HRESULT CreateFontFallbackBuilder(IDWriteFontFallbackBuilder **fallbackbuilder);
HRESULT TranslateColorGlyphRun(FLOAT originX,
FLOAT originY,
const DWRITE_GLYPH_RUN *run,
const DWRITE_GLYPH_RUN_DESCRIPTION *rundescr,
DWRITE_MEASURING_MODE mode,
const DWRITE_MATRIX *transform,
UINT32 palette_index,
IDWriteColorGlyphRunEnumerator **colorlayers
);
HRESULT CreateCustomRenderingParams(FLOAT gamma,
FLOAT contrast,
FLOAT grayscalecontrast,
FLOAT cleartypeLevel,
DWRITE_PIXEL_GEOMETRY pixelGeometry,
DWRITE_RENDERING_MODE renderingMode,
DWRITE_GRID_FIT_MODE gridFitMode,
IDWriteRenderingParams2 **params
);
HRESULT CreateGlyphRunAnalysis(const DWRITE_GLYPH_RUN *run,
const DWRITE_MATRIX *transform,
DWRITE_RENDERING_MODE renderingMode,
DWRITE_MEASURING_MODE measuringMode,
DWRITE_GRID_FIT_MODE gridFitMode,
DWRITE_TEXT_ANTIALIAS_MODE antialiasMode,
FLOAT originX,
FLOAT originY,
IDWriteGlyphRunAnalysis **analysis
);
}
|