| /*** Autogenerated by WIDL 6.3 from include/dwrite_3.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_3_h__ |
| #define __dwrite_3_h__ |
| |
| /* Forward declarations */ |
| |
| #ifndef __IDWriteFontDownloadListener_FWD_DEFINED__ |
| #define __IDWriteFontDownloadListener_FWD_DEFINED__ |
| typedef interface IDWriteFontDownloadListener IDWriteFontDownloadListener; |
| #ifdef __cplusplus |
| interface IDWriteFontDownloadListener; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontDownloadQueue_FWD_DEFINED__ |
| #define __IDWriteFontDownloadQueue_FWD_DEFINED__ |
| typedef interface IDWriteFontDownloadQueue IDWriteFontDownloadQueue; |
| #ifdef __cplusplus |
| interface IDWriteFontDownloadQueue; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteRenderingParams3_FWD_DEFINED__ |
| #define __IDWriteRenderingParams3_FWD_DEFINED__ |
| typedef interface IDWriteRenderingParams3 IDWriteRenderingParams3; |
| #ifdef __cplusplus |
| interface IDWriteRenderingParams3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteStringList_FWD_DEFINED__ |
| #define __IDWriteStringList_FWD_DEFINED__ |
| typedef interface IDWriteStringList IDWriteStringList; |
| #ifdef __cplusplus |
| interface IDWriteStringList; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSet_FWD_DEFINED__ |
| #define __IDWriteFontSet_FWD_DEFINED__ |
| typedef interface IDWriteFontSet IDWriteFontSet; |
| #ifdef __cplusplus |
| interface IDWriteFontSet; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontResource_FWD_DEFINED__ |
| #define __IDWriteFontResource_FWD_DEFINED__ |
| typedef interface IDWriteFontResource IDWriteFontResource; |
| #ifdef __cplusplus |
| interface IDWriteFontResource; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSet1_FWD_DEFINED__ |
| #define __IDWriteFontSet1_FWD_DEFINED__ |
| typedef interface IDWriteFontSet1 IDWriteFontSet1; |
| #ifdef __cplusplus |
| interface IDWriteFontSet1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFont3_FWD_DEFINED__ |
| #define __IDWriteFont3_FWD_DEFINED__ |
| typedef interface IDWriteFont3 IDWriteFont3; |
| #ifdef __cplusplus |
| interface IDWriteFont3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFamily1_FWD_DEFINED__ |
| #define __IDWriteFontFamily1_FWD_DEFINED__ |
| typedef interface IDWriteFontFamily1 IDWriteFontFamily1; |
| #ifdef __cplusplus |
| interface IDWriteFontFamily1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFamily2_FWD_DEFINED__ |
| #define __IDWriteFontFamily2_FWD_DEFINED__ |
| typedef interface IDWriteFontFamily2 IDWriteFontFamily2; |
| #ifdef __cplusplus |
| interface IDWriteFontFamily2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontCollection1_FWD_DEFINED__ |
| #define __IDWriteFontCollection1_FWD_DEFINED__ |
| typedef interface IDWriteFontCollection1 IDWriteFontCollection1; |
| #ifdef __cplusplus |
| interface IDWriteFontCollection1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontCollection2_FWD_DEFINED__ |
| #define __IDWriteFontCollection2_FWD_DEFINED__ |
| typedef interface IDWriteFontCollection2 IDWriteFontCollection2; |
| #ifdef __cplusplus |
| interface IDWriteFontCollection2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontCollection3_FWD_DEFINED__ |
| #define __IDWriteFontCollection3_FWD_DEFINED__ |
| typedef interface IDWriteFontCollection3 IDWriteFontCollection3; |
| #ifdef __cplusplus |
| interface IDWriteFontCollection3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFaceReference_FWD_DEFINED__ |
| #define __IDWriteFontFaceReference_FWD_DEFINED__ |
| typedef interface IDWriteFontFaceReference IDWriteFontFaceReference; |
| #ifdef __cplusplus |
| interface IDWriteFontFaceReference; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFaceReference1_FWD_DEFINED__ |
| #define __IDWriteFontFaceReference1_FWD_DEFINED__ |
| typedef interface IDWriteFontFaceReference1 IDWriteFontFaceReference1; |
| #ifdef __cplusplus |
| interface IDWriteFontFaceReference1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontList1_FWD_DEFINED__ |
| #define __IDWriteFontList1_FWD_DEFINED__ |
| typedef interface IDWriteFontList1 IDWriteFontList1; |
| #ifdef __cplusplus |
| interface IDWriteFontList1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontList2_FWD_DEFINED__ |
| #define __IDWriteFontList2_FWD_DEFINED__ |
| typedef interface IDWriteFontList2 IDWriteFontList2; |
| #ifdef __cplusplus |
| interface IDWriteFontList2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSet2_FWD_DEFINED__ |
| #define __IDWriteFontSet2_FWD_DEFINED__ |
| typedef interface IDWriteFontSet2 IDWriteFontSet2; |
| #ifdef __cplusplus |
| interface IDWriteFontSet2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSet3_FWD_DEFINED__ |
| #define __IDWriteFontSet3_FWD_DEFINED__ |
| typedef interface IDWriteFontSet3 IDWriteFontSet3; |
| #ifdef __cplusplus |
| interface IDWriteFontSet3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFace3_FWD_DEFINED__ |
| #define __IDWriteFontFace3_FWD_DEFINED__ |
| typedef interface IDWriteFontFace3 IDWriteFontFace3; |
| #ifdef __cplusplus |
| interface IDWriteFontFace3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteTextFormat2_FWD_DEFINED__ |
| #define __IDWriteTextFormat2_FWD_DEFINED__ |
| typedef interface IDWriteTextFormat2 IDWriteTextFormat2; |
| #ifdef __cplusplus |
| interface IDWriteTextFormat2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteTextFormat3_FWD_DEFINED__ |
| #define __IDWriteTextFormat3_FWD_DEFINED__ |
| typedef interface IDWriteTextFormat3 IDWriteTextFormat3; |
| #ifdef __cplusplus |
| interface IDWriteTextFormat3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteTextLayout3_FWD_DEFINED__ |
| #define __IDWriteTextLayout3_FWD_DEFINED__ |
| typedef interface IDWriteTextLayout3 IDWriteTextLayout3; |
| #ifdef __cplusplus |
| interface IDWriteTextLayout3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteTextLayout4_FWD_DEFINED__ |
| #define __IDWriteTextLayout4_FWD_DEFINED__ |
| typedef interface IDWriteTextLayout4 IDWriteTextLayout4; |
| #ifdef __cplusplus |
| interface IDWriteTextLayout4; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFallback1_FWD_DEFINED__ |
| #define __IDWriteFontFallback1_FWD_DEFINED__ |
| typedef interface IDWriteFontFallback1 IDWriteFontFallback1; |
| #ifdef __cplusplus |
| interface IDWriteFontFallback1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteGdiInterop1_FWD_DEFINED__ |
| #define __IDWriteGdiInterop1_FWD_DEFINED__ |
| typedef interface IDWriteGdiInterop1 IDWriteGdiInterop1; |
| #ifdef __cplusplus |
| interface IDWriteGdiInterop1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSetBuilder_FWD_DEFINED__ |
| #define __IDWriteFontSetBuilder_FWD_DEFINED__ |
| typedef interface IDWriteFontSetBuilder IDWriteFontSetBuilder; |
| #ifdef __cplusplus |
| interface IDWriteFontSetBuilder; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSetBuilder1_FWD_DEFINED__ |
| #define __IDWriteFontSetBuilder1_FWD_DEFINED__ |
| typedef interface IDWriteFontSetBuilder1 IDWriteFontSetBuilder1; |
| #ifdef __cplusplus |
| interface IDWriteFontSetBuilder1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSetBuilder2_FWD_DEFINED__ |
| #define __IDWriteFontSetBuilder2_FWD_DEFINED__ |
| typedef interface IDWriteFontSetBuilder2 IDWriteFontSetBuilder2; |
| #ifdef __cplusplus |
| interface IDWriteFontSetBuilder2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFactory3_FWD_DEFINED__ |
| #define __IDWriteFactory3_FWD_DEFINED__ |
| typedef interface IDWriteFactory3 IDWriteFactory3; |
| #ifdef __cplusplus |
| interface IDWriteFactory3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFace4_FWD_DEFINED__ |
| #define __IDWriteFontFace4_FWD_DEFINED__ |
| typedef interface IDWriteFontFace4 IDWriteFontFace4; |
| #ifdef __cplusplus |
| interface IDWriteFontFace4; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFace5_FWD_DEFINED__ |
| #define __IDWriteFontFace5_FWD_DEFINED__ |
| typedef interface IDWriteFontFace5 IDWriteFontFace5; |
| #ifdef __cplusplus |
| interface IDWriteFontFace5; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteColorGlyphRunEnumerator1_FWD_DEFINED__ |
| #define __IDWriteColorGlyphRunEnumerator1_FWD_DEFINED__ |
| typedef interface IDWriteColorGlyphRunEnumerator1 IDWriteColorGlyphRunEnumerator1; |
| #ifdef __cplusplus |
| interface IDWriteColorGlyphRunEnumerator1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFactory4_FWD_DEFINED__ |
| #define __IDWriteFactory4_FWD_DEFINED__ |
| typedef interface IDWriteFactory4 IDWriteFactory4; |
| #ifdef __cplusplus |
| interface IDWriteFactory4; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteAsyncResult_FWD_DEFINED__ |
| #define __IDWriteAsyncResult_FWD_DEFINED__ |
| typedef interface IDWriteAsyncResult IDWriteAsyncResult; |
| #ifdef __cplusplus |
| interface IDWriteAsyncResult; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteRemoteFontFileStream_FWD_DEFINED__ |
| #define __IDWriteRemoteFontFileStream_FWD_DEFINED__ |
| typedef interface IDWriteRemoteFontFileStream IDWriteRemoteFontFileStream; |
| #ifdef __cplusplus |
| interface IDWriteRemoteFontFileStream; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteRemoteFontFileLoader_FWD_DEFINED__ |
| #define __IDWriteRemoteFontFileLoader_FWD_DEFINED__ |
| typedef interface IDWriteRemoteFontFileLoader IDWriteRemoteFontFileLoader; |
| #ifdef __cplusplus |
| interface IDWriteRemoteFontFileLoader; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteInMemoryFontFileLoader_FWD_DEFINED__ |
| #define __IDWriteInMemoryFontFileLoader_FWD_DEFINED__ |
| typedef interface IDWriteInMemoryFontFileLoader IDWriteInMemoryFontFileLoader; |
| #ifdef __cplusplus |
| interface IDWriteInMemoryFontFileLoader; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFactory5_FWD_DEFINED__ |
| #define __IDWriteFactory5_FWD_DEFINED__ |
| typedef interface IDWriteFactory5 IDWriteFactory5; |
| #ifdef __cplusplus |
| interface IDWriteFactory5; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFactory6_FWD_DEFINED__ |
| #define __IDWriteFactory6_FWD_DEFINED__ |
| typedef interface IDWriteFactory6 IDWriteFactory6; |
| #ifdef __cplusplus |
| interface IDWriteFactory6; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFactory7_FWD_DEFINED__ |
| #define __IDWriteFactory7_FWD_DEFINED__ |
| typedef interface IDWriteFactory7 IDWriteFactory7; |
| #ifdef __cplusplus |
| interface IDWriteFactory7; |
| #endif /* __cplusplus */ |
| #endif |
| |
| /* Headers for imported files */ |
| |
| #include <dwrite_2.h> |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| #ifndef __IDWriteFontFaceReference_FWD_DEFINED__ |
| #define __IDWriteFontFaceReference_FWD_DEFINED__ |
| typedef interface IDWriteFontFaceReference IDWriteFontFaceReference; |
| #ifdef __cplusplus |
| interface IDWriteFontFaceReference; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFaceReference1_FWD_DEFINED__ |
| #define __IDWriteFontFaceReference1_FWD_DEFINED__ |
| typedef interface IDWriteFontFaceReference1 IDWriteFontFaceReference1; |
| #ifdef __cplusplus |
| interface IDWriteFontFaceReference1; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFace3_FWD_DEFINED__ |
| #define __IDWriteFontFace3_FWD_DEFINED__ |
| typedef interface IDWriteFontFace3 IDWriteFontFace3; |
| #ifdef __cplusplus |
| interface IDWriteFontFace3; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontSet_FWD_DEFINED__ |
| #define __IDWriteFontSet_FWD_DEFINED__ |
| typedef interface IDWriteFontSet IDWriteFontSet; |
| #ifdef __cplusplus |
| interface IDWriteFontSet; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontDownloadQueue_FWD_DEFINED__ |
| #define __IDWriteFontDownloadQueue_FWD_DEFINED__ |
| typedef interface IDWriteFontDownloadQueue IDWriteFontDownloadQueue; |
| #ifdef __cplusplus |
| interface IDWriteFontDownloadQueue; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontFace5_FWD_DEFINED__ |
| #define __IDWriteFontFace5_FWD_DEFINED__ |
| typedef interface IDWriteFontFace5 IDWriteFontFace5; |
| #ifdef __cplusplus |
| interface IDWriteFontFace5; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef __IDWriteFontList2_FWD_DEFINED__ |
| #define __IDWriteFontList2_FWD_DEFINED__ |
| typedef interface IDWriteFontList2 IDWriteFontList2; |
| #ifdef __cplusplus |
| interface IDWriteFontList2; |
| #endif /* __cplusplus */ |
| #endif |
| |
| #ifndef _WINGDI_ |
| typedef struct FONTSIGNATURE FONTSIGNATURE; |
| #endif /* _WINGDI_ */ |
| typedef enum DWRITE_LOCALITY { |
| DWRITE_LOCALITY_REMOTE = 0, |
| DWRITE_LOCALITY_PARTIAL = 1, |
| DWRITE_LOCALITY_LOCAL = 2 |
| } DWRITE_LOCALITY; |
| typedef enum DWRITE_RENDERING_MODE1 { |
| DWRITE_RENDERING_MODE1_DEFAULT = 0, |
| DWRITE_RENDERING_MODE1_ALIASED = 1, |
| DWRITE_RENDERING_MODE1_GDI_CLASSIC = 2, |
| DWRITE_RENDERING_MODE1_GDI_NATURAL = 3, |
| DWRITE_RENDERING_MODE1_NATURAL = 4, |
| DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC = 5, |
| DWRITE_RENDERING_MODE1_OUTLINE = 6, |
| DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC_DOWNSAMPLED = 7 |
| } DWRITE_RENDERING_MODE1; |
| typedef enum DWRITE_FONT_PROPERTY_ID { |
| DWRITE_FONT_PROPERTY_ID_NONE = 0, |
| DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME = 1, |
| DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME = 2, |
| DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME = 3, |
| DWRITE_FONT_PROPERTY_ID_FULL_NAME = 4, |
| DWRITE_FONT_PROPERTY_ID_WIN32_FAMILY_NAME = 5, |
| DWRITE_FONT_PROPERTY_ID_POSTSCRIPT_NAME = 6, |
| DWRITE_FONT_PROPERTY_ID_DESIGN_SCRIPT_LANGUAGE_TAG = 7, |
| DWRITE_FONT_PROPERTY_ID_SUPPORTED_SCRIPT_LANGUAGE_TAG = 8, |
| DWRITE_FONT_PROPERTY_ID_SEMANTIC_TAG = 9, |
| DWRITE_FONT_PROPERTY_ID_WEIGHT = 10, |
| DWRITE_FONT_PROPERTY_ID_STRETCH = 11, |
| DWRITE_FONT_PROPERTY_ID_STYLE = 12, |
| DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME = 13, |
| DWRITE_FONT_PROPERTY_ID_TOTAL = DWRITE_FONT_PROPERTY_ID_STYLE + 1, |
| DWRITE_FONT_PROPERTY_ID_TOTAL_RS3 = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FACE_NAME + 1, |
| DWRITE_FONT_PROPERTY_ID_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_TYPOGRAPHIC_FAMILY_NAME, |
| DWRITE_FONT_PROPERTY_ID_PREFERRED_FAMILY_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FAMILY_NAME, |
| DWRITE_FONT_PROPERTY_ID_FACE_NAME = DWRITE_FONT_PROPERTY_ID_WEIGHT_STRETCH_STYLE_FACE_NAME |
| } DWRITE_FONT_PROPERTY_ID; |
| typedef struct DWRITE_FONT_PROPERTY { |
| DWRITE_FONT_PROPERTY_ID propertyId; |
| const WCHAR *propertyValue; |
| const WCHAR *localeName; |
| } DWRITE_FONT_PROPERTY; |
| #ifdef __cplusplus |
| #define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (static_cast<DWRITE_FONT_AXIS_TAG>(DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d))) |
| #else |
| #define DWRITE_MAKE_FONT_AXIS_TAG(a,b,c,d) (DWRITE_MAKE_OPENTYPE_TAG(a,b,c,d)) |
| #endif |
| typedef enum DWRITE_FONT_AXIS_TAG { |
| DWRITE_FONT_AXIS_TAG_WEIGHT = 0x74686777, |
| DWRITE_FONT_AXIS_TAG_WIDTH = 0x68746477, |
| DWRITE_FONT_AXIS_TAG_SLANT = 0x746e6c73, |
| DWRITE_FONT_AXIS_TAG_OPTICAL_SIZE = 0x7a73706f, |
| DWRITE_FONT_AXIS_TAG_ITALIC = 0x6c617469 |
| } DWRITE_FONT_AXIS_TAG; |
| typedef enum DWRITE_FONT_SOURCE_TYPE { |
| DWRITE_FONT_SOURCE_TYPE_UNKNOWN = 0, |
| DWRITE_FONT_SOURCE_TYPE_PER_MACHINE = 1, |
| DWRITE_FONT_SOURCE_TYPE_PER_USER = 2, |
| DWRITE_FONT_SOURCE_TYPE_APPX_PACKAGE = 3, |
| DWRITE_FONT_SOURCE_TYPE_REMOTE_FONT_PROVIDER = 4 |
| } DWRITE_FONT_SOURCE_TYPE; |
| typedef struct DWRITE_FONT_AXIS_VALUE { |
| DWRITE_FONT_AXIS_TAG axisTag; |
| FLOAT value; |
| } DWRITE_FONT_AXIS_VALUE; |
| typedef struct DWRITE_FONT_AXIS_RANGE { |
| DWRITE_FONT_AXIS_TAG axisTag; |
| FLOAT minValue; |
| FLOAT maxValue; |
| } DWRITE_FONT_AXIS_RANGE; |
| typedef enum DWRITE_AUTOMATIC_FONT_AXES { |
| DWRITE_AUTOMATIC_FONT_AXES_NONE = 0, |
| DWRITE_AUTOMATIC_FONT_AXES_OPTICAL_SIZE = 1 |
| } DWRITE_AUTOMATIC_FONT_AXES; |
| typedef enum DWRITE_FONT_AXIS_ATTRIBUTES { |
| DWRITE_FONT_AXIS_ATTRIBUTES_NONE = 0, |
| DWRITE_FONT_AXIS_ATTRIBUTES_VARIABLE = 1, |
| DWRITE_FONT_AXIS_ATTRIBUTES_HIDDEN = 2 |
| } DWRITE_FONT_AXIS_ATTRIBUTES; |
| typedef enum DWRITE_FONT_FAMILY_MODEL { |
| DWRITE_FONT_FAMILY_MODEL_TYPOGRAPHIC = 0, |
| DWRITE_FONT_FAMILY_MODEL_WEIGHT_STRETCH_STYLE = 1 |
| } DWRITE_FONT_FAMILY_MODEL; |
| /***************************************************************************** |
| * IDWriteFontDownloadListener interface |
| */ |
| #ifndef __IDWriteFontDownloadListener_INTERFACE_DEFINED__ |
| #define __IDWriteFontDownloadListener_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontDownloadListener, 0xb06fe5b9, 0x43ec, 0x4393, 0x88,0x1b, 0xdb,0xe4,0xdc,0x72,0xfd,0xa7); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("b06fe5b9-43ec-4393-881b-dbe4dc72fda7") |
| IDWriteFontDownloadListener : public IUnknown |
| { |
| virtual void STDMETHODCALLTYPE DownloadCompleted( |
| IDWriteFontDownloadQueue *queue, |
| IUnknown *context, |
| HRESULT result) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontDownloadListener, 0xb06fe5b9, 0x43ec, 0x4393, 0x88,0x1b, 0xdb,0xe4,0xdc,0x72,0xfd,0xa7) |
| #endif |
| #else |
| typedef struct IDWriteFontDownloadListenerVtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontDownloadListener *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontDownloadListener *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontDownloadListener *This); |
| |
| /*** IDWriteFontDownloadListener methods ***/ |
| void (STDMETHODCALLTYPE *DownloadCompleted)( |
| IDWriteFontDownloadListener *This, |
| IDWriteFontDownloadQueue *queue, |
| IUnknown *context, |
| HRESULT result); |
| |
| END_INTERFACE |
| } IDWriteFontDownloadListenerVtbl; |
| |
| interface IDWriteFontDownloadListener { |
| CONST_VTBL IDWriteFontDownloadListenerVtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontDownloadListener_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontDownloadListener_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontDownloadListener_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontDownloadListener methods ***/ |
| #define IDWriteFontDownloadListener_DownloadCompleted(This,queue,context,result) (This)->lpVtbl->DownloadCompleted(This,queue,context,result) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontDownloadListener_QueryInterface(IDWriteFontDownloadListener* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontDownloadListener_AddRef(IDWriteFontDownloadListener* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontDownloadListener_Release(IDWriteFontDownloadListener* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontDownloadListener methods ***/ |
| static FORCEINLINE void IDWriteFontDownloadListener_DownloadCompleted(IDWriteFontDownloadListener* This,IDWriteFontDownloadQueue *queue,IUnknown *context,HRESULT result) { |
| This->lpVtbl->DownloadCompleted(This,queue,context,result); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontDownloadListener_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontDownloadQueue interface |
| */ |
| #ifndef __IDWriteFontDownloadQueue_INTERFACE_DEFINED__ |
| #define __IDWriteFontDownloadQueue_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontDownloadQueue, 0xb71e6052, 0x5aea, 0x4fa3, 0x83,0x2e, 0xf6,0x0d,0x43,0x1f,0x7e,0x91); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("b71e6052-5aea-4fa3-832e-f60d431f7e91") |
| IDWriteFontDownloadQueue : public IUnknown |
| { |
| virtual HRESULT STDMETHODCALLTYPE AddListener( |
| IDWriteFontDownloadListener *listener, |
| UINT32 *token) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE RemoveListener( |
| UINT32 token) = 0; |
| |
| virtual WINBOOL STDMETHODCALLTYPE IsEmpty( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE BeginDownload( |
| IUnknown *context) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CancelDownload( |
| ) = 0; |
| |
| virtual UINT64 STDMETHODCALLTYPE GetGenerationCount( |
| ) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontDownloadQueue, 0xb71e6052, 0x5aea, 0x4fa3, 0x83,0x2e, 0xf6,0x0d,0x43,0x1f,0x7e,0x91) |
| #endif |
| #else |
| typedef struct IDWriteFontDownloadQueueVtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontDownloadQueue *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontDownloadQueue *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontDownloadQueue *This); |
| |
| /*** IDWriteFontDownloadQueue methods ***/ |
| HRESULT (STDMETHODCALLTYPE *AddListener)( |
| IDWriteFontDownloadQueue *This, |
| IDWriteFontDownloadListener *listener, |
| UINT32 *token); |
| |
| HRESULT (STDMETHODCALLTYPE *RemoveListener)( |
| IDWriteFontDownloadQueue *This, |
| UINT32 token); |
| |
| WINBOOL (STDMETHODCALLTYPE *IsEmpty)( |
| IDWriteFontDownloadQueue *This); |
| |
| HRESULT (STDMETHODCALLTYPE *BeginDownload)( |
| IDWriteFontDownloadQueue *This, |
| IUnknown *context); |
| |
| HRESULT (STDMETHODCALLTYPE *CancelDownload)( |
| IDWriteFontDownloadQueue *This); |
| |
| UINT64 (STDMETHODCALLTYPE *GetGenerationCount)( |
| IDWriteFontDownloadQueue *This); |
| |
| END_INTERFACE |
| } IDWriteFontDownloadQueueVtbl; |
| |
| interface IDWriteFontDownloadQueue { |
| CONST_VTBL IDWriteFontDownloadQueueVtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontDownloadQueue_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontDownloadQueue_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontDownloadQueue_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontDownloadQueue methods ***/ |
| #define IDWriteFontDownloadQueue_AddListener(This,listener,token) (This)->lpVtbl->AddListener(This,listener,token) |
| #define IDWriteFontDownloadQueue_RemoveListener(This,token) (This)->lpVtbl->RemoveListener(This,token) |
| #define IDWriteFontDownloadQueue_IsEmpty(This) (This)->lpVtbl->IsEmpty(This) |
| #define IDWriteFontDownloadQueue_BeginDownload(This,context) (This)->lpVtbl->BeginDownload(This,context) |
| #define IDWriteFontDownloadQueue_CancelDownload(This) (This)->lpVtbl->CancelDownload(This) |
| #define IDWriteFontDownloadQueue_GetGenerationCount(This) (This)->lpVtbl->GetGenerationCount(This) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontDownloadQueue_QueryInterface(IDWriteFontDownloadQueue* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontDownloadQueue_AddRef(IDWriteFontDownloadQueue* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontDownloadQueue_Release(IDWriteFontDownloadQueue* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontDownloadQueue methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontDownloadQueue_AddListener(IDWriteFontDownloadQueue* This,IDWriteFontDownloadListener *listener,UINT32 *token) { |
| return This->lpVtbl->AddListener(This,listener,token); |
| } |
| static FORCEINLINE HRESULT IDWriteFontDownloadQueue_RemoveListener(IDWriteFontDownloadQueue* This,UINT32 token) { |
| return This->lpVtbl->RemoveListener(This,token); |
| } |
| static FORCEINLINE WINBOOL IDWriteFontDownloadQueue_IsEmpty(IDWriteFontDownloadQueue* This) { |
| return This->lpVtbl->IsEmpty(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontDownloadQueue_BeginDownload(IDWriteFontDownloadQueue* This,IUnknown *context) { |
| return This->lpVtbl->BeginDownload(This,context); |
| } |
| static FORCEINLINE HRESULT IDWriteFontDownloadQueue_CancelDownload(IDWriteFontDownloadQueue* This) { |
| return This->lpVtbl->CancelDownload(This); |
| } |
| static FORCEINLINE UINT64 IDWriteFontDownloadQueue_GetGenerationCount(IDWriteFontDownloadQueue* This) { |
| return This->lpVtbl->GetGenerationCount(This); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontDownloadQueue_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteRenderingParams3 interface |
| */ |
| #ifndef __IDWriteRenderingParams3_INTERFACE_DEFINED__ |
| #define __IDWriteRenderingParams3_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteRenderingParams3, 0xb7924baa, 0x391b, 0x412a, 0x8c,0x5c, 0xe4,0x4c,0xc2,0xd8,0x67,0xdc); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("b7924baa-391b-412a-8c5c-e44cc2d867dc") |
| IDWriteRenderingParams3 : public IDWriteRenderingParams2 |
| { |
| virtual DWRITE_RENDERING_MODE1 STDMETHODCALLTYPE GetRenderingMode1( |
| ) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteRenderingParams3, 0xb7924baa, 0x391b, 0x412a, 0x8c,0x5c, 0xe4,0x4c,0xc2,0xd8,0x67,0xdc) |
| #endif |
| #else |
| typedef struct IDWriteRenderingParams3Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteRenderingParams3 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteRenderingParams3 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteRenderingParams3 *This); |
| |
| /*** IDWriteRenderingParams methods ***/ |
| FLOAT (STDMETHODCALLTYPE *GetGamma)( |
| IDWriteRenderingParams3 *This); |
| |
| FLOAT (STDMETHODCALLTYPE *GetEnhancedContrast)( |
| IDWriteRenderingParams3 *This); |
| |
| FLOAT (STDMETHODCALLTYPE *GetClearTypeLevel)( |
| IDWriteRenderingParams3 *This); |
| |
| DWRITE_PIXEL_GEOMETRY (STDMETHODCALLTYPE *GetPixelGeometry)( |
| IDWriteRenderingParams3 *This); |
| |
| DWRITE_RENDERING_MODE (STDMETHODCALLTYPE *GetRenderingMode)( |
| IDWriteRenderingParams3 *This); |
| |
| /*** IDWriteRenderingParams1 methods ***/ |
| FLOAT (STDMETHODCALLTYPE *GetGrayscaleEnhancedContrast)( |
| IDWriteRenderingParams3 *This); |
| |
| /*** IDWriteRenderingParams2 methods ***/ |
| DWRITE_GRID_FIT_MODE (STDMETHODCALLTYPE *GetGridFitMode)( |
| IDWriteRenderingParams3 *This); |
| |
| /*** IDWriteRenderingParams3 methods ***/ |
| DWRITE_RENDERING_MODE1 (STDMETHODCALLTYPE *GetRenderingMode1)( |
| IDWriteRenderingParams3 *This); |
| |
| END_INTERFACE |
| } IDWriteRenderingParams3Vtbl; |
| |
| interface IDWriteRenderingParams3 { |
| CONST_VTBL IDWriteRenderingParams3Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteRenderingParams3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteRenderingParams3_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteRenderingParams3_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteRenderingParams methods ***/ |
| #define IDWriteRenderingParams3_GetGamma(This) (This)->lpVtbl->GetGamma(This) |
| #define IDWriteRenderingParams3_GetEnhancedContrast(This) (This)->lpVtbl->GetEnhancedContrast(This) |
| #define IDWriteRenderingParams3_GetClearTypeLevel(This) (This)->lpVtbl->GetClearTypeLevel(This) |
| #define IDWriteRenderingParams3_GetPixelGeometry(This) (This)->lpVtbl->GetPixelGeometry(This) |
| #define IDWriteRenderingParams3_GetRenderingMode(This) (This)->lpVtbl->GetRenderingMode(This) |
| /*** IDWriteRenderingParams1 methods ***/ |
| #define IDWriteRenderingParams3_GetGrayscaleEnhancedContrast(This) (This)->lpVtbl->GetGrayscaleEnhancedContrast(This) |
| /*** IDWriteRenderingParams2 methods ***/ |
| #define IDWriteRenderingParams3_GetGridFitMode(This) (This)->lpVtbl->GetGridFitMode(This) |
| /*** IDWriteRenderingParams3 methods ***/ |
| #define IDWriteRenderingParams3_GetRenderingMode1(This) (This)->lpVtbl->GetRenderingMode1(This) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteRenderingParams3_QueryInterface(IDWriteRenderingParams3* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteRenderingParams3_AddRef(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteRenderingParams3_Release(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteRenderingParams methods ***/ |
| static FORCEINLINE FLOAT IDWriteRenderingParams3_GetGamma(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetGamma(This); |
| } |
| static FORCEINLINE FLOAT IDWriteRenderingParams3_GetEnhancedContrast(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetEnhancedContrast(This); |
| } |
| static FORCEINLINE FLOAT IDWriteRenderingParams3_GetClearTypeLevel(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetClearTypeLevel(This); |
| } |
| static FORCEINLINE DWRITE_PIXEL_GEOMETRY IDWriteRenderingParams3_GetPixelGeometry(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetPixelGeometry(This); |
| } |
| static FORCEINLINE DWRITE_RENDERING_MODE IDWriteRenderingParams3_GetRenderingMode(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetRenderingMode(This); |
| } |
| /*** IDWriteRenderingParams1 methods ***/ |
| static FORCEINLINE FLOAT IDWriteRenderingParams3_GetGrayscaleEnhancedContrast(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetGrayscaleEnhancedContrast(This); |
| } |
| /*** IDWriteRenderingParams2 methods ***/ |
| static FORCEINLINE DWRITE_GRID_FIT_MODE IDWriteRenderingParams3_GetGridFitMode(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetGridFitMode(This); |
| } |
| /*** IDWriteRenderingParams3 methods ***/ |
| static FORCEINLINE DWRITE_RENDERING_MODE1 IDWriteRenderingParams3_GetRenderingMode1(IDWriteRenderingParams3* This) { |
| return This->lpVtbl->GetRenderingMode1(This); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteRenderingParams3_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteStringList interface |
| */ |
| #ifndef __IDWriteStringList_INTERFACE_DEFINED__ |
| #define __IDWriteStringList_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteStringList, 0xcfee3140, 0x1257, 0x47ca, 0x8b,0x85, 0x31,0xbf,0xcf,0x3f,0x2d,0x0e); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("cfee3140-1257-47ca-8b85-31bfcf3f2d0e") |
| IDWriteStringList : public IUnknown |
| { |
| virtual UINT32 STDMETHODCALLTYPE GetCount( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetLocaleNameLength( |
| UINT32 index, |
| UINT32 *length) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetLocaleName( |
| UINT32 index, |
| WCHAR *name, |
| UINT32 size) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetStringLength( |
| UINT32 index, |
| UINT32 *length) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetString( |
| UINT32 index, |
| WCHAR *string, |
| UINT32 size) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteStringList, 0xcfee3140, 0x1257, 0x47ca, 0x8b,0x85, 0x31,0xbf,0xcf,0x3f,0x2d,0x0e) |
| #endif |
| #else |
| typedef struct IDWriteStringListVtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteStringList *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteStringList *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteStringList *This); |
| |
| /*** IDWriteStringList methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetCount)( |
| IDWriteStringList *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetLocaleNameLength)( |
| IDWriteStringList *This, |
| UINT32 index, |
| UINT32 *length); |
| |
| HRESULT (STDMETHODCALLTYPE *GetLocaleName)( |
| IDWriteStringList *This, |
| UINT32 index, |
| WCHAR *name, |
| UINT32 size); |
| |
| HRESULT (STDMETHODCALLTYPE *GetStringLength)( |
| IDWriteStringList *This, |
| UINT32 index, |
| UINT32 *length); |
| |
| HRESULT (STDMETHODCALLTYPE *GetString)( |
| IDWriteStringList *This, |
| UINT32 index, |
| WCHAR *string, |
| UINT32 size); |
| |
| END_INTERFACE |
| } IDWriteStringListVtbl; |
| |
| interface IDWriteStringList { |
| CONST_VTBL IDWriteStringListVtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteStringList_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteStringList_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteStringList_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteStringList methods ***/ |
| #define IDWriteStringList_GetCount(This) (This)->lpVtbl->GetCount(This) |
| #define IDWriteStringList_GetLocaleNameLength(This,index,length) (This)->lpVtbl->GetLocaleNameLength(This,index,length) |
| #define IDWriteStringList_GetLocaleName(This,index,name,size) (This)->lpVtbl->GetLocaleName(This,index,name,size) |
| #define IDWriteStringList_GetStringLength(This,index,length) (This)->lpVtbl->GetStringLength(This,index,length) |
| #define IDWriteStringList_GetString(This,index,string,size) (This)->lpVtbl->GetString(This,index,string,size) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteStringList_QueryInterface(IDWriteStringList* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteStringList_AddRef(IDWriteStringList* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteStringList_Release(IDWriteStringList* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteStringList methods ***/ |
| static FORCEINLINE UINT32 IDWriteStringList_GetCount(IDWriteStringList* This) { |
| return This->lpVtbl->GetCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteStringList_GetLocaleNameLength(IDWriteStringList* This,UINT32 index,UINT32 *length) { |
| return This->lpVtbl->GetLocaleNameLength(This,index,length); |
| } |
| static FORCEINLINE HRESULT IDWriteStringList_GetLocaleName(IDWriteStringList* This,UINT32 index,WCHAR *name,UINT32 size) { |
| return This->lpVtbl->GetLocaleName(This,index,name,size); |
| } |
| static FORCEINLINE HRESULT IDWriteStringList_GetStringLength(IDWriteStringList* This,UINT32 index,UINT32 *length) { |
| return This->lpVtbl->GetStringLength(This,index,length); |
| } |
| static FORCEINLINE HRESULT IDWriteStringList_GetString(IDWriteStringList* This,UINT32 index,WCHAR *string,UINT32 size) { |
| return This->lpVtbl->GetString(This,index,string,size); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteStringList_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontSet interface |
| */ |
| #ifndef __IDWriteFontSet_INTERFACE_DEFINED__ |
| #define __IDWriteFontSet_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontSet, 0x53585141, 0xd9f8, 0x4095, 0x83,0x21, 0xd7,0x3c,0xf6,0xbd,0x11,0x6b); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("53585141-d9f8-4095-8321-d73cf6bd116b") |
| IDWriteFontSet : public IUnknown |
| { |
| virtual UINT32 STDMETHODCALLTYPE GetFontCount( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFaceReference( |
| UINT32 index, |
| IDWriteFontFaceReference **reference) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE FindFontFaceReference( |
| IDWriteFontFaceReference *reference, |
| UINT32 *index, |
| WINBOOL *exists) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE FindFontFace( |
| IDWriteFontFace *fontface, |
| UINT32 *index, |
| WINBOOL *exists) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetPropertyValues__( |
| DWRITE_FONT_PROPERTY_ID id, |
| IDWriteStringList **values) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetPropertyValues_( |
| DWRITE_FONT_PROPERTY_ID id, |
| const WCHAR *preferred_locales, |
| IDWriteStringList **values) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetPropertyValues( |
| UINT32 index, |
| DWRITE_FONT_PROPERTY_ID id, |
| WINBOOL *exists, |
| IDWriteLocalizedStrings **values) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetPropertyOccurrenceCount( |
| const DWRITE_FONT_PROPERTY *property, |
| UINT32 *count) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts_( |
| const WCHAR *family, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFontSet **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts( |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 count, |
| IDWriteFontSet **fontset) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontSet, 0x53585141, 0xd9f8, 0x4095, 0x83,0x21, 0xd7,0x3c,0xf6,0xbd,0x11,0x6b) |
| #endif |
| #else |
| typedef struct IDWriteFontSetVtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontSet *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontSet *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontSet *This); |
| |
| /*** IDWriteFontSet methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetFontCount)( |
| IDWriteFontSet *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFaceReference)( |
| IDWriteFontSet *This, |
| UINT32 index, |
| IDWriteFontFaceReference **reference); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFontFaceReference)( |
| IDWriteFontSet *This, |
| IDWriteFontFaceReference *reference, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFontFace)( |
| IDWriteFontSet *This, |
| IDWriteFontFace *fontface, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues__)( |
| IDWriteFontSet *This, |
| DWRITE_FONT_PROPERTY_ID id, |
| IDWriteStringList **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues_)( |
| IDWriteFontSet *This, |
| DWRITE_FONT_PROPERTY_ID id, |
| const WCHAR *preferred_locales, |
| IDWriteStringList **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues)( |
| IDWriteFontSet *This, |
| UINT32 index, |
| DWRITE_FONT_PROPERTY_ID id, |
| WINBOOL *exists, |
| IDWriteLocalizedStrings **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyOccurrenceCount)( |
| IDWriteFontSet *This, |
| const DWRITE_FONT_PROPERTY *property, |
| UINT32 *count); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts_)( |
| IDWriteFontSet *This, |
| const WCHAR *family, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFontSet **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontSet *This, |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 count, |
| IDWriteFontSet **fontset); |
| |
| END_INTERFACE |
| } IDWriteFontSetVtbl; |
| |
| interface IDWriteFontSet { |
| CONST_VTBL IDWriteFontSetVtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontSet_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontSet_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontSet_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontSet methods ***/ |
| #define IDWriteFontSet_GetFontCount(This) (This)->lpVtbl->GetFontCount(This) |
| #define IDWriteFontSet_GetFontFaceReference(This,index,reference) (This)->lpVtbl->GetFontFaceReference(This,index,reference) |
| #define IDWriteFontSet_FindFontFaceReference(This,reference,index,exists) (This)->lpVtbl->FindFontFaceReference(This,reference,index,exists) |
| #define IDWriteFontSet_FindFontFace(This,fontface,index,exists) (This)->lpVtbl->FindFontFace(This,fontface,index,exists) |
| #define IDWriteFontSet_GetPropertyValues__(This,id,values) (This)->lpVtbl->GetPropertyValues__(This,id,values) |
| #define IDWriteFontSet_GetPropertyValues_(This,id,preferred_locales,values) (This)->lpVtbl->GetPropertyValues_(This,id,preferred_locales,values) |
| #define IDWriteFontSet_GetPropertyValues(This,index,id,exists,values) (This)->lpVtbl->GetPropertyValues(This,index,id,exists,values) |
| #define IDWriteFontSet_GetPropertyOccurrenceCount(This,property,count) (This)->lpVtbl->GetPropertyOccurrenceCount(This,property,count) |
| #define IDWriteFontSet_GetMatchingFonts_(This,family,weight,stretch,style,fontset) (This)->lpVtbl->GetMatchingFonts_(This,family,weight,stretch,style,fontset) |
| #define IDWriteFontSet_GetMatchingFonts(This,props,count,fontset) (This)->lpVtbl->GetMatchingFonts(This,props,count,fontset) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontSet_QueryInterface(IDWriteFontSet* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontSet_AddRef(IDWriteFontSet* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontSet_Release(IDWriteFontSet* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontSet methods ***/ |
| static FORCEINLINE UINT32 IDWriteFontSet_GetFontCount(IDWriteFontSet* This) { |
| return This->lpVtbl->GetFontCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetFontFaceReference(IDWriteFontSet* This,UINT32 index,IDWriteFontFaceReference **reference) { |
| return This->lpVtbl->GetFontFaceReference(This,index,reference); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_FindFontFaceReference(IDWriteFontSet* This,IDWriteFontFaceReference *reference,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFontFaceReference(This,reference,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_FindFontFace(IDWriteFontSet* This,IDWriteFontFace *fontface,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFontFace(This,fontface,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetPropertyValues__(IDWriteFontSet* This,DWRITE_FONT_PROPERTY_ID id,IDWriteStringList **values) { |
| return This->lpVtbl->GetPropertyValues__(This,id,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetPropertyValues_(IDWriteFontSet* This,DWRITE_FONT_PROPERTY_ID id,const WCHAR *preferred_locales,IDWriteStringList **values) { |
| return This->lpVtbl->GetPropertyValues_(This,id,preferred_locales,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetPropertyValues(IDWriteFontSet* This,UINT32 index,DWRITE_FONT_PROPERTY_ID id,WINBOOL *exists,IDWriteLocalizedStrings **values) { |
| return This->lpVtbl->GetPropertyValues(This,index,id,exists,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetPropertyOccurrenceCount(IDWriteFontSet* This,const DWRITE_FONT_PROPERTY *property,UINT32 *count) { |
| return This->lpVtbl->GetPropertyOccurrenceCount(This,property,count); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetMatchingFonts_(IDWriteFontSet* This,const WCHAR *family,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFontSet **fontset) { |
| return This->lpVtbl->GetMatchingFonts_(This,family,weight,stretch,style,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet_GetMatchingFonts(IDWriteFontSet* This,const DWRITE_FONT_PROPERTY *props,UINT32 count,IDWriteFontSet **fontset) { |
| return This->lpVtbl->GetMatchingFonts(This,props,count,fontset); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontSet_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontResource interface |
| */ |
| #ifndef __IDWriteFontResource_INTERFACE_DEFINED__ |
| #define __IDWriteFontResource_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontResource, 0x1f803a76, 0x6871, 0x48e8, 0x98,0x7f, 0xb9,0x75,0x55,0x1c,0x50,0xf2); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("1f803a76-6871-48e8-987f-b975551c50f2") |
| IDWriteFontResource : public IUnknown |
| { |
| virtual HRESULT STDMETHODCALLTYPE GetFontFile( |
| IDWriteFontFile **fontfile) = 0; |
| |
| virtual UINT32 STDMETHODCALLTYPE GetFontFaceIndex( |
| ) = 0; |
| |
| virtual UINT32 STDMETHODCALLTYPE GetFontAxisCount( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetDefaultFontAxisValues( |
| const DWRITE_FONT_AXIS_VALUE *values, |
| UINT32 num_values) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontAxisRanges( |
| const DWRITE_FONT_AXIS_RANGE *ranges, |
| UINT32 num_ranges) = 0; |
| |
| virtual DWRITE_FONT_AXIS_ATTRIBUTES STDMETHODCALLTYPE GetFontAxisAttributes( |
| UINT32 axis) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetAxisNames( |
| UINT32 axis, |
| IDWriteLocalizedStrings **names) = 0; |
| |
| virtual UINT32 STDMETHODCALLTYPE GetAxisValueNameCount( |
| UINT32 axis) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetAxisValueNames( |
| UINT32 axis, |
| UINT32 axis_value, |
| DWRITE_FONT_AXIS_RANGE *axis_range, |
| IDWriteLocalizedStrings **names) = 0; |
| |
| virtual WINBOOL STDMETHODCALLTYPE HasVariations( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFace( |
| DWRITE_FONT_SIMULATIONS simulations, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontFace5 **fontface) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFaceReference( |
| DWRITE_FONT_SIMULATIONS simulations, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontFaceReference1 **reference) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontResource, 0x1f803a76, 0x6871, 0x48e8, 0x98,0x7f, 0xb9,0x75,0x55,0x1c,0x50,0xf2) |
| #endif |
| #else |
| typedef struct IDWriteFontResourceVtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontResource *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontResource *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontResource *This); |
| |
| /*** IDWriteFontResource methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontFile)( |
| IDWriteFontResource *This, |
| IDWriteFontFile **fontfile); |
| |
| UINT32 (STDMETHODCALLTYPE *GetFontFaceIndex)( |
| IDWriteFontResource *This); |
| |
| UINT32 (STDMETHODCALLTYPE *GetFontAxisCount)( |
| IDWriteFontResource *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetDefaultFontAxisValues)( |
| IDWriteFontResource *This, |
| const DWRITE_FONT_AXIS_VALUE *values, |
| UINT32 num_values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontAxisRanges)( |
| IDWriteFontResource *This, |
| const DWRITE_FONT_AXIS_RANGE *ranges, |
| UINT32 num_ranges); |
| |
| DWRITE_FONT_AXIS_ATTRIBUTES (STDMETHODCALLTYPE *GetFontAxisAttributes)( |
| IDWriteFontResource *This, |
| UINT32 axis); |
| |
| HRESULT (STDMETHODCALLTYPE *GetAxisNames)( |
| IDWriteFontResource *This, |
| UINT32 axis, |
| IDWriteLocalizedStrings **names); |
| |
| UINT32 (STDMETHODCALLTYPE *GetAxisValueNameCount)( |
| IDWriteFontResource *This, |
| UINT32 axis); |
| |
| HRESULT (STDMETHODCALLTYPE *GetAxisValueNames)( |
| IDWriteFontResource *This, |
| UINT32 axis, |
| UINT32 axis_value, |
| DWRITE_FONT_AXIS_RANGE *axis_range, |
| IDWriteLocalizedStrings **names); |
| |
| WINBOOL (STDMETHODCALLTYPE *HasVariations)( |
| IDWriteFontResource *This); |
| |
| HRESULT (STDMETHODCALLTYPE *CreateFontFace)( |
| IDWriteFontResource *This, |
| DWRITE_FONT_SIMULATIONS simulations, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontFace5 **fontface); |
| |
| HRESULT (STDMETHODCALLTYPE *CreateFontFaceReference)( |
| IDWriteFontResource *This, |
| DWRITE_FONT_SIMULATIONS simulations, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontFaceReference1 **reference); |
| |
| END_INTERFACE |
| } IDWriteFontResourceVtbl; |
| |
| interface IDWriteFontResource { |
| CONST_VTBL IDWriteFontResourceVtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontResource_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontResource_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontResource_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontResource methods ***/ |
| #define IDWriteFontResource_GetFontFile(This,fontfile) (This)->lpVtbl->GetFontFile(This,fontfile) |
| #define IDWriteFontResource_GetFontFaceIndex(This) (This)->lpVtbl->GetFontFaceIndex(This) |
| #define IDWriteFontResource_GetFontAxisCount(This) (This)->lpVtbl->GetFontAxisCount(This) |
| #define IDWriteFontResource_GetDefaultFontAxisValues(This,values,num_values) (This)->lpVtbl->GetDefaultFontAxisValues(This,values,num_values) |
| #define IDWriteFontResource_GetFontAxisRanges(This,ranges,num_ranges) (This)->lpVtbl->GetFontAxisRanges(This,ranges,num_ranges) |
| #define IDWriteFontResource_GetFontAxisAttributes(This,axis) (This)->lpVtbl->GetFontAxisAttributes(This,axis) |
| #define IDWriteFontResource_GetAxisNames(This,axis,names) (This)->lpVtbl->GetAxisNames(This,axis,names) |
| #define IDWriteFontResource_GetAxisValueNameCount(This,axis) (This)->lpVtbl->GetAxisValueNameCount(This,axis) |
| #define IDWriteFontResource_GetAxisValueNames(This,axis,axis_value,axis_range,names) (This)->lpVtbl->GetAxisValueNames(This,axis,axis_value,axis_range,names) |
| #define IDWriteFontResource_HasVariations(This) (This)->lpVtbl->HasVariations(This) |
| #define IDWriteFontResource_CreateFontFace(This,simulations,axis_values,num_values,fontface) (This)->lpVtbl->CreateFontFace(This,simulations,axis_values,num_values,fontface) |
| #define IDWriteFontResource_CreateFontFaceReference(This,simulations,axis_values,num_values,reference) (This)->lpVtbl->CreateFontFaceReference(This,simulations,axis_values,num_values,reference) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontResource_QueryInterface(IDWriteFontResource* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontResource_AddRef(IDWriteFontResource* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontResource_Release(IDWriteFontResource* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontResource methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontResource_GetFontFile(IDWriteFontResource* This,IDWriteFontFile **fontfile) { |
| return This->lpVtbl->GetFontFile(This,fontfile); |
| } |
| static FORCEINLINE UINT32 IDWriteFontResource_GetFontFaceIndex(IDWriteFontResource* This) { |
| return This->lpVtbl->GetFontFaceIndex(This); |
| } |
| static FORCEINLINE UINT32 IDWriteFontResource_GetFontAxisCount(IDWriteFontResource* This) { |
| return This->lpVtbl->GetFontAxisCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_GetDefaultFontAxisValues(IDWriteFontResource* This,const DWRITE_FONT_AXIS_VALUE *values,UINT32 num_values) { |
| return This->lpVtbl->GetDefaultFontAxisValues(This,values,num_values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_GetFontAxisRanges(IDWriteFontResource* This,const DWRITE_FONT_AXIS_RANGE *ranges,UINT32 num_ranges) { |
| return This->lpVtbl->GetFontAxisRanges(This,ranges,num_ranges); |
| } |
| static FORCEINLINE DWRITE_FONT_AXIS_ATTRIBUTES IDWriteFontResource_GetFontAxisAttributes(IDWriteFontResource* This,UINT32 axis) { |
| return This->lpVtbl->GetFontAxisAttributes(This,axis); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_GetAxisNames(IDWriteFontResource* This,UINT32 axis,IDWriteLocalizedStrings **names) { |
| return This->lpVtbl->GetAxisNames(This,axis,names); |
| } |
| static FORCEINLINE UINT32 IDWriteFontResource_GetAxisValueNameCount(IDWriteFontResource* This,UINT32 axis) { |
| return This->lpVtbl->GetAxisValueNameCount(This,axis); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_GetAxisValueNames(IDWriteFontResource* This,UINT32 axis,UINT32 axis_value,DWRITE_FONT_AXIS_RANGE *axis_range,IDWriteLocalizedStrings **names) { |
| return This->lpVtbl->GetAxisValueNames(This,axis,axis_value,axis_range,names); |
| } |
| static FORCEINLINE WINBOOL IDWriteFontResource_HasVariations(IDWriteFontResource* This) { |
| return This->lpVtbl->HasVariations(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_CreateFontFace(IDWriteFontResource* This,DWRITE_FONT_SIMULATIONS simulations,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontFace5 **fontface) { |
| return This->lpVtbl->CreateFontFace(This,simulations,axis_values,num_values,fontface); |
| } |
| static FORCEINLINE HRESULT IDWriteFontResource_CreateFontFaceReference(IDWriteFontResource* This,DWRITE_FONT_SIMULATIONS simulations,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontFaceReference1 **reference) { |
| return This->lpVtbl->CreateFontFaceReference(This,simulations,axis_values,num_values,reference); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontResource_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontSet1 interface |
| */ |
| #ifndef __IDWriteFontSet1_INTERFACE_DEFINED__ |
| #define __IDWriteFontSet1_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontSet1, 0x7e9fda85, 0x6c92, 0x4053, 0xbc,0x47, 0x7a,0xe3,0x53,0x0d,0xb4,0xd3); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("7e9fda85-6c92-4053-bc47-7ae3530db4d3") |
| IDWriteFontSet1 : public IDWriteFontSet |
| { |
| virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts( |
| const DWRITE_FONT_PROPERTY *property, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontSet1 **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFirstFontResources( |
| IDWriteFontSet1 **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFilteredFonts__( |
| const UINT32 *indices, |
| UINT32 num_indices, |
| IDWriteFontSet1 **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFilteredFonts_( |
| const DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| WINBOOL select_any_range, |
| IDWriteFontSet1 **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFilteredFonts( |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 num_properties, |
| WINBOOL select_any_property, |
| IDWriteFontSet1 **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFilteredFontIndices_( |
| const DWRITE_FONT_AXIS_RANGE *ranges, |
| UINT32 num_ranges, |
| WINBOOL select_any_range, |
| UINT32 *indices, |
| UINT32 num_indices, |
| UINT32 *actual_num_indices) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFilteredFontIndices( |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 num_properties, |
| WINBOOL select_any_range, |
| UINT32 *indices, |
| UINT32 num_indices, |
| UINT32 *actual_num_indices) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontAxisRanges_( |
| UINT32 font_index, |
| DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| UINT32 *actual_num_ranges) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontAxisRanges( |
| DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| UINT32 *actual_num_ranges) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFaceReference( |
| UINT32 index, |
| IDWriteFontFaceReference1 **reference) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CreateFontResource( |
| UINT32 index, |
| IDWriteFontResource **resource) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFace( |
| UINT32 index, |
| IDWriteFontFace5 **fontface) = 0; |
| |
| virtual DWRITE_LOCALITY STDMETHODCALLTYPE GetFontLocality( |
| UINT32 index) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontSet1, 0x7e9fda85, 0x6c92, 0x4053, 0xbc,0x47, 0x7a,0xe3,0x53,0x0d,0xb4,0xd3) |
| #endif |
| #else |
| typedef struct IDWriteFontSet1Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontSet1 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontSet1 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontSet1 *This); |
| |
| /*** IDWriteFontSet methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetFontCount)( |
| IDWriteFontSet1 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFaceReference)( |
| IDWriteFontSet1 *This, |
| UINT32 index, |
| IDWriteFontFaceReference **reference); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFontFaceReference)( |
| IDWriteFontSet1 *This, |
| IDWriteFontFaceReference *reference, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFontFace)( |
| IDWriteFontSet1 *This, |
| IDWriteFontFace *fontface, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues__)( |
| IDWriteFontSet1 *This, |
| DWRITE_FONT_PROPERTY_ID id, |
| IDWriteStringList **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues_)( |
| IDWriteFontSet1 *This, |
| DWRITE_FONT_PROPERTY_ID id, |
| const WCHAR *preferred_locales, |
| IDWriteStringList **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyValues)( |
| IDWriteFontSet1 *This, |
| UINT32 index, |
| DWRITE_FONT_PROPERTY_ID id, |
| WINBOOL *exists, |
| IDWriteLocalizedStrings **values); |
| |
| HRESULT (STDMETHODCALLTYPE *GetPropertyOccurrenceCount)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_PROPERTY *property, |
| UINT32 *count); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts_)( |
| IDWriteFontSet1 *This, |
| const WCHAR *family, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFontSet **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 count, |
| IDWriteFontSet **fontset); |
| |
| /*** IDWriteFontSet1 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontSet1_GetMatchingFonts)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_PROPERTY *property, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontSet1 **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFirstFontResources)( |
| IDWriteFontSet1 *This, |
| IDWriteFontSet1 **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFilteredFonts__)( |
| IDWriteFontSet1 *This, |
| const UINT32 *indices, |
| UINT32 num_indices, |
| IDWriteFontSet1 **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFilteredFonts_)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| WINBOOL select_any_range, |
| IDWriteFontSet1 **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFilteredFonts)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 num_properties, |
| WINBOOL select_any_property, |
| IDWriteFontSet1 **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFilteredFontIndices_)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_AXIS_RANGE *ranges, |
| UINT32 num_ranges, |
| WINBOOL select_any_range, |
| UINT32 *indices, |
| UINT32 num_indices, |
| UINT32 *actual_num_indices); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFilteredFontIndices)( |
| IDWriteFontSet1 *This, |
| const DWRITE_FONT_PROPERTY *props, |
| UINT32 num_properties, |
| WINBOOL select_any_range, |
| UINT32 *indices, |
| UINT32 num_indices, |
| UINT32 *actual_num_indices); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontAxisRanges_)( |
| IDWriteFontSet1 *This, |
| UINT32 font_index, |
| DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| UINT32 *actual_num_ranges); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontAxisRanges)( |
| IDWriteFontSet1 *This, |
| DWRITE_FONT_AXIS_RANGE *axis_ranges, |
| UINT32 num_ranges, |
| UINT32 *actual_num_ranges); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontSet1_GetFontFaceReference)( |
| IDWriteFontSet1 *This, |
| UINT32 index, |
| IDWriteFontFaceReference1 **reference); |
| |
| HRESULT (STDMETHODCALLTYPE *CreateFontResource)( |
| IDWriteFontSet1 *This, |
| UINT32 index, |
| IDWriteFontResource **resource); |
| |
| HRESULT (STDMETHODCALLTYPE *CreateFontFace)( |
| IDWriteFontSet1 *This, |
| UINT32 index, |
| IDWriteFontFace5 **fontface); |
| |
| DWRITE_LOCALITY (STDMETHODCALLTYPE *GetFontLocality)( |
| IDWriteFontSet1 *This, |
| UINT32 index); |
| |
| END_INTERFACE |
| } IDWriteFontSet1Vtbl; |
| |
| interface IDWriteFontSet1 { |
| CONST_VTBL IDWriteFontSet1Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontSet1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontSet1_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontSet1_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontSet methods ***/ |
| #define IDWriteFontSet1_GetFontCount(This) (This)->lpVtbl->GetFontCount(This) |
| #define IDWriteFontSet1_FindFontFaceReference(This,reference,index,exists) (This)->lpVtbl->FindFontFaceReference(This,reference,index,exists) |
| #define IDWriteFontSet1_FindFontFace(This,fontface,index,exists) (This)->lpVtbl->FindFontFace(This,fontface,index,exists) |
| #define IDWriteFontSet1_GetPropertyValues__(This,id,values) (This)->lpVtbl->GetPropertyValues__(This,id,values) |
| #define IDWriteFontSet1_GetPropertyValues_(This,id,preferred_locales,values) (This)->lpVtbl->GetPropertyValues_(This,id,preferred_locales,values) |
| #define IDWriteFontSet1_GetPropertyValues(This,index,id,exists,values) (This)->lpVtbl->GetPropertyValues(This,index,id,exists,values) |
| #define IDWriteFontSet1_GetPropertyOccurrenceCount(This,property,count) (This)->lpVtbl->GetPropertyOccurrenceCount(This,property,count) |
| #define IDWriteFontSet1_GetMatchingFonts_(This,family,weight,stretch,style,fontset) (This)->lpVtbl->GetMatchingFonts_(This,family,weight,stretch,style,fontset) |
| /*** IDWriteFontSet1 methods ***/ |
| #define IDWriteFontSet1_GetMatchingFonts(This,property,axis_values,num_values,fontset) (This)->lpVtbl->IDWriteFontSet1_GetMatchingFonts(This,property,axis_values,num_values,fontset) |
| #define IDWriteFontSet1_GetFirstFontResources(This,fontset) (This)->lpVtbl->GetFirstFontResources(This,fontset) |
| #define IDWriteFontSet1_GetFilteredFonts__(This,indices,num_indices,fontset) (This)->lpVtbl->GetFilteredFonts__(This,indices,num_indices,fontset) |
| #define IDWriteFontSet1_GetFilteredFonts_(This,axis_ranges,num_ranges,select_any_range,fontset) (This)->lpVtbl->GetFilteredFonts_(This,axis_ranges,num_ranges,select_any_range,fontset) |
| #define IDWriteFontSet1_GetFilteredFonts(This,props,num_properties,select_any_property,fontset) (This)->lpVtbl->GetFilteredFonts(This,props,num_properties,select_any_property,fontset) |
| #define IDWriteFontSet1_GetFilteredFontIndices_(This,ranges,num_ranges,select_any_range,indices,num_indices,actual_num_indices) (This)->lpVtbl->GetFilteredFontIndices_(This,ranges,num_ranges,select_any_range,indices,num_indices,actual_num_indices) |
| #define IDWriteFontSet1_GetFilteredFontIndices(This,props,num_properties,select_any_range,indices,num_indices,actual_num_indices) (This)->lpVtbl->GetFilteredFontIndices(This,props,num_properties,select_any_range,indices,num_indices,actual_num_indices) |
| #define IDWriteFontSet1_GetFontAxisRanges_(This,font_index,axis_ranges,num_ranges,actual_num_ranges) (This)->lpVtbl->GetFontAxisRanges_(This,font_index,axis_ranges,num_ranges,actual_num_ranges) |
| #define IDWriteFontSet1_GetFontAxisRanges(This,axis_ranges,num_ranges,actual_num_ranges) (This)->lpVtbl->GetFontAxisRanges(This,axis_ranges,num_ranges,actual_num_ranges) |
| #define IDWriteFontSet1_GetFontFaceReference(This,index,reference) (This)->lpVtbl->IDWriteFontSet1_GetFontFaceReference(This,index,reference) |
| #define IDWriteFontSet1_CreateFontResource(This,index,resource) (This)->lpVtbl->CreateFontResource(This,index,resource) |
| #define IDWriteFontSet1_CreateFontFace(This,index,fontface) (This)->lpVtbl->CreateFontFace(This,index,fontface) |
| #define IDWriteFontSet1_GetFontLocality(This,index) (This)->lpVtbl->GetFontLocality(This,index) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontSet1_QueryInterface(IDWriteFontSet1* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontSet1_AddRef(IDWriteFontSet1* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontSet1_Release(IDWriteFontSet1* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontSet methods ***/ |
| static FORCEINLINE UINT32 IDWriteFontSet1_GetFontCount(IDWriteFontSet1* This) { |
| return This->lpVtbl->GetFontCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_FindFontFaceReference(IDWriteFontSet1* This,IDWriteFontFaceReference *reference,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFontFaceReference(This,reference,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_FindFontFace(IDWriteFontSet1* This,IDWriteFontFace *fontface,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFontFace(This,fontface,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetPropertyValues__(IDWriteFontSet1* This,DWRITE_FONT_PROPERTY_ID id,IDWriteStringList **values) { |
| return This->lpVtbl->GetPropertyValues__(This,id,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetPropertyValues_(IDWriteFontSet1* This,DWRITE_FONT_PROPERTY_ID id,const WCHAR *preferred_locales,IDWriteStringList **values) { |
| return This->lpVtbl->GetPropertyValues_(This,id,preferred_locales,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetPropertyValues(IDWriteFontSet1* This,UINT32 index,DWRITE_FONT_PROPERTY_ID id,WINBOOL *exists,IDWriteLocalizedStrings **values) { |
| return This->lpVtbl->GetPropertyValues(This,index,id,exists,values); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetPropertyOccurrenceCount(IDWriteFontSet1* This,const DWRITE_FONT_PROPERTY *property,UINT32 *count) { |
| return This->lpVtbl->GetPropertyOccurrenceCount(This,property,count); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetMatchingFonts_(IDWriteFontSet1* This,const WCHAR *family,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFontSet **fontset) { |
| return This->lpVtbl->GetMatchingFonts_(This,family,weight,stretch,style,fontset); |
| } |
| /*** IDWriteFontSet1 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetMatchingFonts(IDWriteFontSet1* This,const DWRITE_FONT_PROPERTY *property,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->IDWriteFontSet1_GetMatchingFonts(This,property,axis_values,num_values,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFirstFontResources(IDWriteFontSet1* This,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->GetFirstFontResources(This,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFilteredFonts__(IDWriteFontSet1* This,const UINT32 *indices,UINT32 num_indices,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->GetFilteredFonts__(This,indices,num_indices,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFilteredFonts_(IDWriteFontSet1* This,const DWRITE_FONT_AXIS_RANGE *axis_ranges,UINT32 num_ranges,WINBOOL select_any_range,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->GetFilteredFonts_(This,axis_ranges,num_ranges,select_any_range,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFilteredFonts(IDWriteFontSet1* This,const DWRITE_FONT_PROPERTY *props,UINT32 num_properties,WINBOOL select_any_property,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->GetFilteredFonts(This,props,num_properties,select_any_property,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFilteredFontIndices_(IDWriteFontSet1* This,const DWRITE_FONT_AXIS_RANGE *ranges,UINT32 num_ranges,WINBOOL select_any_range,UINT32 *indices,UINT32 num_indices,UINT32 *actual_num_indices) { |
| return This->lpVtbl->GetFilteredFontIndices_(This,ranges,num_ranges,select_any_range,indices,num_indices,actual_num_indices); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFilteredFontIndices(IDWriteFontSet1* This,const DWRITE_FONT_PROPERTY *props,UINT32 num_properties,WINBOOL select_any_range,UINT32 *indices,UINT32 num_indices,UINT32 *actual_num_indices) { |
| return This->lpVtbl->GetFilteredFontIndices(This,props,num_properties,select_any_range,indices,num_indices,actual_num_indices); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFontAxisRanges_(IDWriteFontSet1* This,UINT32 font_index,DWRITE_FONT_AXIS_RANGE *axis_ranges,UINT32 num_ranges,UINT32 *actual_num_ranges) { |
| return This->lpVtbl->GetFontAxisRanges_(This,font_index,axis_ranges,num_ranges,actual_num_ranges); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFontAxisRanges(IDWriteFontSet1* This,DWRITE_FONT_AXIS_RANGE *axis_ranges,UINT32 num_ranges,UINT32 *actual_num_ranges) { |
| return This->lpVtbl->GetFontAxisRanges(This,axis_ranges,num_ranges,actual_num_ranges); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_GetFontFaceReference(IDWriteFontSet1* This,UINT32 index,IDWriteFontFaceReference1 **reference) { |
| return This->lpVtbl->IDWriteFontSet1_GetFontFaceReference(This,index,reference); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_CreateFontResource(IDWriteFontSet1* This,UINT32 index,IDWriteFontResource **resource) { |
| return This->lpVtbl->CreateFontResource(This,index,resource); |
| } |
| static FORCEINLINE HRESULT IDWriteFontSet1_CreateFontFace(IDWriteFontSet1* This,UINT32 index,IDWriteFontFace5 **fontface) { |
| return This->lpVtbl->CreateFontFace(This,index,fontface); |
| } |
| static FORCEINLINE DWRITE_LOCALITY IDWriteFontSet1_GetFontLocality(IDWriteFontSet1* This,UINT32 index) { |
| return This->lpVtbl->GetFontLocality(This,index); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontSet1_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFont3 interface |
| */ |
| #ifndef __IDWriteFont3_INTERFACE_DEFINED__ |
| #define __IDWriteFont3_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFont3, 0x29748ed6, 0x8c9c, 0x4a6a, 0xbe,0x0b, 0xd9,0x12,0xe8,0x53,0x89,0x44); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("29748ed6-8c9c-4a6a-be0b-d912e8538944") |
| IDWriteFont3 : public IDWriteFont2 |
| { |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFace( |
| IDWriteFontFace3 **fontface) = 0; |
| |
| virtual WINBOOL STDMETHODCALLTYPE Equals( |
| IDWriteFont *font) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFaceReference( |
| IDWriteFontFaceReference **reference) = 0; |
| |
| virtual WINBOOL STDMETHODCALLTYPE HasCharacter( |
| UINT32 character) = 0; |
| |
| virtual DWRITE_LOCALITY STDMETHODCALLTYPE GetLocality( |
| ) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFont3, 0x29748ed6, 0x8c9c, 0x4a6a, 0xbe,0x0b, 0xd9,0x12,0xe8,0x53,0x89,0x44) |
| #endif |
| #else |
| typedef struct IDWriteFont3Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFont3 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFont3 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFont3 *This); |
| |
| /*** IDWriteFont methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontFamily)( |
| IDWriteFont3 *This, |
| IDWriteFontFamily **family); |
| |
| DWRITE_FONT_WEIGHT (STDMETHODCALLTYPE *GetWeight)( |
| IDWriteFont3 *This); |
| |
| DWRITE_FONT_STRETCH (STDMETHODCALLTYPE *GetStretch)( |
| IDWriteFont3 *This); |
| |
| DWRITE_FONT_STYLE (STDMETHODCALLTYPE *GetStyle)( |
| IDWriteFont3 *This); |
| |
| WINBOOL (STDMETHODCALLTYPE *IsSymbolFont)( |
| IDWriteFont3 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFaceNames)( |
| IDWriteFont3 *This, |
| IDWriteLocalizedStrings **names); |
| |
| HRESULT (STDMETHODCALLTYPE *GetInformationalStrings)( |
| IDWriteFont3 *This, |
| DWRITE_INFORMATIONAL_STRING_ID stringid, |
| IDWriteLocalizedStrings **strings, |
| WINBOOL *exists); |
| |
| DWRITE_FONT_SIMULATIONS (STDMETHODCALLTYPE *GetSimulations)( |
| IDWriteFont3 *This); |
| |
| void (STDMETHODCALLTYPE *GetMetrics)( |
| IDWriteFont3 *This, |
| DWRITE_FONT_METRICS *metrics); |
| |
| HRESULT (STDMETHODCALLTYPE *HasCharacter)( |
| IDWriteFont3 *This, |
| UINT32 value, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *CreateFontFace)( |
| IDWriteFont3 *This, |
| IDWriteFontFace **face); |
| |
| /*** IDWriteFont1 methods ***/ |
| void (STDMETHODCALLTYPE *IDWriteFont1_GetMetrics)( |
| IDWriteFont3 *This, |
| DWRITE_FONT_METRICS1 *metrics); |
| |
| void (STDMETHODCALLTYPE *GetPanose)( |
| IDWriteFont3 *This, |
| DWRITE_PANOSE *panose); |
| |
| HRESULT (STDMETHODCALLTYPE *GetUnicodeRanges)( |
| IDWriteFont3 *This, |
| UINT32 max_count, |
| DWRITE_UNICODE_RANGE *ranges, |
| UINT32 *count); |
| |
| WINBOOL (STDMETHODCALLTYPE *IsMonospacedFont)( |
| IDWriteFont3 *This); |
| |
| /*** IDWriteFont2 methods ***/ |
| WINBOOL (STDMETHODCALLTYPE *IsColorFont)( |
| IDWriteFont3 *This); |
| |
| /*** IDWriteFont3 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *IDWriteFont3_CreateFontFace)( |
| IDWriteFont3 *This, |
| IDWriteFontFace3 **fontface); |
| |
| WINBOOL (STDMETHODCALLTYPE *Equals)( |
| IDWriteFont3 *This, |
| IDWriteFont *font); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFaceReference)( |
| IDWriteFont3 *This, |
| IDWriteFontFaceReference **reference); |
| |
| WINBOOL (STDMETHODCALLTYPE *IDWriteFont3_HasCharacter)( |
| IDWriteFont3 *This, |
| UINT32 character); |
| |
| DWRITE_LOCALITY (STDMETHODCALLTYPE *GetLocality)( |
| IDWriteFont3 *This); |
| |
| END_INTERFACE |
| } IDWriteFont3Vtbl; |
| |
| interface IDWriteFont3 { |
| CONST_VTBL IDWriteFont3Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFont3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFont3_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFont3_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFont methods ***/ |
| #define IDWriteFont3_GetFontFamily(This,family) (This)->lpVtbl->GetFontFamily(This,family) |
| #define IDWriteFont3_GetWeight(This) (This)->lpVtbl->GetWeight(This) |
| #define IDWriteFont3_GetStretch(This) (This)->lpVtbl->GetStretch(This) |
| #define IDWriteFont3_GetStyle(This) (This)->lpVtbl->GetStyle(This) |
| #define IDWriteFont3_IsSymbolFont(This) (This)->lpVtbl->IsSymbolFont(This) |
| #define IDWriteFont3_GetFaceNames(This,names) (This)->lpVtbl->GetFaceNames(This,names) |
| #define IDWriteFont3_GetInformationalStrings(This,stringid,strings,exists) (This)->lpVtbl->GetInformationalStrings(This,stringid,strings,exists) |
| #define IDWriteFont3_GetSimulations(This) (This)->lpVtbl->GetSimulations(This) |
| /*** IDWriteFont1 methods ***/ |
| #define IDWriteFont3_GetMetrics(This,metrics) (This)->lpVtbl->IDWriteFont1_GetMetrics(This,metrics) |
| #define IDWriteFont3_GetPanose(This,panose) (This)->lpVtbl->GetPanose(This,panose) |
| #define IDWriteFont3_GetUnicodeRanges(This,max_count,ranges,count) (This)->lpVtbl->GetUnicodeRanges(This,max_count,ranges,count) |
| #define IDWriteFont3_IsMonospacedFont(This) (This)->lpVtbl->IsMonospacedFont(This) |
| /*** IDWriteFont2 methods ***/ |
| #define IDWriteFont3_IsColorFont(This) (This)->lpVtbl->IsColorFont(This) |
| /*** IDWriteFont3 methods ***/ |
| #define IDWriteFont3_CreateFontFace(This,fontface) (This)->lpVtbl->IDWriteFont3_CreateFontFace(This,fontface) |
| #define IDWriteFont3_Equals(This,font) (This)->lpVtbl->Equals(This,font) |
| #define IDWriteFont3_GetFontFaceReference(This,reference) (This)->lpVtbl->GetFontFaceReference(This,reference) |
| #define IDWriteFont3_HasCharacter(This,character) (This)->lpVtbl->IDWriteFont3_HasCharacter(This,character) |
| #define IDWriteFont3_GetLocality(This) (This)->lpVtbl->GetLocality(This) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFont3_QueryInterface(IDWriteFont3* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFont3_AddRef(IDWriteFont3* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFont3_Release(IDWriteFont3* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFont methods ***/ |
| static FORCEINLINE HRESULT IDWriteFont3_GetFontFamily(IDWriteFont3* This,IDWriteFontFamily **family) { |
| return This->lpVtbl->GetFontFamily(This,family); |
| } |
| static FORCEINLINE DWRITE_FONT_WEIGHT IDWriteFont3_GetWeight(IDWriteFont3* This) { |
| return This->lpVtbl->GetWeight(This); |
| } |
| static FORCEINLINE DWRITE_FONT_STRETCH IDWriteFont3_GetStretch(IDWriteFont3* This) { |
| return This->lpVtbl->GetStretch(This); |
| } |
| static FORCEINLINE DWRITE_FONT_STYLE IDWriteFont3_GetStyle(IDWriteFont3* This) { |
| return This->lpVtbl->GetStyle(This); |
| } |
| static FORCEINLINE WINBOOL IDWriteFont3_IsSymbolFont(IDWriteFont3* This) { |
| return This->lpVtbl->IsSymbolFont(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFont3_GetFaceNames(IDWriteFont3* This,IDWriteLocalizedStrings **names) { |
| return This->lpVtbl->GetFaceNames(This,names); |
| } |
| static FORCEINLINE HRESULT IDWriteFont3_GetInformationalStrings(IDWriteFont3* This,DWRITE_INFORMATIONAL_STRING_ID stringid,IDWriteLocalizedStrings **strings,WINBOOL *exists) { |
| return This->lpVtbl->GetInformationalStrings(This,stringid,strings,exists); |
| } |
| static FORCEINLINE DWRITE_FONT_SIMULATIONS IDWriteFont3_GetSimulations(IDWriteFont3* This) { |
| return This->lpVtbl->GetSimulations(This); |
| } |
| /*** IDWriteFont1 methods ***/ |
| static FORCEINLINE void IDWriteFont3_GetMetrics(IDWriteFont3* This,DWRITE_FONT_METRICS1 *metrics) { |
| This->lpVtbl->IDWriteFont1_GetMetrics(This,metrics); |
| } |
| static FORCEINLINE void IDWriteFont3_GetPanose(IDWriteFont3* This,DWRITE_PANOSE *panose) { |
| This->lpVtbl->GetPanose(This,panose); |
| } |
| static FORCEINLINE HRESULT IDWriteFont3_GetUnicodeRanges(IDWriteFont3* This,UINT32 max_count,DWRITE_UNICODE_RANGE *ranges,UINT32 *count) { |
| return This->lpVtbl->GetUnicodeRanges(This,max_count,ranges,count); |
| } |
| static FORCEINLINE WINBOOL IDWriteFont3_IsMonospacedFont(IDWriteFont3* This) { |
| return This->lpVtbl->IsMonospacedFont(This); |
| } |
| /*** IDWriteFont2 methods ***/ |
| static FORCEINLINE WINBOOL IDWriteFont3_IsColorFont(IDWriteFont3* This) { |
| return This->lpVtbl->IsColorFont(This); |
| } |
| /*** IDWriteFont3 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFont3_CreateFontFace(IDWriteFont3* This,IDWriteFontFace3 **fontface) { |
| return This->lpVtbl->IDWriteFont3_CreateFontFace(This,fontface); |
| } |
| static FORCEINLINE WINBOOL IDWriteFont3_Equals(IDWriteFont3* This,IDWriteFont *font) { |
| return This->lpVtbl->Equals(This,font); |
| } |
| static FORCEINLINE HRESULT IDWriteFont3_GetFontFaceReference(IDWriteFont3* This,IDWriteFontFaceReference **reference) { |
| return This->lpVtbl->GetFontFaceReference(This,reference); |
| } |
| static FORCEINLINE WINBOOL IDWriteFont3_HasCharacter(IDWriteFont3* This,UINT32 character) { |
| return This->lpVtbl->IDWriteFont3_HasCharacter(This,character); |
| } |
| static FORCEINLINE DWRITE_LOCALITY IDWriteFont3_GetLocality(IDWriteFont3* This) { |
| return This->lpVtbl->GetLocality(This); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFont3_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontFamily1 interface |
| */ |
| #ifndef __IDWriteFontFamily1_INTERFACE_DEFINED__ |
| #define __IDWriteFontFamily1_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontFamily1, 0xda20d8ef, 0x812a, 0x4c43, 0x98,0x02, 0x62,0xec,0x4a,0xbd,0x7a,0xdf); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("da20d8ef-812a-4c43-9802-62ec4abd7adf") |
| IDWriteFontFamily1 : public IDWriteFontFamily |
| { |
| virtual DWRITE_LOCALITY STDMETHODCALLTYPE GetFontLocality( |
| UINT32 index) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFont( |
| UINT32 index, |
| IDWriteFont3 **font) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFaceReference( |
| UINT32 index, |
| IDWriteFontFaceReference **reference) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontFamily1, 0xda20d8ef, 0x812a, 0x4c43, 0x98,0x02, 0x62,0xec,0x4a,0xbd,0x7a,0xdf) |
| #endif |
| #else |
| typedef struct IDWriteFontFamily1Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontFamily1 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontFamily1 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontFamily1 *This); |
| |
| /*** IDWriteFontList methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontCollection)( |
| IDWriteFontFamily1 *This, |
| IDWriteFontCollection **collection); |
| |
| UINT32 (STDMETHODCALLTYPE *GetFontCount)( |
| IDWriteFontFamily1 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFont)( |
| IDWriteFontFamily1 *This, |
| UINT32 index, |
| IDWriteFont **font); |
| |
| /*** IDWriteFontFamily methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFamilyNames)( |
| IDWriteFontFamily1 *This, |
| IDWriteLocalizedStrings **names); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFirstMatchingFont)( |
| IDWriteFontFamily1 *This, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFont **font); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontFamily1 *This, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFontList **fonts); |
| |
| /*** IDWriteFontFamily1 methods ***/ |
| DWRITE_LOCALITY (STDMETHODCALLTYPE *GetFontLocality)( |
| IDWriteFontFamily1 *This, |
| UINT32 index); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontFamily1_GetFont)( |
| IDWriteFontFamily1 *This, |
| UINT32 index, |
| IDWriteFont3 **font); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFaceReference)( |
| IDWriteFontFamily1 *This, |
| UINT32 index, |
| IDWriteFontFaceReference **reference); |
| |
| END_INTERFACE |
| } IDWriteFontFamily1Vtbl; |
| |
| interface IDWriteFontFamily1 { |
| CONST_VTBL IDWriteFontFamily1Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontFamily1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontFamily1_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontFamily1_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontList methods ***/ |
| #define IDWriteFontFamily1_GetFontCollection(This,collection) (This)->lpVtbl->GetFontCollection(This,collection) |
| #define IDWriteFontFamily1_GetFontCount(This) (This)->lpVtbl->GetFontCount(This) |
| /*** IDWriteFontFamily methods ***/ |
| #define IDWriteFontFamily1_GetFamilyNames(This,names) (This)->lpVtbl->GetFamilyNames(This,names) |
| #define IDWriteFontFamily1_GetFirstMatchingFont(This,weight,stretch,style,font) (This)->lpVtbl->GetFirstMatchingFont(This,weight,stretch,style,font) |
| #define IDWriteFontFamily1_GetMatchingFonts(This,weight,stretch,style,fonts) (This)->lpVtbl->GetMatchingFonts(This,weight,stretch,style,fonts) |
| /*** IDWriteFontFamily1 methods ***/ |
| #define IDWriteFontFamily1_GetFontLocality(This,index) (This)->lpVtbl->GetFontLocality(This,index) |
| #define IDWriteFontFamily1_GetFont(This,index,font) (This)->lpVtbl->IDWriteFontFamily1_GetFont(This,index,font) |
| #define IDWriteFontFamily1_GetFontFaceReference(This,index,reference) (This)->lpVtbl->GetFontFaceReference(This,index,reference) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily1_QueryInterface(IDWriteFontFamily1* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontFamily1_AddRef(IDWriteFontFamily1* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontFamily1_Release(IDWriteFontFamily1* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontList methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily1_GetFontCollection(IDWriteFontFamily1* This,IDWriteFontCollection **collection) { |
| return This->lpVtbl->GetFontCollection(This,collection); |
| } |
| static FORCEINLINE UINT32 IDWriteFontFamily1_GetFontCount(IDWriteFontFamily1* This) { |
| return This->lpVtbl->GetFontCount(This); |
| } |
| /*** IDWriteFontFamily methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily1_GetFamilyNames(IDWriteFontFamily1* This,IDWriteLocalizedStrings **names) { |
| return This->lpVtbl->GetFamilyNames(This,names); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily1_GetFirstMatchingFont(IDWriteFontFamily1* 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 IDWriteFontFamily1_GetMatchingFonts(IDWriteFontFamily1* This,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFontList **fonts) { |
| return This->lpVtbl->GetMatchingFonts(This,weight,stretch,style,fonts); |
| } |
| /*** IDWriteFontFamily1 methods ***/ |
| static FORCEINLINE DWRITE_LOCALITY IDWriteFontFamily1_GetFontLocality(IDWriteFontFamily1* This,UINT32 index) { |
| return This->lpVtbl->GetFontLocality(This,index); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily1_GetFont(IDWriteFontFamily1* This,UINT32 index,IDWriteFont3 **font) { |
| return This->lpVtbl->IDWriteFontFamily1_GetFont(This,index,font); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily1_GetFontFaceReference(IDWriteFontFamily1* This,UINT32 index,IDWriteFontFaceReference **reference) { |
| return This->lpVtbl->GetFontFaceReference(This,index,reference); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontFamily1_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontFamily2 interface |
| */ |
| #ifndef __IDWriteFontFamily2_INTERFACE_DEFINED__ |
| #define __IDWriteFontFamily2_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontFamily2, 0x3ed49e77, 0xa398, 0x4261, 0xb9,0xcf, 0xc1,0x26,0xc2,0x13,0x1e,0xf3); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("3ed49e77-a398-4261-b9cf-c126c2131ef3") |
| IDWriteFontFamily2 : public IDWriteFontFamily1 |
| { |
| virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts( |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontList2 **fontlist) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontSet( |
| IDWriteFontSet1 **fontset) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontFamily2, 0x3ed49e77, 0xa398, 0x4261, 0xb9,0xcf, 0xc1,0x26,0xc2,0x13,0x1e,0xf3) |
| #endif |
| #else |
| typedef struct IDWriteFontFamily2Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontFamily2 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontFamily2 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontFamily2 *This); |
| |
| /*** IDWriteFontList methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontCollection)( |
| IDWriteFontFamily2 *This, |
| IDWriteFontCollection **collection); |
| |
| UINT32 (STDMETHODCALLTYPE *GetFontCount)( |
| IDWriteFontFamily2 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFont)( |
| IDWriteFontFamily2 *This, |
| UINT32 index, |
| IDWriteFont **font); |
| |
| /*** IDWriteFontFamily methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFamilyNames)( |
| IDWriteFontFamily2 *This, |
| IDWriteLocalizedStrings **names); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFirstMatchingFont)( |
| IDWriteFontFamily2 *This, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFont **font); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontFamily2 *This, |
| DWRITE_FONT_WEIGHT weight, |
| DWRITE_FONT_STRETCH stretch, |
| DWRITE_FONT_STYLE style, |
| IDWriteFontList **fonts); |
| |
| /*** IDWriteFontFamily1 methods ***/ |
| DWRITE_LOCALITY (STDMETHODCALLTYPE *GetFontLocality)( |
| IDWriteFontFamily2 *This, |
| UINT32 index); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontFamily1_GetFont)( |
| IDWriteFontFamily2 *This, |
| UINT32 index, |
| IDWriteFont3 **font); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFaceReference)( |
| IDWriteFontFamily2 *This, |
| UINT32 index, |
| IDWriteFontFaceReference **reference); |
| |
| /*** IDWriteFontFamily2 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontFamily2_GetMatchingFonts)( |
| IDWriteFontFamily2 *This, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontList2 **fontlist); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontSet)( |
| IDWriteFontFamily2 *This, |
| IDWriteFontSet1 **fontset); |
| |
| END_INTERFACE |
| } IDWriteFontFamily2Vtbl; |
| |
| interface IDWriteFontFamily2 { |
| CONST_VTBL IDWriteFontFamily2Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontFamily2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontFamily2_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontFamily2_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontList methods ***/ |
| #define IDWriteFontFamily2_GetFontCollection(This,collection) (This)->lpVtbl->GetFontCollection(This,collection) |
| #define IDWriteFontFamily2_GetFontCount(This) (This)->lpVtbl->GetFontCount(This) |
| /*** IDWriteFontFamily methods ***/ |
| #define IDWriteFontFamily2_GetFamilyNames(This,names) (This)->lpVtbl->GetFamilyNames(This,names) |
| #define IDWriteFontFamily2_GetFirstMatchingFont(This,weight,stretch,style,font) (This)->lpVtbl->GetFirstMatchingFont(This,weight,stretch,style,font) |
| /*** IDWriteFontFamily1 methods ***/ |
| #define IDWriteFontFamily2_GetFontLocality(This,index) (This)->lpVtbl->GetFontLocality(This,index) |
| #define IDWriteFontFamily2_GetFont(This,index,font) (This)->lpVtbl->IDWriteFontFamily1_GetFont(This,index,font) |
| #define IDWriteFontFamily2_GetFontFaceReference(This,index,reference) (This)->lpVtbl->GetFontFaceReference(This,index,reference) |
| /*** IDWriteFontFamily2 methods ***/ |
| #define IDWriteFontFamily2_GetMatchingFonts(This,axis_values,num_values,fontlist) (This)->lpVtbl->IDWriteFontFamily2_GetMatchingFonts(This,axis_values,num_values,fontlist) |
| #define IDWriteFontFamily2_GetFontSet(This,fontset) (This)->lpVtbl->GetFontSet(This,fontset) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily2_QueryInterface(IDWriteFontFamily2* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontFamily2_AddRef(IDWriteFontFamily2* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontFamily2_Release(IDWriteFontFamily2* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontList methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFontCollection(IDWriteFontFamily2* This,IDWriteFontCollection **collection) { |
| return This->lpVtbl->GetFontCollection(This,collection); |
| } |
| static FORCEINLINE UINT32 IDWriteFontFamily2_GetFontCount(IDWriteFontFamily2* This) { |
| return This->lpVtbl->GetFontCount(This); |
| } |
| /*** IDWriteFontFamily methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFamilyNames(IDWriteFontFamily2* This,IDWriteLocalizedStrings **names) { |
| return This->lpVtbl->GetFamilyNames(This,names); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFirstMatchingFont(IDWriteFontFamily2* This,DWRITE_FONT_WEIGHT weight,DWRITE_FONT_STRETCH stretch,DWRITE_FONT_STYLE style,IDWriteFont **font) { |
| return This->lpVtbl->GetFirstMatchingFont(This,weight,stretch,style,font); |
| } |
| /*** IDWriteFontFamily1 methods ***/ |
| static FORCEINLINE DWRITE_LOCALITY IDWriteFontFamily2_GetFontLocality(IDWriteFontFamily2* This,UINT32 index) { |
| return This->lpVtbl->GetFontLocality(This,index); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFont(IDWriteFontFamily2* This,UINT32 index,IDWriteFont3 **font) { |
| return This->lpVtbl->IDWriteFontFamily1_GetFont(This,index,font); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFontFaceReference(IDWriteFontFamily2* This,UINT32 index,IDWriteFontFaceReference **reference) { |
| return This->lpVtbl->GetFontFaceReference(This,index,reference); |
| } |
| /*** IDWriteFontFamily2 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetMatchingFonts(IDWriteFontFamily2* This,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontList2 **fontlist) { |
| return This->lpVtbl->IDWriteFontFamily2_GetMatchingFonts(This,axis_values,num_values,fontlist); |
| } |
| static FORCEINLINE HRESULT IDWriteFontFamily2_GetFontSet(IDWriteFontFamily2* This,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->GetFontSet(This,fontset); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontFamily2_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontCollection1 interface |
| */ |
| #ifndef __IDWriteFontCollection1_INTERFACE_DEFINED__ |
| #define __IDWriteFontCollection1_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontCollection1, 0x53585141, 0xd9f8, 0x4095, 0x83,0x21, 0xd7,0x3c,0xf6,0xbd,0x11,0x6c); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("53585141-d9f8-4095-8321-d73cf6bd116c") |
| IDWriteFontCollection1 : public IDWriteFontCollection |
| { |
| virtual HRESULT STDMETHODCALLTYPE GetFontSet( |
| IDWriteFontSet **fontset) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFamily( |
| UINT32 index, |
| IDWriteFontFamily1 **family) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontCollection1, 0x53585141, 0xd9f8, 0x4095, 0x83,0x21, 0xd7,0x3c,0xf6,0xbd,0x11,0x6c) |
| #endif |
| #else |
| typedef struct IDWriteFontCollection1Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontCollection1 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontCollection1 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontCollection1 *This); |
| |
| /*** IDWriteFontCollection methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetFontFamilyCount)( |
| IDWriteFontCollection1 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFamily)( |
| IDWriteFontCollection1 *This, |
| UINT32 index, |
| IDWriteFontFamily **family); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFamilyName)( |
| IDWriteFontCollection1 *This, |
| const WCHAR *name, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFromFontFace)( |
| IDWriteFontCollection1 *This, |
| IDWriteFontFace *face, |
| IDWriteFont **font); |
| |
| /*** IDWriteFontCollection1 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontSet)( |
| IDWriteFontCollection1 *This, |
| IDWriteFontSet **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection1_GetFontFamily)( |
| IDWriteFontCollection1 *This, |
| UINT32 index, |
| IDWriteFontFamily1 **family); |
| |
| END_INTERFACE |
| } IDWriteFontCollection1Vtbl; |
| |
| interface IDWriteFontCollection1 { |
| CONST_VTBL IDWriteFontCollection1Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontCollection1_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontCollection1_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontCollection1_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontCollection methods ***/ |
| #define IDWriteFontCollection1_GetFontFamilyCount(This) (This)->lpVtbl->GetFontFamilyCount(This) |
| #define IDWriteFontCollection1_FindFamilyName(This,name,index,exists) (This)->lpVtbl->FindFamilyName(This,name,index,exists) |
| #define IDWriteFontCollection1_GetFontFromFontFace(This,face,font) (This)->lpVtbl->GetFontFromFontFace(This,face,font) |
| /*** IDWriteFontCollection1 methods ***/ |
| #define IDWriteFontCollection1_GetFontSet(This,fontset) (This)->lpVtbl->GetFontSet(This,fontset) |
| #define IDWriteFontCollection1_GetFontFamily(This,index,family) (This)->lpVtbl->IDWriteFontCollection1_GetFontFamily(This,index,family) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection1_QueryInterface(IDWriteFontCollection1* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection1_AddRef(IDWriteFontCollection1* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection1_Release(IDWriteFontCollection1* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontCollection methods ***/ |
| static FORCEINLINE UINT32 IDWriteFontCollection1_GetFontFamilyCount(IDWriteFontCollection1* This) { |
| return This->lpVtbl->GetFontFamilyCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection1_FindFamilyName(IDWriteFontCollection1* This,const WCHAR *name,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFamilyName(This,name,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection1_GetFontFromFontFace(IDWriteFontCollection1* This,IDWriteFontFace *face,IDWriteFont **font) { |
| return This->lpVtbl->GetFontFromFontFace(This,face,font); |
| } |
| /*** IDWriteFontCollection1 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection1_GetFontSet(IDWriteFontCollection1* This,IDWriteFontSet **fontset) { |
| return This->lpVtbl->GetFontSet(This,fontset); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection1_GetFontFamily(IDWriteFontCollection1* This,UINT32 index,IDWriteFontFamily1 **family) { |
| return This->lpVtbl->IDWriteFontCollection1_GetFontFamily(This,index,family); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontCollection1_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontCollection2 interface |
| */ |
| #ifndef __IDWriteFontCollection2_INTERFACE_DEFINED__ |
| #define __IDWriteFontCollection2_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontCollection2, 0x514039c6, 0x4617, 0x4064, 0xbf,0x8b, 0x92,0xea,0x83,0xe5,0x06,0xe0); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("514039c6-4617-4064-bf8b-92ea83e506e0") |
| IDWriteFontCollection2 : public IDWriteFontCollection1 |
| { |
| virtual HRESULT STDMETHODCALLTYPE GetFontFamily( |
| UINT32 index, |
| IDWriteFontFamily2 **family) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetMatchingFonts( |
| const WCHAR *familyname, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontList2 **fontlist) = 0; |
| |
| virtual DWRITE_FONT_FAMILY_MODEL STDMETHODCALLTYPE GetFontFamilyModel( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontSet( |
| IDWriteFontSet1 **fontset) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontCollection2, 0x514039c6, 0x4617, 0x4064, 0xbf,0x8b, 0x92,0xea,0x83,0xe5,0x06,0xe0) |
| #endif |
| #else |
| typedef struct IDWriteFontCollection2Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontCollection2 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontCollection2 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontCollection2 *This); |
| |
| /*** IDWriteFontCollection methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetFontFamilyCount)( |
| IDWriteFontCollection2 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFamily)( |
| IDWriteFontCollection2 *This, |
| UINT32 index, |
| IDWriteFontFamily **family); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFamilyName)( |
| IDWriteFontCollection2 *This, |
| const WCHAR *name, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFromFontFace)( |
| IDWriteFontCollection2 *This, |
| IDWriteFontFace *face, |
| IDWriteFont **font); |
| |
| /*** IDWriteFontCollection1 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontSet)( |
| IDWriteFontCollection2 *This, |
| IDWriteFontSet **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection1_GetFontFamily)( |
| IDWriteFontCollection2 *This, |
| UINT32 index, |
| IDWriteFontFamily1 **family); |
| |
| /*** IDWriteFontCollection2 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection2_GetFontFamily)( |
| IDWriteFontCollection2 *This, |
| UINT32 index, |
| IDWriteFontFamily2 **family); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontCollection2 *This, |
| const WCHAR *familyname, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontList2 **fontlist); |
| |
| DWRITE_FONT_FAMILY_MODEL (STDMETHODCALLTYPE *GetFontFamilyModel)( |
| IDWriteFontCollection2 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection2_GetFontSet)( |
| IDWriteFontCollection2 *This, |
| IDWriteFontSet1 **fontset); |
| |
| END_INTERFACE |
| } IDWriteFontCollection2Vtbl; |
| |
| interface IDWriteFontCollection2 { |
| CONST_VTBL IDWriteFontCollection2Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontCollection2_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontCollection2_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontCollection2_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontCollection methods ***/ |
| #define IDWriteFontCollection2_GetFontFamilyCount(This) (This)->lpVtbl->GetFontFamilyCount(This) |
| #define IDWriteFontCollection2_FindFamilyName(This,name,index,exists) (This)->lpVtbl->FindFamilyName(This,name,index,exists) |
| #define IDWriteFontCollection2_GetFontFromFontFace(This,face,font) (This)->lpVtbl->GetFontFromFontFace(This,face,font) |
| /*** IDWriteFontCollection1 methods ***/ |
| /*** IDWriteFontCollection2 methods ***/ |
| #define IDWriteFontCollection2_GetFontFamily(This,index,family) (This)->lpVtbl->IDWriteFontCollection2_GetFontFamily(This,index,family) |
| #define IDWriteFontCollection2_GetMatchingFonts(This,familyname,axis_values,num_values,fontlist) (This)->lpVtbl->GetMatchingFonts(This,familyname,axis_values,num_values,fontlist) |
| #define IDWriteFontCollection2_GetFontFamilyModel(This) (This)->lpVtbl->GetFontFamilyModel(This) |
| #define IDWriteFontCollection2_GetFontSet(This,fontset) (This)->lpVtbl->IDWriteFontCollection2_GetFontSet(This,fontset) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection2_QueryInterface(IDWriteFontCollection2* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection2_AddRef(IDWriteFontCollection2* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection2_Release(IDWriteFontCollection2* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontCollection methods ***/ |
| static FORCEINLINE UINT32 IDWriteFontCollection2_GetFontFamilyCount(IDWriteFontCollection2* This) { |
| return This->lpVtbl->GetFontFamilyCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection2_FindFamilyName(IDWriteFontCollection2* This,const WCHAR *name,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFamilyName(This,name,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection2_GetFontFromFontFace(IDWriteFontCollection2* This,IDWriteFontFace *face,IDWriteFont **font) { |
| return This->lpVtbl->GetFontFromFontFace(This,face,font); |
| } |
| /*** IDWriteFontCollection1 methods ***/ |
| /*** IDWriteFontCollection2 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection2_GetFontFamily(IDWriteFontCollection2* This,UINT32 index,IDWriteFontFamily2 **family) { |
| return This->lpVtbl->IDWriteFontCollection2_GetFontFamily(This,index,family); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection2_GetMatchingFonts(IDWriteFontCollection2* This,const WCHAR *familyname,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontList2 **fontlist) { |
| return This->lpVtbl->GetMatchingFonts(This,familyname,axis_values,num_values,fontlist); |
| } |
| static FORCEINLINE DWRITE_FONT_FAMILY_MODEL IDWriteFontCollection2_GetFontFamilyModel(IDWriteFontCollection2* This) { |
| return This->lpVtbl->GetFontFamilyModel(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection2_GetFontSet(IDWriteFontCollection2* This,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->IDWriteFontCollection2_GetFontSet(This,fontset); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontCollection2_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontCollection3 interface |
| */ |
| #ifndef __IDWriteFontCollection3_INTERFACE_DEFINED__ |
| #define __IDWriteFontCollection3_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontCollection3, 0xa4d055a6, 0xf9e3, 0x4e25, 0x93,0xb7, 0x9e,0x30,0x9f,0x3a,0xf8,0xe9); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("a4d055a6-f9e3-4e25-93b7-9e309f3af8e9") |
| IDWriteFontCollection3 : public IDWriteFontCollection2 |
| { |
| virtual HANDLE STDMETHODCALLTYPE GetExpirationEvent( |
| ) = 0; |
| |
| }; |
| #ifdef __CRT_UUID_DECL |
| __CRT_UUID_DECL(IDWriteFontCollection3, 0xa4d055a6, 0xf9e3, 0x4e25, 0x93,0xb7, 0x9e,0x30,0x9f,0x3a,0xf8,0xe9) |
| #endif |
| #else |
| typedef struct IDWriteFontCollection3Vtbl { |
| BEGIN_INTERFACE |
| |
| /*** IUnknown methods ***/ |
| HRESULT (STDMETHODCALLTYPE *QueryInterface)( |
| IDWriteFontCollection3 *This, |
| REFIID riid, |
| void **ppvObject); |
| |
| ULONG (STDMETHODCALLTYPE *AddRef)( |
| IDWriteFontCollection3 *This); |
| |
| ULONG (STDMETHODCALLTYPE *Release)( |
| IDWriteFontCollection3 *This); |
| |
| /*** IDWriteFontCollection methods ***/ |
| UINT32 (STDMETHODCALLTYPE *GetFontFamilyCount)( |
| IDWriteFontCollection3 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFamily)( |
| IDWriteFontCollection3 *This, |
| UINT32 index, |
| IDWriteFontFamily **family); |
| |
| HRESULT (STDMETHODCALLTYPE *FindFamilyName)( |
| IDWriteFontCollection3 *This, |
| const WCHAR *name, |
| UINT32 *index, |
| WINBOOL *exists); |
| |
| HRESULT (STDMETHODCALLTYPE *GetFontFromFontFace)( |
| IDWriteFontCollection3 *This, |
| IDWriteFontFace *face, |
| IDWriteFont **font); |
| |
| /*** IDWriteFontCollection1 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *GetFontSet)( |
| IDWriteFontCollection3 *This, |
| IDWriteFontSet **fontset); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection1_GetFontFamily)( |
| IDWriteFontCollection3 *This, |
| UINT32 index, |
| IDWriteFontFamily1 **family); |
| |
| /*** IDWriteFontCollection2 methods ***/ |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection2_GetFontFamily)( |
| IDWriteFontCollection3 *This, |
| UINT32 index, |
| IDWriteFontFamily2 **family); |
| |
| HRESULT (STDMETHODCALLTYPE *GetMatchingFonts)( |
| IDWriteFontCollection3 *This, |
| const WCHAR *familyname, |
| const DWRITE_FONT_AXIS_VALUE *axis_values, |
| UINT32 num_values, |
| IDWriteFontList2 **fontlist); |
| |
| DWRITE_FONT_FAMILY_MODEL (STDMETHODCALLTYPE *GetFontFamilyModel)( |
| IDWriteFontCollection3 *This); |
| |
| HRESULT (STDMETHODCALLTYPE *IDWriteFontCollection2_GetFontSet)( |
| IDWriteFontCollection3 *This, |
| IDWriteFontSet1 **fontset); |
| |
| /*** IDWriteFontCollection3 methods ***/ |
| HANDLE (STDMETHODCALLTYPE *GetExpirationEvent)( |
| IDWriteFontCollection3 *This); |
| |
| END_INTERFACE |
| } IDWriteFontCollection3Vtbl; |
| |
| interface IDWriteFontCollection3 { |
| CONST_VTBL IDWriteFontCollection3Vtbl* lpVtbl; |
| }; |
| |
| #ifdef COBJMACROS |
| #ifndef WIDL_C_INLINE_WRAPPERS |
| /*** IUnknown methods ***/ |
| #define IDWriteFontCollection3_QueryInterface(This,riid,ppvObject) (This)->lpVtbl->QueryInterface(This,riid,ppvObject) |
| #define IDWriteFontCollection3_AddRef(This) (This)->lpVtbl->AddRef(This) |
| #define IDWriteFontCollection3_Release(This) (This)->lpVtbl->Release(This) |
| /*** IDWriteFontCollection methods ***/ |
| #define IDWriteFontCollection3_GetFontFamilyCount(This) (This)->lpVtbl->GetFontFamilyCount(This) |
| #define IDWriteFontCollection3_FindFamilyName(This,name,index,exists) (This)->lpVtbl->FindFamilyName(This,name,index,exists) |
| #define IDWriteFontCollection3_GetFontFromFontFace(This,face,font) (This)->lpVtbl->GetFontFromFontFace(This,face,font) |
| /*** IDWriteFontCollection1 methods ***/ |
| /*** IDWriteFontCollection2 methods ***/ |
| #define IDWriteFontCollection3_GetFontFamily(This,index,family) (This)->lpVtbl->IDWriteFontCollection2_GetFontFamily(This,index,family) |
| #define IDWriteFontCollection3_GetMatchingFonts(This,familyname,axis_values,num_values,fontlist) (This)->lpVtbl->GetMatchingFonts(This,familyname,axis_values,num_values,fontlist) |
| #define IDWriteFontCollection3_GetFontFamilyModel(This) (This)->lpVtbl->GetFontFamilyModel(This) |
| #define IDWriteFontCollection3_GetFontSet(This,fontset) (This)->lpVtbl->IDWriteFontCollection2_GetFontSet(This,fontset) |
| /*** IDWriteFontCollection3 methods ***/ |
| #define IDWriteFontCollection3_GetExpirationEvent(This) (This)->lpVtbl->GetExpirationEvent(This) |
| #else |
| /*** IUnknown methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection3_QueryInterface(IDWriteFontCollection3* This,REFIID riid,void **ppvObject) { |
| return This->lpVtbl->QueryInterface(This,riid,ppvObject); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection3_AddRef(IDWriteFontCollection3* This) { |
| return This->lpVtbl->AddRef(This); |
| } |
| static FORCEINLINE ULONG IDWriteFontCollection3_Release(IDWriteFontCollection3* This) { |
| return This->lpVtbl->Release(This); |
| } |
| /*** IDWriteFontCollection methods ***/ |
| static FORCEINLINE UINT32 IDWriteFontCollection3_GetFontFamilyCount(IDWriteFontCollection3* This) { |
| return This->lpVtbl->GetFontFamilyCount(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection3_FindFamilyName(IDWriteFontCollection3* This,const WCHAR *name,UINT32 *index,WINBOOL *exists) { |
| return This->lpVtbl->FindFamilyName(This,name,index,exists); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection3_GetFontFromFontFace(IDWriteFontCollection3* This,IDWriteFontFace *face,IDWriteFont **font) { |
| return This->lpVtbl->GetFontFromFontFace(This,face,font); |
| } |
| /*** IDWriteFontCollection1 methods ***/ |
| /*** IDWriteFontCollection2 methods ***/ |
| static FORCEINLINE HRESULT IDWriteFontCollection3_GetFontFamily(IDWriteFontCollection3* This,UINT32 index,IDWriteFontFamily2 **family) { |
| return This->lpVtbl->IDWriteFontCollection2_GetFontFamily(This,index,family); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection3_GetMatchingFonts(IDWriteFontCollection3* This,const WCHAR *familyname,const DWRITE_FONT_AXIS_VALUE *axis_values,UINT32 num_values,IDWriteFontList2 **fontlist) { |
| return This->lpVtbl->GetMatchingFonts(This,familyname,axis_values,num_values,fontlist); |
| } |
| static FORCEINLINE DWRITE_FONT_FAMILY_MODEL IDWriteFontCollection3_GetFontFamilyModel(IDWriteFontCollection3* This) { |
| return This->lpVtbl->GetFontFamilyModel(This); |
| } |
| static FORCEINLINE HRESULT IDWriteFontCollection3_GetFontSet(IDWriteFontCollection3* This,IDWriteFontSet1 **fontset) { |
| return This->lpVtbl->IDWriteFontCollection2_GetFontSet(This,fontset); |
| } |
| /*** IDWriteFontCollection3 methods ***/ |
| static FORCEINLINE HANDLE IDWriteFontCollection3_GetExpirationEvent(IDWriteFontCollection3* This) { |
| return This->lpVtbl->GetExpirationEvent(This); |
| } |
| #endif |
| #endif |
| |
| #endif |
| |
| |
| #endif /* __IDWriteFontCollection3_INTERFACE_DEFINED__ */ |
| |
| /***************************************************************************** |
| * IDWriteFontFaceReference interface |
| */ |
| #ifndef __IDWriteFontFaceReference_INTERFACE_DEFINED__ |
| #define __IDWriteFontFaceReference_INTERFACE_DEFINED__ |
| |
| DEFINE_GUID(IID_IDWriteFontFaceReference, 0x5e7fa7ca, 0xdde3, 0x424c, 0x89,0xf0, 0x9f,0xcd,0x6f,0xed,0x58,0xcd); |
| #if defined(__cplusplus) && !defined(CINTERFACE) |
| MIDL_INTERFACE("5e7fa7ca-dde3-424c-89f0-9fcd6fed58cd") |
| IDWriteFontFaceReference : public IUnknown |
| { |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFace( |
| IDWriteFontFace3 **fontface) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE CreateFontFaceWithSimulations( |
| DWRITE_FONT_SIMULATIONS simulations, |
| IDWriteFontFace3 **fontface) = 0; |
| |
| virtual WINBOOL STDMETHODCALLTYPE Equals( |
| IDWriteFontFaceReference *reference) = 0; |
| |
| virtual UINT32 STDMETHODCALLTYPE GetFontFaceIndex( |
| ) = 0; |
| |
| virtual DWRITE_FONT_SIMULATIONS STDMETHODCALLTYPE GetSimulations( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFontFile( |
| IDWriteFontFile **fontfile) = 0; |
| |
| virtual UINT64 STDMETHODCALLTYPE GetLocalFileSize( |
| ) = 0; |
| |
| virtual UINT64 STDMETHODCALLTYPE GetFileSize( |
| ) = 0; |
| |
| virtual HRESULT STDMETHODCALLTYPE GetFileTime( |
| FILETIME *writetime) = 0; |
| |
| virtual |