blob: a9b642b232efe2ce81746e695402e03a18032cc5 [file] [log] [blame]
/*** Autogenerated by WIDL 6.4 from include/dwrite.idl - Do not edit ***/
#ifdef _WIN32
#ifndef __REQUIRED_RPCNDR_H_VERSION__
#define __REQUIRED_RPCNDR_H_VERSION__ 475
#endif
#include <rpc.h>
#include <rpcndr.h>
#endif
#ifndef COM_NO_WINDOWS_H
#include <windows.h>
#include <ole2.h>
#endif
#ifndef __dwrite_h__
#define __dwrite_h__
/* Forward declarations */
#ifndef __IDWriteFontFileStream_FWD_DEFINED__
#define __IDWriteFontFileStream_FWD_DEFINED__
typedef interface IDWriteFontFileStream IDWriteFontFileStream;
#ifdef __cplusplus
interface IDWriteFontFileStream;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFileLoader_FWD_DEFINED__
#define __IDWriteFontFileLoader_FWD_DEFINED__
typedef interface IDWriteFontFileLoader IDWriteFontFileLoader;
#ifdef __cplusplus
interface IDWriteFontFileLoader;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteLocalFontFileLoader_FWD_DEFINED__
#define __IDWriteLocalFontFileLoader_FWD_DEFINED__
typedef interface IDWriteLocalFontFileLoader IDWriteLocalFontFileLoader;
#ifdef __cplusplus
interface IDWriteLocalFontFileLoader;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFile_FWD_DEFINED__
#define __IDWriteFontFile_FWD_DEFINED__
typedef interface IDWriteFontFile IDWriteFontFile;
#ifdef __cplusplus
interface IDWriteFontFile;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFileEnumerator_FWD_DEFINED__
#define __IDWriteFontFileEnumerator_FWD_DEFINED__
typedef interface IDWriteFontFileEnumerator IDWriteFontFileEnumerator;
#ifdef __cplusplus
interface IDWriteFontFileEnumerator;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontCollectionLoader_FWD_DEFINED__
#define __IDWriteFontCollectionLoader_FWD_DEFINED__
typedef interface IDWriteFontCollectionLoader IDWriteFontCollectionLoader;
#ifdef __cplusplus
interface IDWriteFontCollectionLoader;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteLocalizedStrings_FWD_DEFINED__
#define __IDWriteLocalizedStrings_FWD_DEFINED__
typedef interface IDWriteLocalizedStrings IDWriteLocalizedStrings;
#ifdef __cplusplus
interface IDWriteLocalizedStrings;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteRenderingParams_FWD_DEFINED__
#define __IDWriteRenderingParams_FWD_DEFINED__
typedef interface IDWriteRenderingParams IDWriteRenderingParams;
#ifdef __cplusplus
interface IDWriteRenderingParams;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFace_FWD_DEFINED__
#define __IDWriteFontFace_FWD_DEFINED__
typedef interface IDWriteFontFace IDWriteFontFace;
#ifdef __cplusplus
interface IDWriteFontFace;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFont_FWD_DEFINED__
#define __IDWriteFont_FWD_DEFINED__
typedef interface IDWriteFont IDWriteFont;
#ifdef __cplusplus
interface IDWriteFont;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontList_FWD_DEFINED__
#define __IDWriteFontList_FWD_DEFINED__
typedef interface IDWriteFontList IDWriteFontList;
#ifdef __cplusplus
interface IDWriteFontList;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFamily_FWD_DEFINED__
#define __IDWriteFontFamily_FWD_DEFINED__
typedef interface IDWriteFontFamily IDWriteFontFamily;
#ifdef __cplusplus
interface IDWriteFontFamily;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontCollection_FWD_DEFINED__
#define __IDWriteFontCollection_FWD_DEFINED__
typedef interface IDWriteFontCollection IDWriteFontCollection;
#ifdef __cplusplus
interface IDWriteFontCollection;
#endif /* __cplusplus */
#endif
#ifndef __IDWritePixelSnapping_FWD_DEFINED__
#define __IDWritePixelSnapping_FWD_DEFINED__
typedef interface IDWritePixelSnapping IDWritePixelSnapping;
#ifdef __cplusplus
interface IDWritePixelSnapping;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextRenderer_FWD_DEFINED__
#define __IDWriteTextRenderer_FWD_DEFINED__
typedef interface IDWriteTextRenderer IDWriteTextRenderer;
#ifdef __cplusplus
interface IDWriteTextRenderer;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteInlineObject_FWD_DEFINED__
#define __IDWriteInlineObject_FWD_DEFINED__
typedef interface IDWriteInlineObject IDWriteInlineObject;
#ifdef __cplusplus
interface IDWriteInlineObject;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextFormat_FWD_DEFINED__
#define __IDWriteTextFormat_FWD_DEFINED__
typedef interface IDWriteTextFormat IDWriteTextFormat;
#ifdef __cplusplus
interface IDWriteTextFormat;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTypography_FWD_DEFINED__
#define __IDWriteTypography_FWD_DEFINED__
typedef interface IDWriteTypography IDWriteTypography;
#ifdef __cplusplus
interface IDWriteTypography;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteBitmapRenderTarget_FWD_DEFINED__
#define __IDWriteBitmapRenderTarget_FWD_DEFINED__
typedef interface IDWriteBitmapRenderTarget IDWriteBitmapRenderTarget;
#ifdef __cplusplus
interface IDWriteBitmapRenderTarget;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteGdiInterop_FWD_DEFINED__
#define __IDWriteGdiInterop_FWD_DEFINED__
typedef interface IDWriteGdiInterop IDWriteGdiInterop;
#ifdef __cplusplus
interface IDWriteGdiInterop;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextLayout_FWD_DEFINED__
#define __IDWriteTextLayout_FWD_DEFINED__
typedef interface IDWriteTextLayout IDWriteTextLayout;
#ifdef __cplusplus
interface IDWriteTextLayout;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteNumberSubstitution_FWD_DEFINED__
#define __IDWriteNumberSubstitution_FWD_DEFINED__
typedef interface IDWriteNumberSubstitution IDWriteNumberSubstitution;
#ifdef __cplusplus
interface IDWriteNumberSubstitution;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextAnalysisSource_FWD_DEFINED__
#define __IDWriteTextAnalysisSource_FWD_DEFINED__
typedef interface IDWriteTextAnalysisSource IDWriteTextAnalysisSource;
#ifdef __cplusplus
interface IDWriteTextAnalysisSource;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextAnalysisSink_FWD_DEFINED__
#define __IDWriteTextAnalysisSink_FWD_DEFINED__
typedef interface IDWriteTextAnalysisSink IDWriteTextAnalysisSink;
#ifdef __cplusplus
interface IDWriteTextAnalysisSink;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteTextAnalyzer_FWD_DEFINED__
#define __IDWriteTextAnalyzer_FWD_DEFINED__
typedef interface IDWriteTextAnalyzer IDWriteTextAnalyzer;
#ifdef __cplusplus
interface IDWriteTextAnalyzer;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteGlyphRunAnalysis_FWD_DEFINED__
#define __IDWriteGlyphRunAnalysis_FWD_DEFINED__
typedef interface IDWriteGlyphRunAnalysis IDWriteGlyphRunAnalysis;
#ifdef __cplusplus
interface IDWriteGlyphRunAnalysis;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFactory_FWD_DEFINED__
#define __IDWriteFactory_FWD_DEFINED__
typedef interface IDWriteFactory IDWriteFactory;
#ifdef __cplusplus
interface IDWriteFactory;
#endif /* __cplusplus */
#endif
/* Headers for imported files */
#include <unknwn.h>
#include <dcommon.h>
#ifdef __cplusplus
extern "C" {
#endif
#ifndef __IDWriteFactory_FWD_DEFINED__
#define __IDWriteFactory_FWD_DEFINED__
typedef interface IDWriteFactory IDWriteFactory;
#ifdef __cplusplus
interface IDWriteFactory;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontCollection_FWD_DEFINED__
#define __IDWriteFontCollection_FWD_DEFINED__
typedef interface IDWriteFontCollection IDWriteFontCollection;
#ifdef __cplusplus
interface IDWriteFontCollection;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFamily_FWD_DEFINED__
#define __IDWriteFontFamily_FWD_DEFINED__
typedef interface IDWriteFontFamily IDWriteFontFamily;
#ifdef __cplusplus
interface IDWriteFontFamily;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteFontFace_FWD_DEFINED__
#define __IDWriteFontFace_FWD_DEFINED__
typedef interface IDWriteFontFace IDWriteFontFace;
#ifdef __cplusplus
interface IDWriteFontFace;
#endif /* __cplusplus */
#endif
#ifndef __IDWriteInlineObject_FWD_DEFINED__
#define __IDWriteInlineObject_FWD_DEFINED__
typedef interface IDWriteInlineObject IDWriteInlineObject;
#ifdef __cplusplus
interface IDWriteInlineObject;
#endif /* __cplusplus */
#endif
#ifndef __ID2D1SimplifiedGeometrySink_FWD_DEFINED__
#define __ID2D1SimplifiedGeometrySink_FWD_DEFINED__
typedef interface ID2D1SimplifiedGeometrySink ID2D1SimplifiedGeometrySink;
#ifdef __cplusplus
interface ID2D1SimplifiedGeometrySink;
#endif /* __cplusplus */
#endif
typedef ID2D1SimplifiedGeometrySink IDWriteGeometrySink;
#ifndef _WINDEF_
typedef void *HMONITOR;
#endif /* _WINDEF_ */
#ifdef WINE_NO_UNICODE_MACROS
#undef GetGlyphIndices
#endif
typedef enum DWRITE_FACTORY_TYPE {
DWRITE_FACTORY_TYPE_SHARED = 0,
DWRITE_FACTORY_TYPE_ISOLATED = 1
} DWRITE_FACTORY_TYPE;
typedef enum DWRITE_FONT_FILE_TYPE {
DWRITE_FONT_FILE_TYPE_UNKNOWN = 0,
DWRITE_FONT_FILE_TYPE_CFF = 1,
DWRITE_FONT_FILE_TYPE_TRUETYPE = 2,
DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION = 3,
DWRITE_FONT_FILE_TYPE_TYPE1_PFM = 4,
DWRITE_FONT_FILE_TYPE_TYPE1_PFB = 5,
DWRITE_FONT_FILE_TYPE_VECTOR = 6,
DWRITE_FONT_FILE_TYPE_BITMAP = 7,
DWRITE_FONT_FILE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FILE_TYPE_OPENTYPE_COLLECTION
} DWRITE_FONT_FILE_TYPE;
typedef enum DWRITE_FONT_FACE_TYPE {
DWRITE_FONT_FACE_TYPE_CFF = 0,
DWRITE_FONT_FACE_TYPE_TRUETYPE = 1,
DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION = 2,
DWRITE_FONT_FACE_TYPE_TYPE1 = 3,
DWRITE_FONT_FACE_TYPE_VECTOR = 4,
DWRITE_FONT_FACE_TYPE_BITMAP = 5,
DWRITE_FONT_FACE_TYPE_UNKNOWN = 6,
DWRITE_FONT_FACE_TYPE_RAW_CFF = 7,
DWRITE_FONT_FACE_TYPE_TRUETYPE_COLLECTION = DWRITE_FONT_FACE_TYPE_OPENTYPE_COLLECTION
} DWRITE_FONT_FACE_TYPE;
typedef enum DWRITE_FONT_WEIGHT {
DWRITE_FONT_WEIGHT_THIN = 100,
DWRITE_FONT_WEIGHT_EXTRA_LIGHT = 200,
DWRITE_FONT_WEIGHT_ULTRA_LIGHT = 200,
DWRITE_FONT_WEIGHT_LIGHT = 300,
DWRITE_FONT_WEIGHT_SEMI_LIGHT = 350,
DWRITE_FONT_WEIGHT_NORMAL = 400,
DWRITE_FONT_WEIGHT_REGULAR = 400,
DWRITE_FONT_WEIGHT_MEDIUM = 500,
DWRITE_FONT_WEIGHT_DEMI_BOLD = 600,
DWRITE_FONT_WEIGHT_SEMI_BOLD = 600,
DWRITE_FONT_WEIGHT_BOLD = 700,
DWRITE_FONT_WEIGHT_EXTRA_BOLD = 800,
DWRITE_FONT_WEIGHT_ULTRA_BOLD = 800,
DWRITE_FONT_WEIGHT_BLACK = 900,
DWRITE_FONT_WEIGHT_HEAVY = 900,
DWRITE_FONT_WEIGHT_EXTRA_BLACK = 950,
DWRITE_FONT_WEIGHT_ULTRA_BLACK = 950
} DWRITE_FONT_WEIGHT;
typedef enum DWRITE_FONT_STRETCH {
DWRITE_FONT_STRETCH_UNDEFINED = 0,
DWRITE_FONT_STRETCH_ULTRA_CONDENSED = 1,
DWRITE_FONT_STRETCH_EXTRA_CONDENSED = 2,
DWRITE_FONT_STRETCH_CONDENSED = 3,
DWRITE_FONT_STRETCH_SEMI_CONDENSED = 4,
DWRITE_FONT_STRETCH_NORMAL = 5,
DWRITE_FONT_STRETCH_MEDIUM = 5,
DWRITE_FONT_STRETCH_SEMI_EXPANDED = 6,
DWRITE_FONT_STRETCH_EXPANDED = 7,
DWRITE_FONT_STRETCH_EXTRA_EXPANDED = 8,
DWRITE_FONT_STRETCH_ULTRA_EXPANDED = 9
} DWRITE_FONT_STRETCH;
typedef enum DWRITE_FONT_STYLE {
DWRITE_FONT_STYLE_NORMAL = 0,
DWRITE_FONT_STYLE_OBLIQUE = 1,
DWRITE_FONT_STYLE_ITALIC = 2
} DWRITE_FONT_STYLE;
typedef enum DWRITE_INFORMATIONAL_STRING_ID {
DWRITE_INFORMATIONAL_STRING_NONE = 0,
DWRITE_INFORMATIONAL_STRING_COPYRIGHT_NOTICE = 1,
DWRITE_INFORMATIONAL_STRING_VERSION_STRINGS = 2,
DWRITE_INFORMATIONAL_STRING_TRADEMARK = 3,
DWRITE_INFORMATIONAL_STRING_MANUFACTURER = 4,
DWRITE_INFORMATIONAL_STRING_DESIGNER = 5,
DWRITE_INFORMATIONAL_STRING_DESIGNER_URL = 6,
DWRITE_INFORMATIONAL_STRING_DESCRIPTION = 7,
DWRITE_INFORMATIONAL_STRING_FONT_VENDOR_URL = 8,
DWRITE_INFORMATIONAL_STRING_LICENSE_DESCRIPTION = 9,
DWRITE_INFORMATIONAL_STRING_LICENSE_INFO_URL = 10,
DWRITE_INFORMATIONAL_STRING_WIN32_FAMILY_NAMES = 11,
DWRITE_INFORMATIONAL_STRING_WIN32_SUBFAMILY_NAMES = 12,
DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES = 13,
DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES = 14,
DWRITE_INFORMATIONAL_STRING_SAMPLE_TEXT = 15,
DWRITE_INFORMATIONAL_STRING_FULL_NAME = 16,
DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_NAME = 17,
DWRITE_INFORMATIONAL_STRING_POSTSCRIPT_CID_NAME = 18,
DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME = 19,
DWRITE_INFORMATIONAL_STRING_DESIGN_SCRIPT_LANGUAGE_TAG = 20,
DWRITE_INFORMATIONAL_STRING_SUPPORTED_SCRIPT_LANGUAGE_TAG = 21,
DWRITE_INFORMATIONAL_STRING_PREFERRED_FAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_FAMILY_NAMES,
DWRITE_INFORMATIONAL_STRING_PREFERRED_SUBFAMILY_NAMES = DWRITE_INFORMATIONAL_STRING_TYPOGRAPHIC_SUBFAMILY_NAMES,
DWRITE_INFORMATIONAL_STRING_WWS_FAMILY_NAME = DWRITE_INFORMATIONAL_STRING_WEIGHT_STRETCH_STYLE_FAMILY_NAME
} DWRITE_INFORMATIONAL_STRING_ID;
typedef enum DWRITE_FONT_SIMULATIONS {
DWRITE_FONT_SIMULATIONS_NONE = 0,
DWRITE_FONT_SIMULATIONS_BOLD = 1,
DWRITE_FONT_SIMULATIONS_OBLIQUE = 2
} DWRITE_FONT_SIMULATIONS;
DEFINE_ENUM_FLAG_OPERATORS(DWRITE_FONT_SIMULATIONS);
typedef enum DWRITE_PIXEL_GEOMETRY {
DWRITE_PIXEL_GEOMETRY_FLAT = 0,
DWRITE_PIXEL_GEOMETRY_RGB = 1,
DWRITE_PIXEL_GEOMETRY_BGR = 2
} DWRITE_PIXEL_GEOMETRY;
typedef enum DWRITE_RENDERING_MODE {
DWRITE_RENDERING_MODE_DEFAULT = 0,
DWRITE_RENDERING_MODE_ALIASED = 1,
DWRITE_RENDERING_MODE_GDI_CLASSIC = 2,
DWRITE_RENDERING_MODE_GDI_NATURAL = 3,
DWRITE_RENDERING_MODE_NATURAL = 4,
DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC = 5,
DWRITE_RENDERING_MODE_OUTLINE = 6,
DWRITE_RENDERING_MODE_CLEARTYPE_GDI_CLASSIC = DWRITE_RENDERING_MODE_GDI_CLASSIC,
DWRITE_RENDERING_MODE_CLEARTYPE_GDI_NATURAL = DWRITE_RENDERING_MODE_GDI_NATURAL,
DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL = DWRITE_RENDERING_MODE_NATURAL,
DWRITE_RENDERING_MODE_CLEARTYPE_NATURAL_SYMMETRIC = DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC
} DWRITE_RENDERING_MODE;
typedef enum DWRITE_TEXT_ALIGNMENT {
DWRITE_TEXT_ALIGNMENT_LEADING = 0,
DWRITE_TEXT_ALIGNMENT_TRAILING = 1,
DWRITE_TEXT_ALIGNMENT_CENTER = 2,
DWRITE_TEXT_ALIGNMENT_JUSTIFIED = 3
} DWRITE_TEXT_ALIGNMENT;
typedef enum DWRITE_PARAGRAPH_ALIGNMENT {
DWRITE_PARAGRAPH_ALIGNMENT_NEAR = 0,
DWRITE_PARAGRAPH_ALIGNMENT_FAR = 1,
DWRITE_PARAGRAPH_ALIGNMENT_CENTER = 2
} DWRITE_PARAGRAPH_ALIGNMENT;
typedef enum DWRITE_WORD_WRAPPING {
DWRITE_WORD_WRAPPING_WRAP = 0,
DWRITE_WORD_WRAPPING_NO_WRAP = 1,
DWRITE_WORD_WRAPPING_EMERGENCY_BREAK = 2,
DWRITE_WORD_WRAPPING_WHOLE_WORD = 3,
DWRITE_WORD_WRAPPING_CHARACTER = 4
} DWRITE_WORD_WRAPPING;
typedef enum DWRITE_READING_DIRECTION {
DWRITE_READING_DIRECTION_LEFT_TO_RIGHT = 0,
DWRITE_READING_DIRECTION_RIGHT_TO_LEFT = 1,
DWRITE_READING_DIRECTION_TOP_TO_BOTTOM = 2,
DWRITE_READING_DIRECTION_BOTTOM_TO_TOP = 3
} DWRITE_READING_DIRECTION;
typedef enum DWRITE_FLOW_DIRECTION {
DWRITE_FLOW_DIRECTION_TOP_TO_BOTTOM = 0,
DWRITE_FLOW_DIRECTION_BOTTOM_TO_TOP = 1,
DWRITE_FLOW_DIRECTION_LEFT_TO_RIGHT = 2,
DWRITE_FLOW_DIRECTION_RIGHT_TO_LEFT = 3
} DWRITE_FLOW_DIRECTION;
typedef enum DWRITE_TRIMMING_GRANULARITY {
DWRITE_TRIMMING_GRANULARITY_NONE = 0,
DWRITE_TRIMMING_GRANULARITY_CHARACTER = 1,
DWRITE_TRIMMING_GRANULARITY_WORD = 2
} DWRITE_TRIMMING_GRANULARITY;
typedef enum DWRITE_BREAK_CONDITION {
DWRITE_BREAK_CONDITION_NEUTRAL = 0,
DWRITE_BREAK_CONDITION_CAN_BREAK = 1,
DWRITE_BREAK_CONDITION_MAY_NOT_BREAK = 2,
DWRITE_BREAK_CONDITION_MUST_BREAK = 3
} DWRITE_BREAK_CONDITION;
typedef enum DWRITE_LINE_SPACING_METHOD {
DWRITE_LINE_SPACING_METHOD_DEFAULT = 0,
DWRITE_LINE_SPACING_METHOD_UNIFORM = 1,
DWRITE_LINE_SPACING_METHOD_PROPORTIONAL = 2
} DWRITE_LINE_SPACING_METHOD;
#define DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d) ( \
((UINT32)(UINT8)(d) << 24) | \
((UINT32)(UINT8)(c) << 16) | \
((UINT32)(UINT8)(b) << 8) | \
(UINT32)(UINT8)(a))
typedef enum DWRITE_FONT_FEATURE_TAG {
DWRITE_FONT_FEATURE_TAG_ALTERNATIVE_FRACTIONS = 0x63726661,
DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS_FROM_CAPITALS = 0x63703263,
DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS_FROM_CAPITALS = 0x63733263,
DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_ALTERNATES = 0x746c6163,
DWRITE_FONT_FEATURE_TAG_CASE_SENSITIVE_FORMS = 0x65736163,
DWRITE_FONT_FEATURE_TAG_GLYPH_COMPOSITION_DECOMPOSITION = 0x706d6363,
DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_LIGATURES = 0x67696c63,
DWRITE_FONT_FEATURE_TAG_CAPITAL_SPACING = 0x70737063,
DWRITE_FONT_FEATURE_TAG_CONTEXTUAL_SWASH = 0x68777363,
DWRITE_FONT_FEATURE_TAG_CURSIVE_POSITIONING = 0x73727563,
DWRITE_FONT_FEATURE_TAG_DEFAULT = 0x746c6664,
DWRITE_FONT_FEATURE_TAG_DISCRETIONARY_LIGATURES = 0x67696c64,
DWRITE_FONT_FEATURE_TAG_EXPERT_FORMS = 0x74707865,
DWRITE_FONT_FEATURE_TAG_FRACTIONS = 0x63617266,
DWRITE_FONT_FEATURE_TAG_FULL_WIDTH = 0x64697766,
DWRITE_FONT_FEATURE_TAG_HALF_FORMS = 0x666c6168,
DWRITE_FONT_FEATURE_TAG_HALANT_FORMS = 0x6e6c6168,
DWRITE_FONT_FEATURE_TAG_ALTERNATE_HALF_WIDTH = 0x746c6168,
DWRITE_FONT_FEATURE_TAG_HISTORICAL_FORMS = 0x74736968,
DWRITE_FONT_FEATURE_TAG_HORIZONTAL_KANA_ALTERNATES = 0x616e6b68,
DWRITE_FONT_FEATURE_TAG_HISTORICAL_LIGATURES = 0x67696c68,
DWRITE_FONT_FEATURE_TAG_HALF_WIDTH = 0x64697768,
DWRITE_FONT_FEATURE_TAG_HOJO_KANJI_FORMS = 0x6f6a6f68,
DWRITE_FONT_FEATURE_TAG_JIS04_FORMS = 0x3430706a,
DWRITE_FONT_FEATURE_TAG_JIS78_FORMS = 0x3837706a,
DWRITE_FONT_FEATURE_TAG_JIS83_FORMS = 0x3338706a,
DWRITE_FONT_FEATURE_TAG_JIS90_FORMS = 0x3039706a,
DWRITE_FONT_FEATURE_TAG_KERNING = 0x6e72656b,
DWRITE_FONT_FEATURE_TAG_STANDARD_LIGATURES = 0x6167696c,
DWRITE_FONT_FEATURE_TAG_LINING_FIGURES = 0x6d756e6c,
DWRITE_FONT_FEATURE_TAG_LOCALIZED_FORMS = 0x6c636f6c,
DWRITE_FONT_FEATURE_TAG_MARK_POSITIONING = 0x6b72616d,
DWRITE_FONT_FEATURE_TAG_MATHEMATICAL_GREEK = 0x6b72676d,
DWRITE_FONT_FEATURE_TAG_MARK_TO_MARK_POSITIONING = 0x6b6d6b6d,
DWRITE_FONT_FEATURE_TAG_ALTERNATE_ANNOTATION_FORMS = 0x746c616e,
DWRITE_FONT_FEATURE_TAG_NLC_KANJI_FORMS = 0x6b636c6e,
DWRITE_FONT_FEATURE_TAG_OLD_STYLE_FIGURES = 0x6d756e6f,
DWRITE_FONT_FEATURE_TAG_ORDINALS = 0x6e64726f,
DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_ALTERNATE_WIDTH = 0x746c6170,
DWRITE_FONT_FEATURE_TAG_PETITE_CAPITALS = 0x70616370,
DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_FIGURES = 0x6d756e70,
DWRITE_FONT_FEATURE_TAG_PROPORTIONAL_WIDTHS = 0x64697770,
DWRITE_FONT_FEATURE_TAG_QUARTER_WIDTHS = 0x64697771,
DWRITE_FONT_FEATURE_TAG_REQUIRED_LIGATURES = 0x67696c72,
DWRITE_FONT_FEATURE_TAG_RUBY_NOTATION_FORMS = 0x79627572,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_ALTERNATES = 0x746c6173,
DWRITE_FONT_FEATURE_TAG_SCIENTIFIC_INFERIORS = 0x666e6973,
DWRITE_FONT_FEATURE_TAG_SMALL_CAPITALS = 0x70636d73,
DWRITE_FONT_FEATURE_TAG_SIMPLIFIED_FORMS = 0x6c706d73,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_1 = 0x31307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_2 = 0x32307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_3 = 0x33307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_4 = 0x34307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_5 = 0x35307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_6 = 0x36307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_7 = 0x37307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_8 = 0x38307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_9 = 0x39307373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_10 = 0x30317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_11 = 0x31317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_12 = 0x32317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_13 = 0x33317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_14 = 0x34317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_15 = 0x35317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_16 = 0x36317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_17 = 0x37317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_18 = 0x38317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_19 = 0x39317373,
DWRITE_FONT_FEATURE_TAG_STYLISTIC_SET_20 = 0x30327373,
DWRITE_FONT_FEATURE_TAG_SUBSCRIPT = 0x73627573,
DWRITE_FONT_FEATURE_TAG_SUPERSCRIPT = 0x73707573,
DWRITE_FONT_FEATURE_TAG_SWASH = 0x68737773,
DWRITE_FONT_FEATURE_TAG_TITLING = 0x6c746974,
DWRITE_FONT_FEATURE_TAG_TRADITIONAL_NAME_FORMS = 0x6d616e74,
DWRITE_FONT_FEATURE_TAG_TABULAR_FIGURES = 0x6d756e74,
DWRITE_FONT_FEATURE_TAG_TRADITIONAL_FORMS = 0x64617274,
DWRITE_FONT_FEATURE_TAG_THIRD_WIDTHS = 0x64697774,
DWRITE_FONT_FEATURE_TAG_UNICASE = 0x63696e75,
DWRITE_FONT_FEATURE_TAG_VERTICAL_WRITING = 0x74726576,
DWRITE_FONT_FEATURE_TAG_VERTICAL_ALTERNATES_AND_ROTATION = 0x32747276,
DWRITE_FONT_FEATURE_TAG_SLASHED_ZERO = 0x6f72657a
} DWRITE_FONT_FEATURE_TAG;
typedef enum DWRITE_SCRIPT_SHAPES {
DWRITE_SCRIPT_SHAPES_DEFAULT = 0,
DWRITE_SCRIPT_SHAPES_NO_VISUAL = 1
} DWRITE_SCRIPT_SHAPES;
DEFINE_ENUM_FLAG_OPERATORS(DWRITE_SCRIPT_SHAPES);
typedef enum DWRITE_NUMBER_SUBSTITUTION_METHOD {
DWRITE_NUMBER_SUBSTITUTION_METHOD_FROM_CULTURE = 0,
DWRITE_NUMBER_SUBSTITUTION_METHOD_CONTEXTUAL = 1,
DWRITE_NUMBER_SUBSTITUTION_METHOD_NONE = 2,
DWRITE_NUMBER_SUBSTITUTION_METHOD_NATIONAL = 3,
DWRITE_NUMBER_SUBSTITUTION_METHOD_TRADITIONAL = 4
} DWRITE_NUMBER_SUBSTITUTION_METHOD;
#define DWRITE_ALPHA_MAX 255
typedef enum DWRITE_TEXTURE_TYPE {
DWRITE_TEXTURE_ALIASED_1x1 = 0,
DWRITE_TEXTURE_CLEARTYPE_3x1 = 1
} DWRITE_TEXTURE_TYPE;
typedef struct DWRITE_FONT_METRICS {
UINT16 designUnitsPerEm;
UINT16 ascent;
UINT16 descent;
INT16 lineGap;
UINT16 capHeight;
UINT16 xHeight;
INT16 underlinePosition;
UINT16 underlineThickness;
INT16 strikethroughPosition;
UINT16 strikethroughThickness;
} DWRITE_FONT_METRICS;
typedef struct DWRITE_GLYPH_METRICS {
INT32 leftSideBearing;
UINT32 advanceWidth;
INT32 rightSideBearing;
INT32 topSideBearing;
UINT32 advanceHeight;
INT32 bottomSideBearing;
INT32 verticalOriginY;
} DWRITE_GLYPH_METRICS;
typedef struct DWRITE_GLYPH_OFFSET {
FLOAT advanceOffset;
FLOAT ascenderOffset;
} DWRITE_GLYPH_OFFSET;
typedef struct DWRITE_MATRIX {
FLOAT m11;
FLOAT m12;
FLOAT m21;
FLOAT m22;
FLOAT dx;
FLOAT dy;
} DWRITE_MATRIX;
typedef struct DWRITE_TRIMMING {
DWRITE_TRIMMING_GRANULARITY granularity;
UINT32 delimiter;
UINT32 delimiterCount;
} DWRITE_TRIMMING;
#ifndef __d2d1_h__
typedef struct DWRITE_GLYPH_RUN DWRITE_GLYPH_RUN;
#endif /* __d2d1_h__ */
struct DWRITE_GLYPH_RUN {
IDWriteFontFace *fontFace;
FLOAT fontEmSize;
UINT32 glyphCount;
const UINT16 *glyphIndices;
const FLOAT *glyphAdvances;
const DWRITE_GLYPH_OFFSET *glyphOffsets;
WINBOOL isSideways;
UINT32 bidiLevel;
};
#ifndef __d2d1_1_h__
typedef struct DWRITE_GLYPH_RUN_DESCRIPTION DWRITE_GLYPH_RUN_DESCRIPTION;
#endif /* __d2d1_1_h__ */
struct DWRITE_GLYPH_RUN_DESCRIPTION {
const WCHAR *localeName;
const WCHAR *string;
UINT32 stringLength;
const UINT16 *clusterMap;
UINT32 textPosition;
};
typedef struct DWRITE_UNDERLINE {
FLOAT width;
FLOAT thickness;
FLOAT offset;
FLOAT runHeight;
DWRITE_READING_DIRECTION readingDirection;
DWRITE_FLOW_DIRECTION flowDirection;
const WCHAR *localeName;
DWRITE_MEASURING_MODE measuringMode;
} DWRITE_UNDERLINE;
typedef struct DWRITE_STRIKETHROUGH {
FLOAT width;
FLOAT thickness;
FLOAT offset;
DWRITE_READING_DIRECTION readingDirection;
DWRITE_FLOW_DIRECTION flowDirection;
const WCHAR *localeName;
DWRITE_MEASURING_MODE measuringMode;
} DWRITE_STRIKETHROUGH;
typedef struct DWRITE_INLINE_OBJECT_METRICS {
FLOAT width;
FLOAT height;
FLOAT baseline;
WINBOOL supportsSideways;
} DWRITE_INLINE_OBJECT_METRICS;
typedef struct DWRITE_OVERHANG_METRICS {
FLOAT left;
FLOAT top;
FLOAT right;
FLOAT bottom;
} DWRITE_OVERHANG_METRICS;
typedef struct DWRITE_FONT_FEATURE {
DWRITE_FONT_FEATURE_TAG nameTag;
UINT32 parameter;
} DWRITE_FONT_FEATURE;
typedef struct DWRITE_TEXT_RANGE {
UINT32 startPosition;
UINT32 length;
} DWRITE_TEXT_RANGE;
typedef struct DWRITE_LINE_METRICS {
UINT32 length;
UINT32 trailingWhitespaceLength;
UINT32 newlineLength;
FLOAT height;
FLOAT baseline;
WINBOOL isTrimmed;
} DWRITE_LINE_METRICS;
typedef struct DWRITE_TEXT_METRICS {
FLOAT left;
FLOAT top;
FLOAT width;
FLOAT widthIncludingTrailingWhitespace;
FLOAT height;
FLOAT layoutWidth;
FLOAT layoutHeight;
UINT32 maxBidiReorderingDepth;
UINT32 lineCount;
} DWRITE_TEXT_METRICS;
typedef struct DWRITE_CLUSTER_METRICS {
FLOAT width;
UINT16 length;
UINT16 canWrapLineAfter : 1;
UINT16 isWhitespace : 1;
UINT16 isNewline : 1;
UINT16 isSoftHyphen : 1;
UINT16 isRightToLeft : 1;
UINT16 padding : 11;
} DWRITE_CLUSTER_METRICS;
typedef struct DWRITE_HIT_TEST_METRICS {
UINT32 textPosition;
UINT32 length;
FLOAT left;
FLOAT top;
FLOAT width;
FLOAT height;
UINT32 bidiLevel;
WINBOOL isText;
WINBOOL isTrimmed;
} DWRITE_HIT_TEST_METRICS;
typedef struct DWRITE_SCRIPT_ANALYSIS {
UINT16 script;
DWRITE_SCRIPT_SHAPES shapes;
} DWRITE_SCRIPT_ANALYSIS;
typedef struct DWRITE_LINE_BREAKPOINT {
UINT8 breakConditionBefore : 2;
UINT8 breakConditionAfter : 2;
UINT8 isWhitespace : 1;
UINT8 isSoftHyphen : 1;
UINT8 padding : 2;
} DWRITE_LINE_BREAKPOINT;
typedef struct DWRITE_TYPOGRAPHIC_FEATURES {
DWRITE_FONT_FEATURE *features;
UINT32 featureCount;
} DWRITE_TYPOGRAPHIC_FEATURES;
typedef struct DWRITE_SHAPING_TEXT_PROPERTIES {
UINT16 isShapedAlone : 1;
UINT16 reserved1 : 1;
UINT16 canBreakShapingAfter : 1;
UINT16 reserved : 13;
} DWRITE_SHAPING_TEXT_PROPERTIES;
typedef struct DWRITE_SHAPING_GLYPH_PROPERTIES {
UINT16 justification : 4;
UINT16 isClusterStart : 1;
UINT16 isDiacritic : 1;
UINT16 isZeroWidthSpace : 1;
UINT16 reserved : 9;
} DWRITE_SHAPING_GLYPH_PROPERTIES;
/*****************************************************************************
* IDWriteFontFileStream interface
*/
#ifndef __IDWriteFontFileStream_INTERFACE_DEFINED__
#define __IDWriteFontFileStream_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFileStream, 0x6d4865fe, 0x0ab8, 0x4d91, 0x8f,0x62, 0x5d,0xd6,0xbe,0x34,0xa3,0xe0);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0")
IDWriteFontFileStream : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE ReadFileFragment(
const void **fragment_start,
UINT64 offset,
UINT64 fragment_size,
void **fragment_context) = 0;
virtual void STDMETHODCALLTYPE ReleaseFileFragment(
void *fragment_context) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFileSize(
UINT64 *size) = 0;
virtual HRESULT STDMETHODCALLTYPE GetLastWriteTime(
UINT64 *last_writetime) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFileStream, 0x6d4865fe, 0x0ab8, 0x4d91, 0x8f,0x62, 0x5d,0xd6,0xbe,0x34,0xa3,0xe0)
#endif
#else
typedef struct IDWriteFontFileStreamVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFileStream *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFileStream *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFileStream *This);
/*** IDWriteFontFileStream methods ***/
HRESULT (STDMETHODCALLTYPE *ReadFileFragment)(
IDWriteFontFileStream *This,
const void **fragment_start,
UINT64 offset,
UINT64 fragment_size,
void **fragment_context);
void (STDMETHODCALLTYPE *ReleaseFileFragment)(
IDWriteFontFileStream *This,
void *fragment_context);
HRESULT (STDMETHODCALLTYPE *GetFileSize)(
IDWriteFontFileStream *This,
UINT64 *size);
HRESULT (STDMETHODCALLTYPE *GetLastWriteTime)(
IDWriteFontFileStream *This,
UINT64 *last_writetime);
END_INTERFACE
} IDWriteFontFileStreamVtbl;
interface IDWriteFontFileStream {
CONST_VTBL IDWriteFontFileStreamVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFileStream_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFileStream_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFileStream_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFileStream methods ***/
#define IDWriteFontFileStream_ReadFileFragment(This,fragment_start,offset,fragment_size,fragment_context) (This)->lpVtbl->ReadFileFragment(This,fragment_start,offset,fragment_size,fragment_context)
#define IDWriteFontFileStream_ReleaseFileFragment(This,fragment_context) (This)->lpVtbl->ReleaseFileFragment(This,fragment_context)
#define IDWriteFontFileStream_GetFileSize(This,size) (This)->lpVtbl->GetFileSize(This,size)
#define IDWriteFontFileStream_GetLastWriteTime(This,last_writetime) (This)->lpVtbl->GetLastWriteTime(This,last_writetime)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFileStream_QueryInterface(IDWriteFontFileStream* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFileStream_AddRef(IDWriteFontFileStream* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFileStream_Release(IDWriteFontFileStream* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFileStream methods ***/
static FORCEINLINE HRESULT IDWriteFontFileStream_ReadFileFragment(IDWriteFontFileStream* This,const void **fragment_start,UINT64 offset,UINT64 fragment_size,void **fragment_context) {
return This->lpVtbl->ReadFileFragment(This,fragment_start,offset,fragment_size,fragment_context);
}
static FORCEINLINE void IDWriteFontFileStream_ReleaseFileFragment(IDWriteFontFileStream* This,void *fragment_context) {
This->lpVtbl->ReleaseFileFragment(This,fragment_context);
}
static FORCEINLINE HRESULT IDWriteFontFileStream_GetFileSize(IDWriteFontFileStream* This,UINT64 *size) {
return This->lpVtbl->GetFileSize(This,size);
}
static FORCEINLINE HRESULT IDWriteFontFileStream_GetLastWriteTime(IDWriteFontFileStream* This,UINT64 *last_writetime) {
return This->lpVtbl->GetLastWriteTime(This,last_writetime);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFileStream_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontFileLoader interface
*/
#ifndef __IDWriteFontFileLoader_INTERFACE_DEFINED__
#define __IDWriteFontFileLoader_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFileLoader, 0x727cad4e, 0xd6af, 0x4c9e, 0x8a,0x08, 0xd6,0x95,0xb1,0x1c,0xaa,0x49);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("727cad4e-d6af-4c9e-8a08-d695b11caa49")
IDWriteFontFileLoader : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE CreateStreamFromKey(
const void *key,
UINT32 key_size,
IDWriteFontFileStream **stream) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFileLoader, 0x727cad4e, 0xd6af, 0x4c9e, 0x8a,0x08, 0xd6,0x95,0xb1,0x1c,0xaa,0x49)
#endif
#else
typedef struct IDWriteFontFileLoaderVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFileLoader *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFileLoader *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFileLoader *This);
/*** IDWriteFontFileLoader methods ***/
HRESULT (STDMETHODCALLTYPE *CreateStreamFromKey)(
IDWriteFontFileLoader *This,
const void *key,
UINT32 key_size,
IDWriteFontFileStream **stream);
END_INTERFACE
} IDWriteFontFileLoaderVtbl;
interface IDWriteFontFileLoader {
CONST_VTBL IDWriteFontFileLoaderVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFileLoader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFileLoader_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFileLoader_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFileLoader methods ***/
#define IDWriteFontFileLoader_CreateStreamFromKey(This,key,key_size,stream) (This)->lpVtbl->CreateStreamFromKey(This,key,key_size,stream)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFileLoader_QueryInterface(IDWriteFontFileLoader* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFileLoader_AddRef(IDWriteFontFileLoader* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFileLoader_Release(IDWriteFontFileLoader* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFileLoader methods ***/
static FORCEINLINE HRESULT IDWriteFontFileLoader_CreateStreamFromKey(IDWriteFontFileLoader* This,const void *key,UINT32 key_size,IDWriteFontFileStream **stream) {
return This->lpVtbl->CreateStreamFromKey(This,key,key_size,stream);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFileLoader_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteLocalFontFileLoader interface
*/
#ifndef __IDWriteLocalFontFileLoader_INTERFACE_DEFINED__
#define __IDWriteLocalFontFileLoader_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteLocalFontFileLoader, 0xb2d9f3ec, 0xc9fe, 0x4a11, 0xa2,0xec, 0xd8,0x62,0x08,0xf7,0xc0,0xa2);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")
IDWriteLocalFontFileLoader : public IDWriteFontFileLoader
{
virtual HRESULT STDMETHODCALLTYPE GetFilePathLengthFromKey(
const void *key,
UINT32 key_size,
UINT32 *length) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFilePathFromKey(
const void *key,
UINT32 key_size,
WCHAR *path,
UINT32 length) = 0;
virtual HRESULT STDMETHODCALLTYPE GetLastWriteTimeFromKey(
const void *key,
UINT32 key_size,
FILETIME *writetime) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteLocalFontFileLoader, 0xb2d9f3ec, 0xc9fe, 0x4a11, 0xa2,0xec, 0xd8,0x62,0x08,0xf7,0xc0,0xa2)
#endif
#else
typedef struct IDWriteLocalFontFileLoaderVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteLocalFontFileLoader *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteLocalFontFileLoader *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteLocalFontFileLoader *This);
/*** IDWriteFontFileLoader methods ***/
HRESULT (STDMETHODCALLTYPE *CreateStreamFromKey)(
IDWriteLocalFontFileLoader *This,
const void *key,
UINT32 key_size,
IDWriteFontFileStream **stream);
/*** IDWriteLocalFontFileLoader methods ***/
HRESULT (STDMETHODCALLTYPE *GetFilePathLengthFromKey)(
IDWriteLocalFontFileLoader *This,
const void *key,
UINT32 key_size,
UINT32 *length);
HRESULT (STDMETHODCALLTYPE *GetFilePathFromKey)(
IDWriteLocalFontFileLoader *This,
const void *key,
UINT32 key_size,
WCHAR *path,
UINT32 length);
HRESULT (STDMETHODCALLTYPE *GetLastWriteTimeFromKey)(
IDWriteLocalFontFileLoader *This,
const void *key,
UINT32 key_size,
FILETIME *writetime);
END_INTERFACE
} IDWriteLocalFontFileLoaderVtbl;
interface IDWriteLocalFontFileLoader {
CONST_VTBL IDWriteLocalFontFileLoaderVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteLocalFontFileLoader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteLocalFontFileLoader_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteLocalFontFileLoader_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFileLoader methods ***/
#define IDWriteLocalFontFileLoader_CreateStreamFromKey(This,key,key_size,stream) (This)->lpVtbl->CreateStreamFromKey(This,key,key_size,stream)
/*** IDWriteLocalFontFileLoader methods ***/
#define IDWriteLocalFontFileLoader_GetFilePathLengthFromKey(This,key,key_size,length) (This)->lpVtbl->GetFilePathLengthFromKey(This,key,key_size,length)
#define IDWriteLocalFontFileLoader_GetFilePathFromKey(This,key,key_size,path,length) (This)->lpVtbl->GetFilePathFromKey(This,key,key_size,path,length)
#define IDWriteLocalFontFileLoader_GetLastWriteTimeFromKey(This,key,key_size,writetime) (This)->lpVtbl->GetLastWriteTimeFromKey(This,key,key_size,writetime)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteLocalFontFileLoader_QueryInterface(IDWriteLocalFontFileLoader* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteLocalFontFileLoader_AddRef(IDWriteLocalFontFileLoader* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteLocalFontFileLoader_Release(IDWriteLocalFontFileLoader* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFileLoader methods ***/
static FORCEINLINE HRESULT IDWriteLocalFontFileLoader_CreateStreamFromKey(IDWriteLocalFontFileLoader* This,const void *key,UINT32 key_size,IDWriteFontFileStream **stream) {
return This->lpVtbl->CreateStreamFromKey(This,key,key_size,stream);
}
/*** IDWriteLocalFontFileLoader methods ***/
static FORCEINLINE HRESULT IDWriteLocalFontFileLoader_GetFilePathLengthFromKey(IDWriteLocalFontFileLoader* This,const void *key,UINT32 key_size,UINT32 *length) {
return This->lpVtbl->GetFilePathLengthFromKey(This,key,key_size,length);
}
static FORCEINLINE HRESULT IDWriteLocalFontFileLoader_GetFilePathFromKey(IDWriteLocalFontFileLoader* This,const void *key,UINT32 key_size,WCHAR *path,UINT32 length) {
return This->lpVtbl->GetFilePathFromKey(This,key,key_size,path,length);
}
static FORCEINLINE HRESULT IDWriteLocalFontFileLoader_GetLastWriteTimeFromKey(IDWriteLocalFontFileLoader* This,const void *key,UINT32 key_size,FILETIME *writetime) {
return This->lpVtbl->GetLastWriteTimeFromKey(This,key,key_size,writetime);
}
#endif
#endif
#endif
#endif /* __IDWriteLocalFontFileLoader_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontFile interface
*/
#ifndef __IDWriteFontFile_INTERFACE_DEFINED__
#define __IDWriteFontFile_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFile, 0x739d886a, 0xcef5, 0x47dc, 0x87,0x69, 0x1a,0x8b,0x41,0xbe,0xbb,0xb0);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("739d886a-cef5-47dc-8769-1a8b41bebbb0")
IDWriteFontFile : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetReferenceKey(
const void **key,
UINT32 *key_size) = 0;
virtual HRESULT STDMETHODCALLTYPE GetLoader(
IDWriteFontFileLoader **loader) = 0;
virtual HRESULT STDMETHODCALLTYPE Analyze(
WINBOOL *is_supported_fonttype,
DWRITE_FONT_FILE_TYPE *file_type,
DWRITE_FONT_FACE_TYPE *face_type,
UINT32 *faces_num) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFile, 0x739d886a, 0xcef5, 0x47dc, 0x87,0x69, 0x1a,0x8b,0x41,0xbe,0xbb,0xb0)
#endif
#else
typedef struct IDWriteFontFileVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFile *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFile *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFile *This);
/*** IDWriteFontFile methods ***/
HRESULT (STDMETHODCALLTYPE *GetReferenceKey)(
IDWriteFontFile *This,
const void **key,
UINT32 *key_size);
HRESULT (STDMETHODCALLTYPE *GetLoader)(
IDWriteFontFile *This,
IDWriteFontFileLoader **loader);
HRESULT (STDMETHODCALLTYPE *Analyze)(
IDWriteFontFile *This,
WINBOOL *is_supported_fonttype,
DWRITE_FONT_FILE_TYPE *file_type,
DWRITE_FONT_FACE_TYPE *face_type,
UINT32 *faces_num);
END_INTERFACE
} IDWriteFontFileVtbl;
interface IDWriteFontFile {
CONST_VTBL IDWriteFontFileVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFile_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFile_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFile_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFile methods ***/
#define IDWriteFontFile_GetReferenceKey(This,key,key_size) (This)->lpVtbl->GetReferenceKey(This,key,key_size)
#define IDWriteFontFile_GetLoader(This,loader) (This)->lpVtbl->GetLoader(This,loader)
#define IDWriteFontFile_Analyze(This,is_supported_fonttype,file_type,face_type,faces_num) (This)->lpVtbl->Analyze(This,is_supported_fonttype,file_type,face_type,faces_num)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFile_QueryInterface(IDWriteFontFile* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFile_AddRef(IDWriteFontFile* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFile_Release(IDWriteFontFile* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFile methods ***/
static FORCEINLINE HRESULT IDWriteFontFile_GetReferenceKey(IDWriteFontFile* This,const void **key,UINT32 *key_size) {
return This->lpVtbl->GetReferenceKey(This,key,key_size);
}
static FORCEINLINE HRESULT IDWriteFontFile_GetLoader(IDWriteFontFile* This,IDWriteFontFileLoader **loader) {
return This->lpVtbl->GetLoader(This,loader);
}
static FORCEINLINE HRESULT IDWriteFontFile_Analyze(IDWriteFontFile* This,WINBOOL *is_supported_fonttype,DWRITE_FONT_FILE_TYPE *file_type,DWRITE_FONT_FACE_TYPE *face_type,UINT32 *faces_num) {
return This->lpVtbl->Analyze(This,is_supported_fonttype,file_type,face_type,faces_num);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFile_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontFileEnumerator interface
*/
#ifndef __IDWriteFontFileEnumerator_INTERFACE_DEFINED__
#define __IDWriteFontFileEnumerator_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFileEnumerator, 0x72755049, 0x5ff7, 0x435d, 0x83,0x48, 0x4b,0xe9,0x7c,0xfa,0x6c,0x7c);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("72755049-5ff7-435d-8348-4be97cfa6c7c")
IDWriteFontFileEnumerator : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE MoveNext(
WINBOOL *has_current_file) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentFontFile(
IDWriteFontFile **font_file) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFileEnumerator, 0x72755049, 0x5ff7, 0x435d, 0x83,0x48, 0x4b,0xe9,0x7c,0xfa,0x6c,0x7c)
#endif
#else
typedef struct IDWriteFontFileEnumeratorVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFileEnumerator *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFileEnumerator *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFileEnumerator *This);
/*** IDWriteFontFileEnumerator methods ***/
HRESULT (STDMETHODCALLTYPE *MoveNext)(
IDWriteFontFileEnumerator *This,
WINBOOL *has_current_file);
HRESULT (STDMETHODCALLTYPE *GetCurrentFontFile)(
IDWriteFontFileEnumerator *This,
IDWriteFontFile **font_file);
END_INTERFACE
} IDWriteFontFileEnumeratorVtbl;
interface IDWriteFontFileEnumerator {
CONST_VTBL IDWriteFontFileEnumeratorVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFileEnumerator_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFileEnumerator_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFileEnumerator_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFileEnumerator methods ***/
#define IDWriteFontFileEnumerator_MoveNext(This,has_current_file) (This)->lpVtbl->MoveNext(This,has_current_file)
#define IDWriteFontFileEnumerator_GetCurrentFontFile(This,font_file) (This)->lpVtbl->GetCurrentFontFile(This,font_file)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFileEnumerator_QueryInterface(IDWriteFontFileEnumerator* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFileEnumerator_AddRef(IDWriteFontFileEnumerator* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFileEnumerator_Release(IDWriteFontFileEnumerator* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFileEnumerator methods ***/
static FORCEINLINE HRESULT IDWriteFontFileEnumerator_MoveNext(IDWriteFontFileEnumerator* This,WINBOOL *has_current_file) {
return This->lpVtbl->MoveNext(This,has_current_file);
}
static FORCEINLINE HRESULT IDWriteFontFileEnumerator_GetCurrentFontFile(IDWriteFontFileEnumerator* This,IDWriteFontFile **font_file) {
return This->lpVtbl->GetCurrentFontFile(This,font_file);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFileEnumerator_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontCollectionLoader interface
*/
#ifndef __IDWriteFontCollectionLoader_INTERFACE_DEFINED__
#define __IDWriteFontCollectionLoader_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontCollectionLoader, 0xcca920e4, 0x52f0, 0x492b, 0xbf,0xa8, 0x29,0xc7,0x2e,0xe0,0xa4,0x68);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("cca920e4-52f0-492b-bfa8-29c72ee0a468")
IDWriteFontCollectionLoader : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE CreateEnumeratorFromKey(
IDWriteFactory *factory,
const void *key,
UINT32 key_size,
IDWriteFontFileEnumerator **enumerator) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontCollectionLoader, 0xcca920e4, 0x52f0, 0x492b, 0xbf,0xa8, 0x29,0xc7,0x2e,0xe0,0xa4,0x68)
#endif
#else
typedef struct IDWriteFontCollectionLoaderVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontCollectionLoader *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontCollectionLoader *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontCollectionLoader *This);
/*** IDWriteFontCollectionLoader methods ***/
HRESULT (STDMETHODCALLTYPE *CreateEnumeratorFromKey)(
IDWriteFontCollectionLoader *This,
IDWriteFactory *factory,
const void *key,
UINT32 key_size,
IDWriteFontFileEnumerator **enumerator);
END_INTERFACE
} IDWriteFontCollectionLoaderVtbl;
interface IDWriteFontCollectionLoader {
CONST_VTBL IDWriteFontCollectionLoaderVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontCollectionLoader_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontCollectionLoader_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontCollectionLoader_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontCollectionLoader methods ***/
#define IDWriteFontCollectionLoader_CreateEnumeratorFromKey(This,factory,key,key_size,enumerator) (This)->lpVtbl->CreateEnumeratorFromKey(This,factory,key,key_size,enumerator)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontCollectionLoader_QueryInterface(IDWriteFontCollectionLoader* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontCollectionLoader_AddRef(IDWriteFontCollectionLoader* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontCollectionLoader_Release(IDWriteFontCollectionLoader* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontCollectionLoader methods ***/
static FORCEINLINE HRESULT IDWriteFontCollectionLoader_CreateEnumeratorFromKey(IDWriteFontCollectionLoader* This,IDWriteFactory *factory,const void *key,UINT32 key_size,IDWriteFontFileEnumerator **enumerator) {
return This->lpVtbl->CreateEnumeratorFromKey(This,factory,key,key_size,enumerator);
}
#endif
#endif
#endif
#endif /* __IDWriteFontCollectionLoader_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteLocalizedStrings interface
*/
#ifndef __IDWriteLocalizedStrings_INTERFACE_DEFINED__
#define __IDWriteLocalizedStrings_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteLocalizedStrings, 0x08256209, 0x099a, 0x4b34, 0xb8,0x6d, 0xc2,0x2b,0x11,0x0e,0x77,0x71);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("08256209-099a-4b34-b86d-c22b110e7771")
IDWriteLocalizedStrings : public IUnknown
{
virtual UINT32 STDMETHODCALLTYPE GetCount(
) = 0;
virtual HRESULT STDMETHODCALLTYPE FindLocaleName(
const WCHAR *locale_name,
UINT32 *index,
WINBOOL *exists) = 0;
virtual HRESULT STDMETHODCALLTYPE GetLocaleNameLength(
UINT32 index,
UINT32 *length) = 0;
virtual HRESULT STDMETHODCALLTYPE GetLocaleName(
UINT32 index,
WCHAR *locale_name,
UINT32 size) = 0;
virtual HRESULT STDMETHODCALLTYPE GetStringLength(
UINT32 index,
UINT32 *length) = 0;
virtual HRESULT STDMETHODCALLTYPE GetString(
UINT32 index,
WCHAR *buffer,
UINT32 size) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteLocalizedStrings, 0x08256209, 0x099a, 0x4b34, 0xb8,0x6d, 0xc2,0x2b,0x11,0x0e,0x77,0x71)
#endif
#else
typedef struct IDWriteLocalizedStringsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteLocalizedStrings *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteLocalizedStrings *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteLocalizedStrings *This);
/*** IDWriteLocalizedStrings methods ***/
UINT32 (STDMETHODCALLTYPE *GetCount)(
IDWriteLocalizedStrings *This);
HRESULT (STDMETHODCALLTYPE *FindLocaleName)(
IDWriteLocalizedStrings *This,
const WCHAR *locale_name,
UINT32 *index,
WINBOOL *exists);
HRESULT (STDMETHODCALLTYPE *GetLocaleNameLength)(
IDWriteLocalizedStrings *This,
UINT32 index,
UINT32 *length);
HRESULT (STDMETHODCALLTYPE *GetLocaleName)(
IDWriteLocalizedStrings *This,
UINT32 index,
WCHAR *locale_name,
UINT32 size);
HRESULT (STDMETHODCALLTYPE *GetStringLength)(
IDWriteLocalizedStrings *This,
UINT32 index,
UINT32 *length);
HRESULT (STDMETHODCALLTYPE *GetString)(
IDWriteLocalizedStrings *This,
UINT32 index,
WCHAR *buffer,
UINT32 size);
END_INTERFACE
} IDWriteLocalizedStringsVtbl;
interface IDWriteLocalizedStrings {
CONST_VTBL IDWriteLocalizedStringsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteLocalizedStrings_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteLocalizedStrings_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteLocalizedStrings_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteLocalizedStrings methods ***/
#define IDWriteLocalizedStrings_GetCount(This) (This)->lpVtbl->GetCount(This)
#define IDWriteLocalizedStrings_FindLocaleName(This,locale_name,index,exists) (This)->lpVtbl->FindLocaleName(This,locale_name,index,exists)
#define IDWriteLocalizedStrings_GetLocaleNameLength(This,index,length) (This)->lpVtbl->GetLocaleNameLength(This,index,length)
#define IDWriteLocalizedStrings_GetLocaleName(This,index,locale_name,size) (This)->lpVtbl->GetLocaleName(This,index,locale_name,size)
#define IDWriteLocalizedStrings_GetStringLength(This,index,length) (This)->lpVtbl->GetStringLength(This,index,length)
#define IDWriteLocalizedStrings_GetString(This,index,buffer,size) (This)->lpVtbl->GetString(This,index,buffer,size)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteLocalizedStrings_QueryInterface(IDWriteLocalizedStrings* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteLocalizedStrings_AddRef(IDWriteLocalizedStrings* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteLocalizedStrings_Release(IDWriteLocalizedStrings* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteLocalizedStrings methods ***/
static FORCEINLINE UINT32 IDWriteLocalizedStrings_GetCount(IDWriteLocalizedStrings* This) {
return This->lpVtbl->GetCount(This);
}
static FORCEINLINE HRESULT IDWriteLocalizedStrings_FindLocaleName(IDWriteLocalizedStrings* This,const WCHAR *locale_name,UINT32 *index,WINBOOL *exists) {
return This->lpVtbl->FindLocaleName(This,locale_name,index,exists);
}
static FORCEINLINE HRESULT IDWriteLocalizedStrings_GetLocaleNameLength(IDWriteLocalizedStrings* This,UINT32 index,UINT32 *length) {
return This->lpVtbl->GetLocaleNameLength(This,index,length);
}
static FORCEINLINE HRESULT IDWriteLocalizedStrings_GetLocaleName(IDWriteLocalizedStrings* This,UINT32 index,WCHAR *locale_name,UINT32 size) {
return This->lpVtbl->GetLocaleName(This,index,locale_name,size);
}
static FORCEINLINE HRESULT IDWriteLocalizedStrings_GetStringLength(IDWriteLocalizedStrings* This,UINT32 index,UINT32 *length) {
return This->lpVtbl->GetStringLength(This,index,length);
}
static FORCEINLINE HRESULT IDWriteLocalizedStrings_GetString(IDWriteLocalizedStrings* This,UINT32 index,WCHAR *buffer,UINT32 size) {
return This->lpVtbl->GetString(This,index,buffer,size);
}
#endif
#endif
#endif
#endif /* __IDWriteLocalizedStrings_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteRenderingParams interface
*/
#ifndef __IDWriteRenderingParams_INTERFACE_DEFINED__
#define __IDWriteRenderingParams_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteRenderingParams, 0x2f0da53a, 0x2add, 0x47cd, 0x82,0xee, 0xd9,0xec,0x34,0x68,0x8e,0x75);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("2f0da53a-2add-47cd-82ee-d9ec34688e75")
IDWriteRenderingParams : public IUnknown
{
virtual FLOAT STDMETHODCALLTYPE GetGamma(
) = 0;
virtual FLOAT STDMETHODCALLTYPE GetEnhancedContrast(
) = 0;
virtual FLOAT STDMETHODCALLTYPE GetClearTypeLevel(
) = 0;
virtual DWRITE_PIXEL_GEOMETRY STDMETHODCALLTYPE GetPixelGeometry(
) = 0;
virtual DWRITE_RENDERING_MODE STDMETHODCALLTYPE GetRenderingMode(
) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteRenderingParams, 0x2f0da53a, 0x2add, 0x47cd, 0x82,0xee, 0xd9,0xec,0x34,0x68,0x8e,0x75)
#endif
#else
typedef struct IDWriteRenderingParamsVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteRenderingParams *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteRenderingParams *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteRenderingParams *This);
/*** IDWriteRenderingParams methods ***/
FLOAT (STDMETHODCALLTYPE *GetGamma)(
IDWriteRenderingParams *This);
FLOAT (STDMETHODCALLTYPE *GetEnhancedContrast)(
IDWriteRenderingParams *This);
FLOAT (STDMETHODCALLTYPE *GetClearTypeLevel)(
IDWriteRenderingParams *This);
DWRITE_PIXEL_GEOMETRY (STDMETHODCALLTYPE *GetPixelGeometry)(
IDWriteRenderingParams *This);
DWRITE_RENDERING_MODE (STDMETHODCALLTYPE *GetRenderingMode)(
IDWriteRenderingParams *This);
END_INTERFACE
} IDWriteRenderingParamsVtbl;
interface IDWriteRenderingParams {
CONST_VTBL IDWriteRenderingParamsVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteRenderingParams_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteRenderingParams_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteRenderingParams_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteRenderingParams methods ***/
#define IDWriteRenderingParams_GetGamma(This) (This)->lpVtbl->GetGamma(This)
#define IDWriteRenderingParams_GetEnhancedContrast(This) (This)->lpVtbl->GetEnhancedContrast(This)
#define IDWriteRenderingParams_GetClearTypeLevel(This) (This)->lpVtbl->GetClearTypeLevel(This)
#define IDWriteRenderingParams_GetPixelGeometry(This) (This)->lpVtbl->GetPixelGeometry(This)
#define IDWriteRenderingParams_GetRenderingMode(This) (This)->lpVtbl->GetRenderingMode(This)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteRenderingParams_QueryInterface(IDWriteRenderingParams* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteRenderingParams_AddRef(IDWriteRenderingParams* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteRenderingParams_Release(IDWriteRenderingParams* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteRenderingParams methods ***/
static FORCEINLINE FLOAT IDWriteRenderingParams_GetGamma(IDWriteRenderingParams* This) {
return This->lpVtbl->GetGamma(This);
}
static FORCEINLINE FLOAT IDWriteRenderingParams_GetEnhancedContrast(IDWriteRenderingParams* This) {
return This->lpVtbl->GetEnhancedContrast(This);
}
static FORCEINLINE FLOAT IDWriteRenderingParams_GetClearTypeLevel(IDWriteRenderingParams* This) {
return This->lpVtbl->GetClearTypeLevel(This);
}
static FORCEINLINE DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams_GetPixelGeometry(IDWriteRenderingParams* This) {
return This->lpVtbl->GetPixelGeometry(This);
}
static FORCEINLINE DWRITE_RENDERING_MODE IDWriteRenderingParams_GetRenderingMode(IDWriteRenderingParams* This) {
return This->lpVtbl->GetRenderingMode(This);
}
#endif
#endif
#endif
#endif /* __IDWriteRenderingParams_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontFace interface
*/
#ifndef __IDWriteFontFace_INTERFACE_DEFINED__
#define __IDWriteFontFace_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFace, 0x5f49804d, 0x7024, 0x4d43, 0xbf,0xa9, 0xd2,0x59,0x84,0xf5,0x38,0x49);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("5f49804d-7024-4d43-bfa9-d25984f53849")
IDWriteFontFace : public IUnknown
{
virtual DWRITE_FONT_FACE_TYPE STDMETHODCALLTYPE GetType(
) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFiles(
UINT32 *number_of_files,
IDWriteFontFile **fontfiles) = 0;
virtual UINT32 STDMETHODCALLTYPE GetIndex(
) = 0;
virtual DWRITE_FONT_SIMULATIONS STDMETHODCALLTYPE GetSimulations(
) = 0;
virtual WINBOOL STDMETHODCALLTYPE IsSymbolFont(
) = 0;
virtual void STDMETHODCALLTYPE GetMetrics(
DWRITE_FONT_METRICS *metrics) = 0;
virtual UINT16 STDMETHODCALLTYPE GetGlyphCount(
) = 0;
virtual HRESULT STDMETHODCALLTYPE GetDesignGlyphMetrics(
const UINT16 *glyph_indices,
UINT32 glyph_count,
DWRITE_GLYPH_METRICS *metrics,
WINBOOL is_sideways = FALSE) = 0;
virtual HRESULT STDMETHODCALLTYPE GetGlyphIndices(
const UINT32 *codepoints,
UINT32 count,
UINT16 *glyph_indices) = 0;
virtual HRESULT STDMETHODCALLTYPE TryGetFontTable(
UINT32 table_tag,
const void **table_data,
UINT32 *table_size,
void **context,
WINBOOL *exists) = 0;
virtual void STDMETHODCALLTYPE ReleaseFontTable(
void *table_context) = 0;
virtual HRESULT STDMETHODCALLTYPE GetGlyphRunOutline(
FLOAT emSize,
const UINT16 *glyph_indices,
const FLOAT *glyph_advances,
const DWRITE_GLYPH_OFFSET *glyph_offsets,
UINT32 glyph_count,
WINBOOL is_sideways,
WINBOOL is_rtl,
IDWriteGeometrySink *geometrysink) = 0;
virtual HRESULT STDMETHODCALLTYPE GetRecommendedRenderingMode(
FLOAT emSize,
FLOAT pixels_per_dip,
DWRITE_MEASURING_MODE mode,
IDWriteRenderingParams *params,
DWRITE_RENDERING_MODE *rendering_mode) = 0;
virtual HRESULT STDMETHODCALLTYPE GetGdiCompatibleMetrics(
FLOAT emSize,
FLOAT pixels_per_dip,
const DWRITE_MATRIX *transform,
DWRITE_FONT_METRICS *metrics) = 0;
virtual HRESULT STDMETHODCALLTYPE GetGdiCompatibleGlyphMetrics(
FLOAT emSize,
FLOAT pixels_per_dip,
const DWRITE_MATRIX *transform,
WINBOOL use_gdi_natural,
const UINT16 *glyph_indices,
UINT32 glyph_count,
DWRITE_GLYPH_METRICS *metrics,
WINBOOL is_sideways = FALSE) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFace, 0x5f49804d, 0x7024, 0x4d43, 0xbf,0xa9, 0xd2,0x59,0x84,0xf5,0x38,0x49)
#endif
#else
typedef struct IDWriteFontFaceVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFace *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFace *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFace *This);
/*** IDWriteFontFace methods ***/
DWRITE_FONT_FACE_TYPE (STDMETHODCALLTYPE *GetType)(
IDWriteFontFace *This);
HRESULT (STDMETHODCALLTYPE *GetFiles)(
IDWriteFontFace *This,
UINT32 *number_of_files,
IDWriteFontFile **fontfiles);
UINT32 (STDMETHODCALLTYPE *GetIndex)(
IDWriteFontFace *This);
DWRITE_FONT_SIMULATIONS (STDMETHODCALLTYPE *GetSimulations)(
IDWriteFontFace *This);
WINBOOL (STDMETHODCALLTYPE *IsSymbolFont)(
IDWriteFontFace *This);
void (STDMETHODCALLTYPE *GetMetrics)(
IDWriteFontFace *This,
DWRITE_FONT_METRICS *metrics);
UINT16 (STDMETHODCALLTYPE *GetGlyphCount)(
IDWriteFontFace *This);
HRESULT (STDMETHODCALLTYPE *GetDesignGlyphMetrics)(
IDWriteFontFace *This,
const UINT16 *glyph_indices,
UINT32 glyph_count,
DWRITE_GLYPH_METRICS *metrics,
WINBOOL is_sideways);
HRESULT (STDMETHODCALLTYPE *GetGlyphIndices)(
IDWriteFontFace *This,
const UINT32 *codepoints,
UINT32 count,
UINT16 *glyph_indices);
HRESULT (STDMETHODCALLTYPE *TryGetFontTable)(
IDWriteFontFace *This,
UINT32 table_tag,
const void **table_data,
UINT32 *table_size,
void **context,
WINBOOL *exists);
void (STDMETHODCALLTYPE *ReleaseFontTable)(
IDWriteFontFace *This,
void *table_context);
HRESULT (STDMETHODCALLTYPE *GetGlyphRunOutline)(
IDWriteFontFace *This,
FLOAT emSize,
const UINT16 *glyph_indices,
const FLOAT *glyph_advances,
const DWRITE_GLYPH_OFFSET *glyph_offsets,
UINT32 glyph_count,
WINBOOL is_sideways,
WINBOOL is_rtl,
IDWriteGeometrySink *geometrysink);
HRESULT (STDMETHODCALLTYPE *GetRecommendedRenderingMode)(
IDWriteFontFace *This,
FLOAT emSize,
FLOAT pixels_per_dip,
DWRITE_MEASURING_MODE mode,
IDWriteRenderingParams *params,
DWRITE_RENDERING_MODE *rendering_mode);
HRESULT (STDMETHODCALLTYPE *GetGdiCompatibleMetrics)(
IDWriteFontFace *This,
FLOAT emSize,
FLOAT pixels_per_dip,
const DWRITE_MATRIX *transform,
DWRITE_FONT_METRICS *metrics);
HRESULT (STDMETHODCALLTYPE *GetGdiCompatibleGlyphMetrics)(
IDWriteFontFace *This,
FLOAT emSize,
FLOAT pixels_per_dip,
const DWRITE_MATRIX *transform,
WINBOOL use_gdi_natural,
const UINT16 *glyph_indices,
UINT32 glyph_count,
DWRITE_GLYPH_METRICS *metrics,
WINBOOL is_sideways);
END_INTERFACE
} IDWriteFontFaceVtbl;
interface IDWriteFontFace {
CONST_VTBL IDWriteFontFaceVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFace_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFace_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFace_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontFace methods ***/
#define IDWriteFontFace_GetType(This) (This)->lpVtbl->GetType(This)
#define IDWriteFontFace_GetFiles(This,number_of_files,fontfiles) (This)->lpVtbl->GetFiles(This,number_of_files,fontfiles)
#define IDWriteFontFace_GetIndex(This) (This)->lpVtbl->GetIndex(This)
#define IDWriteFontFace_GetSimulations(This) (This)->lpVtbl->GetSimulations(This)
#define IDWriteFontFace_IsSymbolFont(This) (This)->lpVtbl->IsSymbolFont(This)
#define IDWriteFontFace_GetMetrics(This,metrics) (This)->lpVtbl->GetMetrics(This,metrics)
#define IDWriteFontFace_GetGlyphCount(This) (This)->lpVtbl->GetGlyphCount(This)
#define IDWriteFontFace_GetDesignGlyphMetrics(This,glyph_indices,glyph_count,metrics,is_sideways) (This)->lpVtbl->GetDesignGlyphMetrics(This,glyph_indices,glyph_count,metrics,is_sideways)
#define IDWriteFontFace_GetGlyphIndices(This,codepoints,count,glyph_indices) (This)->lpVtbl->GetGlyphIndices(This,codepoints,count,glyph_indices)
#define IDWriteFontFace_TryGetFontTable(This,table_tag,table_data,table_size,context,exists) (This)->lpVtbl->TryGetFontTable(This,table_tag,table_data,table_size,context,exists)
#define IDWriteFontFace_ReleaseFontTable(This,table_context) (This)->lpVtbl->ReleaseFontTable(This,table_context)
#define IDWriteFontFace_GetGlyphRunOutline(This,emSize,glyph_indices,glyph_advances,glyph_offsets,glyph_count,is_sideways,is_rtl,geometrysink) (This)->lpVtbl->GetGlyphRunOutline(This,emSize,glyph_indices,glyph_advances,glyph_offsets,glyph_count,is_sideways,is_rtl,geometrysink)
#define IDWriteFontFace_GetRecommendedRenderingMode(This,emSize,pixels_per_dip,mode,params,rendering_mode) (This)->lpVtbl->GetRecommendedRenderingMode(This,emSize,pixels_per_dip,mode,params,rendering_mode)
#define IDWriteFontFace_GetGdiCompatibleMetrics(This,emSize,pixels_per_dip,transform,metrics) (This)->lpVtbl->GetGdiCompatibleMetrics(This,emSize,pixels_per_dip,transform,metrics)
#define IDWriteFontFace_GetGdiCompatibleGlyphMetrics(This,emSize,pixels_per_dip,transform,use_gdi_natural,glyph_indices,glyph_count,metrics,is_sideways) (This)->lpVtbl->GetGdiCompatibleGlyphMetrics(This,emSize,pixels_per_dip,transform,use_gdi_natural,glyph_indices,glyph_count,metrics,is_sideways)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFace_QueryInterface(IDWriteFontFace* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFace_AddRef(IDWriteFontFace* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFace_Release(IDWriteFontFace* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontFace methods ***/
static FORCEINLINE DWRITE_FONT_FACE_TYPE IDWriteFontFace_GetType(IDWriteFontFace* This) {
return This->lpVtbl->GetType(This);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetFiles(IDWriteFontFace* This,UINT32 *number_of_files,IDWriteFontFile **fontfiles) {
return This->lpVtbl->GetFiles(This,number_of_files,fontfiles);
}
static FORCEINLINE UINT32 IDWriteFontFace_GetIndex(IDWriteFontFace* This) {
return This->lpVtbl->GetIndex(This);
}
static FORCEINLINE DWRITE_FONT_SIMULATIONS IDWriteFontFace_GetSimulations(IDWriteFontFace* This) {
return This->lpVtbl->GetSimulations(This);
}
static FORCEINLINE WINBOOL IDWriteFontFace_IsSymbolFont(IDWriteFontFace* This) {
return This->lpVtbl->IsSymbolFont(This);
}
static FORCEINLINE void IDWriteFontFace_GetMetrics(IDWriteFontFace* This,DWRITE_FONT_METRICS *metrics) {
This->lpVtbl->GetMetrics(This,metrics);
}
static FORCEINLINE UINT16 IDWriteFontFace_GetGlyphCount(IDWriteFontFace* This) {
return This->lpVtbl->GetGlyphCount(This);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetDesignGlyphMetrics(IDWriteFontFace* This,const UINT16 *glyph_indices,UINT32 glyph_count,DWRITE_GLYPH_METRICS *metrics,WINBOOL is_sideways) {
return This->lpVtbl->GetDesignGlyphMetrics(This,glyph_indices,glyph_count,metrics,is_sideways);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetGlyphIndices(IDWriteFontFace* This,const UINT32 *codepoints,UINT32 count,UINT16 *glyph_indices) {
return This->lpVtbl->GetGlyphIndices(This,codepoints,count,glyph_indices);
}
static FORCEINLINE HRESULT IDWriteFontFace_TryGetFontTable(IDWriteFontFace* This,UINT32 table_tag,const void **table_data,UINT32 *table_size,void **context,WINBOOL *exists) {
return This->lpVtbl->TryGetFontTable(This,table_tag,table_data,table_size,context,exists);
}
static FORCEINLINE void IDWriteFontFace_ReleaseFontTable(IDWriteFontFace* This,void *table_context) {
This->lpVtbl->ReleaseFontTable(This,table_context);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetGlyphRunOutline(IDWriteFontFace* This,FLOAT emSize,const UINT16 *glyph_indices,const FLOAT *glyph_advances,const DWRITE_GLYPH_OFFSET *glyph_offsets,UINT32 glyph_count,WINBOOL is_sideways,WINBOOL is_rtl,IDWriteGeometrySink *geometrysink) {
return This->lpVtbl->GetGlyphRunOutline(This,emSize,glyph_indices,glyph_advances,glyph_offsets,glyph_count,is_sideways,is_rtl,geometrysink);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetRecommendedRenderingMode(IDWriteFontFace* This,FLOAT emSize,FLOAT pixels_per_dip,DWRITE_MEASURING_MODE mode,IDWriteRenderingParams *params,DWRITE_RENDERING_MODE *rendering_mode) {
return This->lpVtbl->GetRecommendedRenderingMode(This,emSize,pixels_per_dip,mode,params,rendering_mode);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetGdiCompatibleMetrics(IDWriteFontFace* This,FLOAT emSize,FLOAT pixels_per_dip,const DWRITE_MATRIX *transform,DWRITE_FONT_METRICS *metrics) {
return This->lpVtbl->GetGdiCompatibleMetrics(This,emSize,pixels_per_dip,transform,metrics);
}
static FORCEINLINE HRESULT IDWriteFontFace_GetGdiCompatibleGlyphMetrics(IDWriteFontFace* This,FLOAT emSize,FLOAT pixels_per_dip,const DWRITE_MATRIX *transform,WINBOOL use_gdi_natural,const UINT16 *glyph_indices,UINT32 glyph_count,DWRITE_GLYPH_METRICS *metrics,WINBOOL is_sideways) {
return This->lpVtbl->GetGdiCompatibleGlyphMetrics(This,emSize,pixels_per_dip,transform,use_gdi_natural,glyph_indices,glyph_count,metrics,is_sideways);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFace_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFont interface
*/
#ifndef __IDWriteFont_INTERFACE_DEFINED__
#define __IDWriteFont_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFont, 0xacd16696, 0x8c14, 0x4f5d, 0x87,0x7e, 0xfe,0x3f,0xc1,0xd3,0x27,0x37);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("acd16696-8c14-4f5d-877e-fe3fc1d32737")
IDWriteFont : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetFontFamily(
IDWriteFontFamily **family) = 0;
virtual DWRITE_FONT_WEIGHT STDMETHODCALLTYPE GetWeight(
) = 0;
virtual DWRITE_FONT_STRETCH STDMETHODCALLTYPE GetStretch(
) = 0;
virtual DWRITE_FONT_STYLE STDMETHODCALLTYPE GetStyle(
) = 0;
virtual WINBOOL STDMETHODCALLTYPE IsSymbolFont(
) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFaceNames(
IDWriteLocalizedStrings **names) = 0;
virtual HRESULT STDMETHODCALLTYPE GetInformationalStrings(
DWRITE_INFORMATIONAL_STRING_ID stringid,
IDWriteLocalizedStrings **strings,
WINBOOL *exists) = 0;
virtual DWRITE_FONT_SIMULATIONS STDMETHODCALLTYPE GetSimulations(
) = 0;
virtual void STDMETHODCALLTYPE GetMetrics(
DWRITE_FONT_METRICS *metrics) = 0;
virtual HRESULT STDMETHODCALLTYPE HasCharacter(
UINT32 value,
WINBOOL *exists) = 0;
virtual HRESULT STDMETHODCALLTYPE CreateFontFace(
IDWriteFontFace **face) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFont, 0xacd16696, 0x8c14, 0x4f5d, 0x87,0x7e, 0xfe,0x3f,0xc1,0xd3,0x27,0x37)
#endif
#else
typedef struct IDWriteFontVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFont *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFont *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFont *This);
/*** IDWriteFont methods ***/
HRESULT (STDMETHODCALLTYPE *GetFontFamily)(
IDWriteFont *This,
IDWriteFontFamily **family);
DWRITE_FONT_WEIGHT (STDMETHODCALLTYPE *GetWeight)(
IDWriteFont *This);
DWRITE_FONT_STRETCH (STDMETHODCALLTYPE *GetStretch)(
IDWriteFont *This);
DWRITE_FONT_STYLE (STDMETHODCALLTYPE *GetStyle)(
IDWriteFont *This);
WINBOOL (STDMETHODCALLTYPE *IsSymbolFont)(
IDWriteFont *This);
HRESULT (STDMETHODCALLTYPE *GetFaceNames)(
IDWriteFont *This,
IDWriteLocalizedStrings **names);
HRESULT (STDMETHODCALLTYPE *GetInformationalStrings)(
IDWriteFont *This,
DWRITE_INFORMATIONAL_STRING_ID stringid,
IDWriteLocalizedStrings **strings,
WINBOOL *exists);
DWRITE_FONT_SIMULATIONS (STDMETHODCALLTYPE *GetSimulations)(
IDWriteFont *This);
void (STDMETHODCALLTYPE *GetMetrics)(
IDWriteFont *This,
DWRITE_FONT_METRICS *metrics);
HRESULT (STDMETHODCALLTYPE *HasCharacter)(
IDWriteFont *This,
UINT32 value,
WINBOOL *exists);
HRESULT (STDMETHODCALLTYPE *CreateFontFace)(
IDWriteFont *This,
IDWriteFontFace **face);
END_INTERFACE
} IDWriteFontVtbl;
interface IDWriteFont {
CONST_VTBL IDWriteFontVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFont_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFont_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFont_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFont methods ***/
#define IDWriteFont_GetFontFamily(This,family) (This)->lpVtbl->GetFontFamily(This,family)
#define IDWriteFont_GetWeight(This) (This)->lpVtbl->GetWeight(This)
#define IDWriteFont_GetStretch(This) (This)->lpVtbl->GetStretch(This)
#define IDWriteFont_GetStyle(This) (This)->lpVtbl->GetStyle(This)
#define IDWriteFont_IsSymbolFont(This) (This)->lpVtbl->IsSymbolFont(This)
#define IDWriteFont_GetFaceNames(This,names) (This)->lpVtbl->GetFaceNames(This,names)
#define IDWriteFont_GetInformationalStrings(This,stringid,strings,exists) (This)->lpVtbl->GetInformationalStrings(This,stringid,strings,exists)
#define IDWriteFont_GetSimulations(This) (This)->lpVtbl->GetSimulations(This)
#define IDWriteFont_GetMetrics(This,metrics) (This)->lpVtbl->GetMetrics(This,metrics)
#define IDWriteFont_HasCharacter(This,value,exists) (This)->lpVtbl->HasCharacter(This,value,exists)
#define IDWriteFont_CreateFontFace(This,face) (This)->lpVtbl->CreateFontFace(This,face)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFont_QueryInterface(IDWriteFont* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFont_AddRef(IDWriteFont* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFont_Release(IDWriteFont* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFont methods ***/
static FORCEINLINE HRESULT IDWriteFont_GetFontFamily(IDWriteFont* This,IDWriteFontFamily **family) {
return This->lpVtbl->GetFontFamily(This,family);
}
static FORCEINLINE DWRITE_FONT_WEIGHT IDWriteFont_GetWeight(IDWriteFont* This) {
return This->lpVtbl->GetWeight(This);
}
static FORCEINLINE DWRITE_FONT_STRETCH IDWriteFont_GetStretch(IDWriteFont* This) {
return This->lpVtbl->GetStretch(This);
}
static FORCEINLINE DWRITE_FONT_STYLE IDWriteFont_GetStyle(IDWriteFont* This) {
return This->lpVtbl->GetStyle(This);
}
static FORCEINLINE WINBOOL IDWriteFont_IsSymbolFont(IDWriteFont* This) {
return This->lpVtbl->IsSymbolFont(This);
}
static FORCEINLINE HRESULT IDWriteFont_GetFaceNames(IDWriteFont* This,IDWriteLocalizedStrings **names) {
return This->lpVtbl->GetFaceNames(This,names);
}
static FORCEINLINE HRESULT IDWriteFont_GetInformationalStrings(IDWriteFont* This,DWRITE_INFORMATIONAL_STRING_ID stringid,IDWriteLocalizedStrings **strings,WINBOOL *exists) {
return This->lpVtbl->GetInformationalStrings(This,stringid,strings,exists);
}
static FORCEINLINE DWRITE_FONT_SIMULATIONS IDWriteFont_GetSimulations(IDWriteFont* This) {
return This->lpVtbl->GetSimulations(This);
}
static FORCEINLINE void IDWriteFont_GetMetrics(IDWriteFont* This,DWRITE_FONT_METRICS *metrics) {
This->lpVtbl->GetMetrics(This,metrics);
}
static FORCEINLINE HRESULT IDWriteFont_HasCharacter(IDWriteFont* This,UINT32 value,WINBOOL *exists) {
return This->lpVtbl->HasCharacter(This,value,exists);
}
static FORCEINLINE HRESULT IDWriteFont_CreateFontFace(IDWriteFont* This,IDWriteFontFace **face) {
return This->lpVtbl->CreateFontFace(This,face);
}
#endif
#endif
#endif
#endif /* __IDWriteFont_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontList interface
*/
#ifndef __IDWriteFontList_INTERFACE_DEFINED__
#define __IDWriteFontList_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontList, 0x1a0d8438, 0x1d97, 0x4ec1, 0xae,0xf9, 0xa2,0xfb,0x86,0xed,0x6a,0xcb);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb")
IDWriteFontList : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE GetFontCollection(
IDWriteFontCollection **collection) = 0;
virtual UINT32 STDMETHODCALLTYPE GetFontCount(
) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFont(
UINT32 index,
IDWriteFont **font) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontList, 0x1a0d8438, 0x1d97, 0x4ec1, 0xae,0xf9, 0xa2,0xfb,0x86,0xed,0x6a,0xcb)
#endif
#else
typedef struct IDWriteFontListVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontList *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontList *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontList *This);
/*** IDWriteFontList methods ***/
HRESULT (STDMETHODCALLTYPE *GetFontCollection)(
IDWriteFontList *This,
IDWriteFontCollection **collection);
UINT32 (STDMETHODCALLTYPE *GetFontCount)(
IDWriteFontList *This);
HRESULT (STDMETHODCALLTYPE *GetFont)(
IDWriteFontList *This,
UINT32 index,
IDWriteFont **font);
END_INTERFACE
} IDWriteFontListVtbl;
interface IDWriteFontList {
CONST_VTBL IDWriteFontListVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontList_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontList_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontList methods ***/
#define IDWriteFontList_GetFontCollection(This,collection) (This)->lpVtbl->GetFontCollection(This,collection)
#define IDWriteFontList_GetFontCount(This) (This)->lpVtbl->GetFontCount(This)
#define IDWriteFontList_GetFont(This,index,font) (This)->lpVtbl->GetFont(This,index,font)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontList_QueryInterface(IDWriteFontList* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontList_AddRef(IDWriteFontList* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontList_Release(IDWriteFontList* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontList methods ***/
static FORCEINLINE HRESULT IDWriteFontList_GetFontCollection(IDWriteFontList* This,IDWriteFontCollection **collection) {
return This->lpVtbl->GetFontCollection(This,collection);
}
static FORCEINLINE UINT32 IDWriteFontList_GetFontCount(IDWriteFontList* This) {
return This->lpVtbl->GetFontCount(This);
}
static FORCEINLINE HRESULT IDWriteFontList_GetFont(IDWriteFontList* This,UINT32 index,IDWriteFont **font) {
return This->lpVtbl->GetFont(This,index,font);
}
#endif
#endif
#endif
#endif /* __IDWriteFontList_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontFamily interface
*/
#ifndef __IDWriteFontFamily_INTERFACE_DEFINED__
#define __IDWriteFontFamily_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontFamily, 0xda20d8ef, 0x812a, 0x4c43, 0x98,0x02, 0x62,0xec,0x4a,0xbd,0x7a,0xdd);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("da20d8ef-812a-4c43-9802-62ec4abd7add")
IDWriteFontFamily : public IDWriteFontList
{
virtual HRESULT STDMETHODCALLTYPE GetFamilyNames(
IDWriteLocalizedStrings **names) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFirstMatchingFont(
DWRITE_FONT_WEIGHT weight,
DWRITE_FONT_STRETCH stretch,
DWRITE_FONT_STYLE style,
IDWriteFont **font) = 0;
virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts(
DWRITE_FONT_WEIGHT weight,
DWRITE_FONT_STRETCH stretch,
DWRITE_FONT_STYLE style,
IDWriteFontList **fonts) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontFamily, 0xda20d8ef, 0x812a, 0x4c43, 0x98,0x02, 0x62,0xec,0x4a,0xbd,0x7a,0xdd)
#endif
#else
typedef struct IDWriteFontFamilyVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontFamily *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontFamily *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontFamily *This);
/*** IDWriteFontList methods ***/
HRESULT (STDMETHODCALLTYPE *GetFontCollection)(
IDWriteFontFamily *This,
IDWriteFontCollection **collection);
UINT32 (STDMETHODCALLTYPE *GetFontCount)(
IDWriteFontFamily *This);
HRESULT (STDMETHODCALLTYPE *GetFont)(
IDWriteFontFamily *This,
UINT32 index,
IDWriteFont **font);
/*** IDWriteFontFamily methods ***/
HRESULT (STDMETHODCALLTYPE *GetFamilyNames)(
IDWriteFontFamily *This,
IDWriteLocalizedStrings **names);
HRESULT (STDMETHODCALLTYPE *GetFirstMatchingFont)(
IDWriteFontFamily *This,
DWRITE_FONT_WEIGHT weight,
DWRITE_FONT_STRETCH stretch,
DWRITE_FONT_STYLE style,
IDWriteFont **font);
HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)(
IDWriteFontFamily *This,
DWRITE_FONT_WEIGHT weight,
DWRITE_FONT_STRETCH stretch,
DWRITE_FONT_STYLE style,
IDWriteFontList **fonts);
END_INTERFACE
} IDWriteFontFamilyVtbl;
interface IDWriteFontFamily {
CONST_VTBL IDWriteFontFamilyVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontFamily_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontFamily_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontFamily_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontList methods ***/
#define IDWriteFontFamily_GetFontCollection(This,collection) (This)->lpVtbl->GetFontCollection(This,collection)
#define IDWriteFontFamily_GetFontCount(This) (This)->lpVtbl->GetFontCount(This)
#define IDWriteFontFamily_GetFont(This,index,font) (This)->lpVtbl->GetFont(This,index,font)
/*** IDWriteFontFamily methods ***/
#define IDWriteFontFamily_GetFamilyNames(This,names) (This)->lpVtbl->GetFamilyNames(This,names)
#define IDWriteFontFamily_GetFirstMatchingFont(This,weight,stretch,style,font) (This)->lpVtbl->GetFirstMatchingFont(This,weight,stretch,style,font)
#define IDWriteFontFamily_GetMatchingFonts(This,weight,stretch,style,fonts) (This)->lpVtbl->GetMatchingFonts(This,weight,stretch,style,fonts)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontFamily_QueryInterface(IDWriteFontFamily* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontFamily_AddRef(IDWriteFontFamily* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontFamily_Release(IDWriteFontFamily* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontList methods ***/
static FORCEINLINE HRESULT IDWriteFontFamily_GetFontCollection(IDWriteFontFamily* This,IDWriteFontCollection **collection) {
return This->lpVtbl->GetFontCollection(This,collection);
}
static FORCEINLINE UINT32 IDWriteFontFamily_GetFontCount(IDWriteFontFamily* This) {
return This->lpVtbl->GetFontCount(This);
}
static FORCEINLINE HRESULT IDWriteFontFamily_GetFont(IDWriteFontFamily* This,UINT32 index,IDWriteFont **font) {
return This->lpVtbl->GetFont(This,index,font);
}
/*** IDWriteFontFamily methods ***/
static FORCEINLINE HRESULT IDWriteFontFamily_GetFamilyNames(IDWriteFontFamily* This,IDWriteLocalizedStrings **names) {
return This->lpVtbl->GetFamilyNames(This,names);
}
static FORCEINLINE HRESULT IDWriteFontFamily_GetFirstMatchingFont(IDWriteFontFamily* This,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFont **font) {
return This->lpVtbl->GetFirstMatchingFont(This,weight,stretch,style,font);
}
static FORCEINLINE HRESULT IDWriteFontFamily_GetMatchingFonts(IDWriteFontFamily* This,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFontList **fonts) {
return This->lpVtbl->GetMatchingFonts(This,weight,stretch,style,fonts);
}
#endif
#endif
#endif
#endif /* __IDWriteFontFamily_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteFontCollection interface
*/
#ifndef __IDWriteFontCollection_INTERFACE_DEFINED__
#define __IDWriteFontCollection_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteFontCollection, 0xa84cee02, 0x3eea, 0x4eee, 0xa8,0x27, 0x87,0xc1,0xa0,0x2a,0x0f,0xcc);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("a84cee02-3eea-4eee-a827-87c1a02a0fcc")
IDWriteFontCollection : public IUnknown
{
virtual UINT32 STDMETHODCALLTYPE GetFontFamilyCount(
) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFontFamily(
UINT32 index,
IDWriteFontFamily **family) = 0;
virtual HRESULT STDMETHODCALLTYPE FindFamilyName(
const WCHAR *name,
UINT32 *index,
WINBOOL *exists) = 0;
virtual HRESULT STDMETHODCALLTYPE GetFontFromFontFace(
IDWriteFontFace *face,
IDWriteFont **font) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteFontCollection, 0xa84cee02, 0x3eea, 0x4eee, 0xa8,0x27, 0x87,0xc1,0xa0,0x2a,0x0f,0xcc)
#endif
#else
typedef struct IDWriteFontCollectionVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteFontCollection *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteFontCollection *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteFontCollection *This);
/*** IDWriteFontCollection methods ***/
UINT32 (STDMETHODCALLTYPE *GetFontFamilyCount)(
IDWriteFontCollection *This);
HRESULT (STDMETHODCALLTYPE *GetFontFamily)(
IDWriteFontCollection *This,
UINT32 index,
IDWriteFontFamily **family);
HRESULT (STDMETHODCALLTYPE *FindFamilyName)(
IDWriteFontCollection *This,
const WCHAR *name,
UINT32 *index,
WINBOOL *exists);
HRESULT (STDMETHODCALLTYPE *GetFontFromFontFace)(
IDWriteFontCollection *This,
IDWriteFontFace *face,
IDWriteFont **font);
END_INTERFACE
} IDWriteFontCollectionVtbl;
interface IDWriteFontCollection {
CONST_VTBL IDWriteFontCollectionVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWriteFontCollection_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWriteFontCollection_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWriteFontCollection_Release(This) (This)->lpVtbl->Release(This)
/*** IDWriteFontCollection methods ***/
#define IDWriteFontCollection_GetFontFamilyCount(This) (This)->lpVtbl->GetFontFamilyCount(This)
#define IDWriteFontCollection_GetFontFamily(This,index,family) (This)->lpVtbl->GetFontFamily(This,index,family)
#define IDWriteFontCollection_FindFamilyName(This,name,index,exists) (This)->lpVtbl->FindFamilyName(This,name,index,exists)
#define IDWriteFontCollection_GetFontFromFontFace(This,face,font) (This)->lpVtbl->GetFontFromFontFace(This,face,font)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWriteFontCollection_QueryInterface(IDWriteFontCollection* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWriteFontCollection_AddRef(IDWriteFontCollection* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWriteFontCollection_Release(IDWriteFontCollection* This) {
return This->lpVtbl->Release(This);
}
/*** IDWriteFontCollection methods ***/
static FORCEINLINE UINT32 IDWriteFontCollection_GetFontFamilyCount(IDWriteFontCollection* This) {
return This->lpVtbl->GetFontFamilyCount(This);
}
static FORCEINLINE HRESULT IDWriteFontCollection_GetFontFamily(IDWriteFontCollection* This,UINT32 index,IDWriteFontFamily **family) {
return This->lpVtbl->GetFontFamily(This,index,family);
}
static FORCEINLINE HRESULT IDWriteFontCollection_FindFamilyName(IDWriteFontCollection* This,const WCHAR *name,UINT32 *index,WINBOOL *exists) {
return This->lpVtbl->FindFamilyName(This,name,index,exists);
}
static FORCEINLINE HRESULT IDWriteFontCollection_GetFontFromFontFace(IDWriteFontCollection* This,IDWriteFontFace *face,IDWriteFont **font) {
return This->lpVtbl->GetFontFromFontFace(This,face,font);
}
#endif
#endif
#endif
#endif /* __IDWriteFontCollection_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWritePixelSnapping interface
*/
#ifndef __IDWritePixelSnapping_INTERFACE_DEFINED__
#define __IDWritePixelSnapping_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWritePixelSnapping, 0xeaf3a2da, 0xecf4, 0x4d24, 0xb6,0x44, 0xb3,0x4f,0x68,0x42,0x02,0x4b);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("eaf3a2da-ecf4-4d24-b644-b34f6842024b")
IDWritePixelSnapping : public IUnknown
{
virtual HRESULT STDMETHODCALLTYPE IsPixelSnappingDisabled(
void *client_drawingcontext,
WINBOOL *disabled) = 0;
virtual HRESULT STDMETHODCALLTYPE GetCurrentTransform(
void *client_drawingcontext,
DWRITE_MATRIX *transform) = 0;
virtual HRESULT STDMETHODCALLTYPE GetPixelsPerDip(
void *client_drawingcontext,
FLOAT *pixels_per_dip) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWritePixelSnapping, 0xeaf3a2da, 0xecf4, 0x4d24, 0xb6,0x44, 0xb3,0x4f,0x68,0x42,0x02,0x4b)
#endif
#else
typedef struct IDWritePixelSnappingVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWritePixelSnapping *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWritePixelSnapping *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWritePixelSnapping *This);
/*** IDWritePixelSnapping methods ***/
HRESULT (STDMETHODCALLTYPE *IsPixelSnappingDisabled)(
IDWritePixelSnapping *This,
void *client_drawingcontext,
WINBOOL *disabled);
HRESULT (STDMETHODCALLTYPE *GetCurrentTransform)(
IDWritePixelSnapping *This,
void *client_drawingcontext,
DWRITE_MATRIX *transform);
HRESULT (STDMETHODCALLTYPE *GetPixelsPerDip)(
IDWritePixelSnapping *This,
void *client_drawingcontext,
FLOAT *pixels_per_dip);
END_INTERFACE
} IDWritePixelSnappingVtbl;
interface IDWritePixelSnapping {
CONST_VTBL IDWritePixelSnappingVtbl* lpVtbl;
};
#ifdef COBJMACROS
#ifndef WIDL_C_INLINE_WRAPPERS
/*** IUnknown methods ***/
#define IDWritePixelSnapping_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject)
#define IDWritePixelSnapping_AddRef(This) (This)->lpVtbl->AddRef(This)
#define IDWritePixelSnapping_Release(This) (This)->lpVtbl->Release(This)
/*** IDWritePixelSnapping methods ***/
#define IDWritePixelSnapping_IsPixelSnappingDisabled(This,client_drawingcontext,disabled) (This)->lpVtbl->IsPixelSnappingDisabled(This,client_drawingcontext,disabled)
#define IDWritePixelSnapping_GetCurrentTransform(This,client_drawingcontext,transform) (This)->lpVtbl->GetCurrentTransform(This,client_drawingcontext,transform)
#define IDWritePixelSnapping_GetPixelsPerDip(This,client_drawingcontext,pixels_per_dip) (This)->lpVtbl->GetPixelsPerDip(This,client_drawingcontext,pixels_per_dip)
#else
/*** IUnknown methods ***/
static FORCEINLINE HRESULT IDWritePixelSnapping_QueryInterface(IDWritePixelSnapping* This,REFIID riid,void **ppvObject) {
return This->lpVtbl->QueryInterface(This,riid,ppvObject);
}
static FORCEINLINE ULONG IDWritePixelSnapping_AddRef(IDWritePixelSnapping* This) {
return This->lpVtbl->AddRef(This);
}
static FORCEINLINE ULONG IDWritePixelSnapping_Release(IDWritePixelSnapping* This) {
return This->lpVtbl->Release(This);
}
/*** IDWritePixelSnapping methods ***/
static FORCEINLINE HRESULT IDWritePixelSnapping_IsPixelSnappingDisabled(IDWritePixelSnapping* This,void *client_drawingcontext,WINBOOL *disabled) {
return This->lpVtbl->IsPixelSnappingDisabled(This,client_drawingcontext,disabled);
}
static FORCEINLINE HRESULT IDWritePixelSnapping_GetCurrentTransform(IDWritePixelSnapping* This,void *client_drawingcontext,DWRITE_MATRIX *transform) {
return This->lpVtbl->GetCurrentTransform(This,client_drawingcontext,transform);
}
static FORCEINLINE HRESULT IDWritePixelSnapping_GetPixelsPerDip(IDWritePixelSnapping* This,void *client_drawingcontext,FLOAT *pixels_per_dip) {
return This->lpVtbl->GetPixelsPerDip(This,client_drawingcontext,pixels_per_dip);
}
#endif
#endif
#endif
#endif /* __IDWritePixelSnapping_INTERFACE_DEFINED__ */
/*****************************************************************************
* IDWriteTextRenderer interface
*/
#ifndef __IDWriteTextRenderer_INTERFACE_DEFINED__
#define __IDWriteTextRenderer_INTERFACE_DEFINED__
DEFINE_GUID(IID_IDWriteTextRenderer, 0xef8a8135, 0x5cc6, 0x45fe, 0x88,0x25, 0xc5,0xa0,0x72,0x4e,0xb8,0x19);
#if defined(__cplusplus) && !defined(CINTERFACE)
MIDL_INTERFACE("ef8a8135-5cc6-45fe-8825-c5a0724eb819")
IDWriteTextRenderer : public IDWritePixelSnapping
{
virtual HRESULT STDMETHODCALLTYPE DrawGlyphRun(
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
DWRITE_MEASURING_MODE mode,
const DWRITE_GLYPH_RUN *glyph_run,
const DWRITE_GLYPH_RUN_DESCRIPTION *run_descr,
IUnknown *drawing_effect) = 0;
virtual HRESULT STDMETHODCALLTYPE DrawUnderline(
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
const DWRITE_UNDERLINE *underline,
IUnknown *drawing_effect) = 0;
virtual HRESULT STDMETHODCALLTYPE DrawStrikethrough(
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
const DWRITE_STRIKETHROUGH *strikethrough,
IUnknown *drawing_effect) = 0;
virtual HRESULT STDMETHODCALLTYPE DrawInlineObject(
void *client_drawingcontext,
FLOAT originX,
FLOAT originY,
IDWriteInlineObject *object,
WINBOOL is_sideways,
WINBOOL is_rtl,
IUnknown *drawing_effect) = 0;
};
#ifdef __CRT_UUID_DECL
__CRT_UUID_DECL(IDWriteTextRenderer, 0xef8a8135, 0x5cc6, 0x45fe, 0x88,0x25, 0xc5,0xa0,0x72,0x4e,0xb8,0x19)
#endif
#else
typedef struct IDWriteTextRendererVtbl {
BEGIN_INTERFACE
/*** IUnknown methods ***/
HRESULT (STDMETHODCALLTYPE *QueryInterface)(
IDWriteTextRenderer *This,
REFIID riid,
void **ppvObject);
ULONG (STDMETHODCALLTYPE *AddRef)(
IDWriteTextRenderer *This);
ULONG (STDMETHODCALLTYPE *Release)(
IDWriteTextRenderer *This);
/*** IDWritePixelSnapping methods ***/
HRESULT (STDMETHODCALLTYPE *IsPixelSnappingDisabled)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
WINBOOL *disabled);
HRESULT (STDMETHODCALLTYPE *GetCurrentTransform)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
DWRITE_MATRIX *transform);
HRESULT (STDMETHODCALLTYPE *GetPixelsPerDip)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
FLOAT *pixels_per_dip);
/*** IDWriteTextRenderer methods ***/
HRESULT (STDMETHODCALLTYPE *DrawGlyphRun)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
DWRITE_MEASURING_MODE mode,
const DWRITE_GLYPH_RUN *glyph_run,
const DWRITE_GLYPH_RUN_DESCRIPTION *run_descr,
IUnknown *drawing_effect);
HRESULT (STDMETHODCALLTYPE *DrawUnderline)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
const DWRITE_UNDERLINE *underline,
IUnknown *drawing_effect);
HRESULT (STDMETHODCALLTYPE *DrawStrikethrough)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
FLOAT baselineOriginX,
FLOAT baselineOriginY,
const DWRITE_STRIKETHROUGH *strikethrough,
IUnknown *drawing_effect);
HRESULT (STDMETHODCALLTYPE *DrawInlineObject)(
IDWriteTextRenderer *This,
void *client_drawingcontext,
FLOAT originX,
FLOAT originY,
IDWriteInlineObject *object,
WINBOOL is_sideways,
WINBOOL is_rtl,
IUnknown *drawing_effect);