From 169f8a53a9940c82473de2daedd2621092002557 Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 17 Feb 2016 00:19:37 +0300 Subject: [PATCH] include: Some more definitions for dwrite_3.idl. Signed-off-by: Nikolay Sivov Signed-off-by: Alexandre Julliard --- include/dwrite_3.idl | 41 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/include/dwrite_3.idl b/include/dwrite_3.idl index 410e69388c5..055c7f92d26 100644 --- a/include/dwrite_3.idl +++ b/include/dwrite_3.idl @@ -20,8 +20,8 @@ import "dwrite_2.idl"; interface IDWriteFontFaceReference; interface IDWriteFontFace3; -interface IDWriteFont3; interface IDWriteFontSet; +interface IDWriteFontDownloadQueue; typedef enum DWRITE_LOCALITY { @@ -42,6 +42,31 @@ typedef enum DWRITE_RENDERING_MODE1 DWRITE_RENDERING_MODE1_NATURAL_SYMMETRIC_DOWNSAMPLED } DWRITE_RENDERING_MODE1; +[ + local, + object, + uuid(b06fe5b9-43ec-4393-881b-dbe4dc72fda7) +] +interface IDWriteFontDownloadListener : IUnknown +{ + void DownloadCompleted(IDWriteFontDownloadQueue *queue, IUnknown *context, HRESULT result); +} + +[ + local, + object, + uuid(b71e6052-5aea-4fa3-832e-f60d431f7e91) +] +interface IDWriteFontDownloadQueue : IUnknown +{ + HRESULT AddListener(IDWriteFontDownloadListener *listener, UINT32 *token); + HRESULT RemoveListener(UINT32 token); + BOOL IsEmpty(); + HRESULT BeginDownload(IUnknown *context); + HRESULT CancelDownload(); + UINT64 GetGenerationCount(); +} + [ local, object, @@ -52,6 +77,20 @@ interface IDWriteRenderingParams3 : IDWriteRenderingParams2 DWRITE_RENDERING_MODE1 GetRenderingMode1(); } +[ + local, + object, + uuid(29748ed6-8c9c-4a6a-be0b-d912e8538944) +] +interface IDWriteFont3 : IDWriteFont2 +{ + HRESULT CreateFontFace(IDWriteFontFace3 **fontface); + BOOL Equals(IDWriteFont *font); + HRESULT GetFontFaceReference(IDWriteFontFaceReference **reference); + BOOL HasCharacter(UINT32 character); + DWRITE_LOCALITY GetLocality(); +} + [ local, object,