mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Update metadata to 39.0.18-preview
Generator: Add initial Interface generation.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("ce25f8fd-863b-4d13-9651-c1f88dc73fe2")]
|
||||
[NativeTypeName("struct IDWriteAsyncResult : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteAsyncResult : INativeGuid
|
||||
public unsafe partial struct IDWriteAsyncResult : IDWriteAsyncResult.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteAsyncResult
|
||||
{
|
||||
@@ -89,5 +89,13 @@ public unsafe partial struct IDWriteAsyncResult : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteAsyncResult*, int>)(lpVtbl[4]))((IDWriteAsyncResult*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
Handle GetWaitHandle();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetResult();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("5e5a32a3-8dff-4773-9ff6-0696eab77267")]
|
||||
[NativeTypeName("struct IDWriteBitmapRenderTarget : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget : INativeGuid
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget : IDWriteBitmapRenderTarget.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteBitmapRenderTarget
|
||||
{
|
||||
@@ -137,5 +137,31 @@ public unsafe partial struct IDWriteBitmapRenderTarget : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget*, uint, uint, int>)(lpVtbl[10]))((IDWriteBitmapRenderTarget*)Unsafe.AsPointer(ref this), width, height);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult DrawGlyphRun(float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, IDWriteRenderingParams* renderingParams, uint textColor, RawRect* blackBoxRect);
|
||||
|
||||
[VtblIndex(4)]
|
||||
IntPtr GetMemoryDC();
|
||||
|
||||
[VtblIndex(5)]
|
||||
float GetPixelsPerDip();
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult SetPixelsPerDip(float pixelsPerDip);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetCurrentTransform(Matrix3x2* transform);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult SetCurrentTransform(Matrix3x2* transform);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetSize(System.Drawing.Size* size);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult Resize(uint width, uint height);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("791e8298-3ef3-4230-9880-c9bdecc42064")]
|
||||
[NativeTypeName("struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget")]
|
||||
[NativeInheritance("IDWriteBitmapRenderTarget")]
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget1 : INativeGuid
|
||||
public unsafe partial struct IDWriteBitmapRenderTarget1 : IDWriteBitmapRenderTarget1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteBitmapRenderTarget1
|
||||
{
|
||||
@@ -153,5 +153,13 @@ public unsafe partial struct IDWriteBitmapRenderTarget1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteBitmapRenderTarget1*, TextAntialiasMode, int>)(lpVtbl[12]))((IDWriteBitmapRenderTarget1*)Unsafe.AsPointer(ref this), antialiasMode);
|
||||
}
|
||||
public interface Interface : IDWriteBitmapRenderTarget.Interface
|
||||
{
|
||||
[VtblIndex(11)]
|
||||
TextAntialiasMode GetTextAntialiasMode();
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult SetTextAntialiasMode(TextAntialiasMode antialiasMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("d31fbe17-f157-41a2-8d24-cb779e0560e8")]
|
||||
[NativeTypeName("struct IDWriteColorGlyphRunEnumerator : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator : INativeGuid
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator : IDWriteColorGlyphRunEnumerator.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator
|
||||
{
|
||||
@@ -89,5 +89,13 @@ public unsafe partial struct IDWriteColorGlyphRunEnumerator : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator*, ColorGlyphRun**, int>)(lpVtbl[4]))((IDWriteColorGlyphRunEnumerator*)Unsafe.AsPointer(ref this), colorGlyphRun);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult MoveNext(Bool32* hasRun);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetCurrentRun(ColorGlyphRun** colorGlyphRun);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("7c5f86da-c7a1-4f05-b8e1-55a179fe5a35")]
|
||||
[NativeTypeName("struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator")]
|
||||
[NativeInheritance("IDWriteColorGlyphRunEnumerator")]
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : INativeGuid
|
||||
public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : IDWriteColorGlyphRunEnumerator1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteColorGlyphRunEnumerator1
|
||||
{
|
||||
@@ -97,5 +97,10 @@ public unsafe partial struct IDWriteColorGlyphRunEnumerator1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteColorGlyphRunEnumerator1*, ColorGlyphRun1**, int>)(lpVtbl[5]))((IDWriteColorGlyphRunEnumerator1*)Unsafe.AsPointer(ref this), colorGlyphRun);
|
||||
}
|
||||
public interface Interface : IDWriteColorGlyphRunEnumerator.Interface
|
||||
{
|
||||
[VtblIndex(5)]
|
||||
HResult GetCurrentRun(ColorGlyphRun1** colorGlyphRun);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b859ee5a-d838-4b5b-a2e8-1adc7d93db48")]
|
||||
[NativeTypeName("struct IDWriteFactory : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFactory : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory : IDWriteFactory.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory
|
||||
{
|
||||
@@ -241,5 +241,70 @@ public unsafe partial struct IDWriteFactory : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory*, GlyphRun*, float, Matrix3x2*, RenderingMode, MeasuringMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[23]))((IDWriteFactory*)Unsafe.AsPointer(ref this), glyphRun, pixelsPerDip, transform, renderingMode, measuringMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetSystemFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult CreateCustomFontCollection(IDWriteFontCollectionLoader* collectionLoader, void* collectionKey, uint collectionKeySize, IDWriteFontCollection** fontCollection);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult RegisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult UnregisterFontCollectionLoader(IDWriteFontCollectionLoader* fontCollectionLoader);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult CreateFontFileReference(ushort* filePath, ulong* lastWriteTime, IDWriteFontFile** fontFile);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult CreateCustomFontFileReference(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileLoader* fontFileLoader, IDWriteFontFile** fontFile);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult CreateFontFace(FontFaceType fontFaceType, uint numberOfFiles, IDWriteFontFile** fontFiles, uint faceIndex, FontSimulations fontFaceSimulationFlags, IDWriteFontFace** fontFace);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult CreateRenderingParams(IDWriteRenderingParams** renderingParams);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult CreateMonitorRenderingParams(IntPtr monitor, IDWriteRenderingParams** renderingParams);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams** renderingParams);
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult RegisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult UnregisterFontFileLoader(IDWriteFontFileLoader* fontFileLoader);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontWeight fontWeight, FontStyle fontStyle, FontStretch fontStretch, float fontSize, ushort* localeName, IDWriteTextFormat** textFormat);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult CreateTypography(IDWriteTypography** typography);
|
||||
|
||||
[VtblIndex(17)]
|
||||
HResult GetGdiInterop(IDWriteGdiInterop** gdiInterop);
|
||||
|
||||
[VtblIndex(18)]
|
||||
HResult CreateTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float maxWidth, float maxHeight, IDWriteTextLayout** textLayout);
|
||||
|
||||
[VtblIndex(19)]
|
||||
HResult CreateGdiCompatibleTextLayout(ushort* @string, uint stringLength, IDWriteTextFormat* textFormat, float layoutWidth, float layoutHeight, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, IDWriteTextLayout** textLayout);
|
||||
|
||||
[VtblIndex(20)]
|
||||
HResult CreateEllipsisTrimmingSign(IDWriteTextFormat* textFormat, IDWriteInlineObject** trimmingSign);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult CreateTextAnalyzer(IDWriteTextAnalyzer** textAnalyzer);
|
||||
|
||||
[VtblIndex(22)]
|
||||
HResult CreateNumberSubstitution(NumberSubstitutionMethod substitutionMethod, ushort* localeName, Bool32 ignoreUserOverride, IDWriteNumberSubstitution** numberSubstitution);
|
||||
|
||||
[VtblIndex(23)]
|
||||
HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, float pixelsPerDip, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("30572f99-dac6-41db-a16e-0486307e606a")]
|
||||
[NativeTypeName("struct IDWriteFactory1 : IDWriteFactory")]
|
||||
[NativeInheritance("IDWriteFactory")]
|
||||
public unsafe partial struct IDWriteFactory1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory1 : IDWriteFactory1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory1
|
||||
{
|
||||
@@ -257,5 +257,13 @@ public unsafe partial struct IDWriteFactory1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory1*, float, float, float, float, PixelGeometry, RenderingMode, IDWriteRenderingParams1**, int>)(lpVtbl[25]))((IDWriteFactory1*)Unsafe.AsPointer(ref this), gamma, enhancedContrast, enhancedContrastGrayscale, clearTypeLevel, pixelGeometry, renderingMode, renderingParams);
|
||||
}
|
||||
public interface Interface : IDWriteFactory.Interface
|
||||
{
|
||||
[VtblIndex(24)]
|
||||
HResult GetEudcFontCollection(IDWriteFontCollection** fontCollection, Bool32 checkForUpdates);
|
||||
|
||||
[VtblIndex(25)]
|
||||
HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float enhancedContrastGrayscale, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, IDWriteRenderingParams1** renderingParams);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("0439fc60-ca44-4994-8dee-3a9af7b732ec")]
|
||||
[NativeTypeName("struct IDWriteFactory2 : IDWriteFactory1")]
|
||||
[NativeInheritance("IDWriteFactory1")]
|
||||
public unsafe partial struct IDWriteFactory2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory2 : IDWriteFactory2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory2
|
||||
{
|
||||
@@ -297,5 +297,22 @@ public unsafe partial struct IDWriteFactory2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory2*, GlyphRun*, Matrix3x2*, RenderingMode, MeasuringMode, GridFitMode, TextAntialiasMode, float, float, IDWriteGlyphRunAnalysis**, int>)(lpVtbl[30]))((IDWriteFactory2*)Unsafe.AsPointer(ref this), glyphRun, transform, renderingMode, measuringMode, gridFitMode, antialiasMode, baselineOriginX, baselineOriginY, glyphRunAnalysis);
|
||||
}
|
||||
public interface Interface : IDWriteFactory1.Interface
|
||||
{
|
||||
[VtblIndex(26)]
|
||||
HResult GetSystemFontFallback(IDWriteFontFallback** fontFallback);
|
||||
|
||||
[VtblIndex(27)]
|
||||
HResult CreateFontFallbackBuilder(IDWriteFontFallbackBuilder** fontFallbackBuilder);
|
||||
|
||||
[VtblIndex(28)]
|
||||
HResult TranslateColorGlyphRun(float baselineOriginX, float baselineOriginY, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, MeasuringMode measuringMode, Matrix3x2* worldToDeviceTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator** colorLayers);
|
||||
|
||||
[VtblIndex(29)]
|
||||
HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams2** renderingParams);
|
||||
|
||||
[VtblIndex(30)]
|
||||
HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("9a1b41c3-d3bb-466a-87fc-fe67556a3b65")]
|
||||
[NativeTypeName("struct IDWriteFactory3 : IDWriteFactory2")]
|
||||
[NativeInheritance("IDWriteFactory2")]
|
||||
public unsafe partial struct IDWriteFactory3 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory3 : IDWriteFactory3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory3
|
||||
{
|
||||
@@ -369,5 +369,34 @@ public unsafe partial struct IDWriteFactory3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory3*, IDWriteFontDownloadQueue**, int>)(lpVtbl[39]))((IDWriteFactory3*)Unsafe.AsPointer(ref this), fontDownloadQueue);
|
||||
}
|
||||
public interface Interface : IDWriteFactory2.Interface
|
||||
{
|
||||
[VtblIndex(31)]
|
||||
HResult CreateGlyphRunAnalysis(GlyphRun* glyphRun, Matrix3x2* transform, RenderingMode1 renderingMode, MeasuringMode measuringMode, GridFitMode gridFitMode, TextAntialiasMode antialiasMode, float baselineOriginX, float baselineOriginY, IDWriteGlyphRunAnalysis** glyphRunAnalysis);
|
||||
|
||||
[VtblIndex(32)]
|
||||
HResult CreateCustomRenderingParams(float gamma, float enhancedContrast, float grayscaleEnhancedContrast, float clearTypeLevel, PixelGeometry pixelGeometry, RenderingMode1 renderingMode, GridFitMode gridFitMode, IDWriteRenderingParams3** renderingParams);
|
||||
|
||||
[VtblIndex(33)]
|
||||
HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference);
|
||||
|
||||
[VtblIndex(34)]
|
||||
HResult CreateFontFaceReference(ushort* filePath, ulong* lastWriteTime, uint faceIndex, FontSimulations fontSimulations, IDWriteFontFaceReference** fontFaceReference);
|
||||
|
||||
[VtblIndex(35)]
|
||||
HResult GetSystemFontSet(IDWriteFontSet** fontSet);
|
||||
|
||||
[VtblIndex(36)]
|
||||
HResult CreateFontSetBuilder(IDWriteFontSetBuilder** fontSetBuilder);
|
||||
|
||||
[VtblIndex(37)]
|
||||
HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, IDWriteFontCollection1** fontCollection);
|
||||
|
||||
[VtblIndex(38)]
|
||||
HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, IDWriteFontCollection1** fontCollection, Bool32 checkForUpdates);
|
||||
|
||||
[VtblIndex(39)]
|
||||
HResult GetFontDownloadQueue(IDWriteFontDownloadQueue** fontDownloadQueue);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("4b0b5bd3-0797-4549-8ac5-fe915cc53856")]
|
||||
[NativeTypeName("struct IDWriteFactory4 : IDWriteFactory3")]
|
||||
[NativeInheritance("IDWriteFactory3")]
|
||||
public unsafe partial struct IDWriteFactory4 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory4 : IDWriteFactory4.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory4
|
||||
{
|
||||
@@ -393,5 +393,16 @@ public unsafe partial struct IDWriteFactory4 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory4*, GlyphRun*, MeasuringMode, System.Drawing.PointF, Matrix3x2*, System.Drawing.PointF*, int>)(lpVtbl[42]))((IDWriteFactory4*)Unsafe.AsPointer(ref this), glyphRun, measuringMode, baselineOrigin, worldAndDpiTransform, glyphOrigins);
|
||||
}
|
||||
public interface Interface : IDWriteFactory3.Interface
|
||||
{
|
||||
[VtblIndex(40)]
|
||||
HResult TranslateColorGlyphRun(System.Drawing.PointF baselineOrigin, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, GlyphImageFormats desiredGlyphImageFormats, MeasuringMode measuringMode, Matrix3x2* worldAndDpiTransform, uint colorPaletteIndex, IDWriteColorGlyphRunEnumerator1** colorLayers);
|
||||
|
||||
[VtblIndex(41)]
|
||||
HResult ComputeGlyphOrigins(GlyphRun* glyphRun, System.Drawing.PointF baselineOrigin, System.Drawing.PointF* glyphOrigins);
|
||||
|
||||
[VtblIndex(42)]
|
||||
HResult ComputeGlyphOrigins(GlyphRun* glyphRun, MeasuringMode measuringMode, System.Drawing.PointF baselineOrigin, Matrix3x2* worldAndDpiTransform, System.Drawing.PointF* glyphOrigins);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("958db99a-be2a-4f09-af7d-65189803d1d3")]
|
||||
[NativeTypeName("struct IDWriteFactory5 : IDWriteFactory4")]
|
||||
[NativeInheritance("IDWriteFactory4")]
|
||||
public unsafe partial struct IDWriteFactory5 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory5 : IDWriteFactory5.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory5
|
||||
{
|
||||
@@ -433,5 +433,22 @@ public unsafe partial struct IDWriteFactory5 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory5*, ContainerType, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[47]))((IDWriteFactory5*)Unsafe.AsPointer(ref this), containerType, fileData, fileDataSize, unpackedFontStream);
|
||||
}
|
||||
public interface Interface : IDWriteFactory4.Interface
|
||||
{
|
||||
[VtblIndex(43)]
|
||||
HResult CreateFontSetBuilder(IDWriteFontSetBuilder1** fontSetBuilder);
|
||||
|
||||
[VtblIndex(44)]
|
||||
HResult CreateInMemoryFontFileLoader(IDWriteInMemoryFontFileLoader** newLoader);
|
||||
|
||||
[VtblIndex(45)]
|
||||
HResult CreateHttpFontFileLoader(ushort* referrerUrl, ushort* extraHeaders, IDWriteRemoteFontFileLoader** newLoader);
|
||||
|
||||
[VtblIndex(46)]
|
||||
ContainerType AnalyzeContainerType(void* fileData, uint fileDataSize);
|
||||
|
||||
[VtblIndex(47)]
|
||||
HResult UnpackFontFile(ContainerType containerType, void* fileData, uint fileDataSize, IDWriteFontFileStream** unpackedFontStream);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("f3744d80-21f7-42eb-b35d-995bc72fc223")]
|
||||
[NativeTypeName("struct IDWriteFactory6 : IDWriteFactory5")]
|
||||
[NativeInheritance("IDWriteFactory5")]
|
||||
public unsafe partial struct IDWriteFactory6 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory6 : IDWriteFactory6.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory6
|
||||
{
|
||||
@@ -489,5 +489,28 @@ public unsafe partial struct IDWriteFactory6 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory6*, ushort*, IDWriteFontCollection*, FontAxisValue*, uint, float, ushort*, IDWriteTextFormat3**, int>)(lpVtbl[54]))((IDWriteFactory6*)Unsafe.AsPointer(ref this), fontFamilyName, fontCollection, fontAxisValues, fontAxisValueCount, fontSize, localeName, textFormat);
|
||||
}
|
||||
public interface Interface : IDWriteFactory5.Interface
|
||||
{
|
||||
[VtblIndex(48)]
|
||||
HResult CreateFontFaceReference(IDWriteFontFile* fontFile, uint faceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference);
|
||||
|
||||
[VtblIndex(49)]
|
||||
HResult CreateFontResource(IDWriteFontFile* fontFile, uint faceIndex, IDWriteFontResource** fontResource);
|
||||
|
||||
[VtblIndex(50)]
|
||||
HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet1** fontSet);
|
||||
|
||||
[VtblIndex(51)]
|
||||
HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection);
|
||||
|
||||
[VtblIndex(52)]
|
||||
HResult CreateFontCollectionFromFontSet(IDWriteFontSet* fontSet, FontFamilyModel fontFamilyModel, IDWriteFontCollection2** fontCollection);
|
||||
|
||||
[VtblIndex(53)]
|
||||
HResult CreateFontSetBuilder(IDWriteFontSetBuilder2** fontSetBuilder);
|
||||
|
||||
[VtblIndex(54)]
|
||||
HResult CreateTextFormat(ushort* fontFamilyName, IDWriteFontCollection* fontCollection, FontAxisValue* fontAxisValues, uint fontAxisValueCount, float fontSize, ushort* localeName, IDWriteTextFormat3** textFormat);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("35d0e0b3-9076-4d2e-a016-a91b568a06b4")]
|
||||
[NativeTypeName("struct IDWriteFactory7 : IDWriteFactory6")]
|
||||
[NativeInheritance("IDWriteFactory6")]
|
||||
public unsafe partial struct IDWriteFactory7 : INativeGuid
|
||||
public unsafe partial struct IDWriteFactory7 : IDWriteFactory7.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFactory7
|
||||
{
|
||||
@@ -505,5 +505,13 @@ public unsafe partial struct IDWriteFactory7 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFactory7*, Bool32, FontFamilyModel, IDWriteFontCollection3**, int>)(lpVtbl[56]))((IDWriteFactory7*)Unsafe.AsPointer(ref this), includeDownloadableFonts, fontFamilyModel, fontCollection);
|
||||
}
|
||||
public interface Interface : IDWriteFactory6.Interface
|
||||
{
|
||||
[VtblIndex(55)]
|
||||
HResult GetSystemFontSet(Bool32 includeDownloadableFonts, IDWriteFontSet2** fontSet);
|
||||
|
||||
[VtblIndex(56)]
|
||||
HResult GetSystemFontCollection(Bool32 includeDownloadableFonts, FontFamilyModel fontFamilyModel, IDWriteFontCollection3** fontCollection);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32737")]
|
||||
[NativeTypeName("struct IDWriteFont : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFont : INativeGuid
|
||||
public unsafe partial struct IDWriteFont : IDWriteFont.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont
|
||||
{
|
||||
@@ -161,5 +161,40 @@ public unsafe partial struct IDWriteFont : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont*, IDWriteFontFace**, int>)(lpVtbl[13]))((IDWriteFont*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetFontFamily(IDWriteFontFamily** fontFamily);
|
||||
|
||||
[VtblIndex(4)]
|
||||
FontWeight GetWeight();
|
||||
|
||||
[VtblIndex(5)]
|
||||
FontStretch GetStretch();
|
||||
|
||||
[VtblIndex(6)]
|
||||
FontStyle GetStyle();
|
||||
|
||||
[VtblIndex(7)]
|
||||
Bool32 IsSymbolFont();
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetFaceNames(IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists);
|
||||
|
||||
[VtblIndex(10)]
|
||||
FontSimulations GetSimulations();
|
||||
|
||||
[VtblIndex(11)]
|
||||
void GetMetrics(FontMetrics* fontMetrics);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult HasCharacter(uint unicodeValue, Bool32* exists);
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult CreateFontFace(IDWriteFontFace** fontFace);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("acd16696-8c14-4f5d-877e-fe3fc1d32738")]
|
||||
[NativeTypeName("struct IDWriteFont1 : IDWriteFont")]
|
||||
[NativeInheritance("IDWriteFont")]
|
||||
public unsafe partial struct IDWriteFont1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFont1 : IDWriteFont1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont1
|
||||
{
|
||||
@@ -193,5 +193,19 @@ public unsafe partial struct IDWriteFont1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont1*, Bool32>)(lpVtbl[17]))((IDWriteFont1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFont.Interface
|
||||
{
|
||||
[VtblIndex(14)]
|
||||
void GetMetrics(FontMetrics1* fontMetrics);
|
||||
|
||||
[VtblIndex(15)]
|
||||
void GetPanose(Panose* panose);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount);
|
||||
|
||||
[VtblIndex(17)]
|
||||
Bool32 IsMonospacedFont();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")]
|
||||
[NativeTypeName("struct IDWriteFont2 : IDWriteFont1")]
|
||||
[NativeInheritance("IDWriteFont1")]
|
||||
public unsafe partial struct IDWriteFont2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFont2 : IDWriteFont2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont2
|
||||
{
|
||||
@@ -201,5 +201,10 @@ public unsafe partial struct IDWriteFont2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont2*, Bool32>)(lpVtbl[18]))((IDWriteFont2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFont1.Interface
|
||||
{
|
||||
[VtblIndex(18)]
|
||||
Bool32 IsColorFont();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("29748ed6-8c9c-4a6a-be0b-d912e8538944")]
|
||||
[NativeTypeName("struct IDWriteFont3 : IDWriteFont2")]
|
||||
[NativeInheritance("IDWriteFont2")]
|
||||
public unsafe partial struct IDWriteFont3 : INativeGuid
|
||||
public unsafe partial struct IDWriteFont3 : IDWriteFont3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFont3
|
||||
{
|
||||
@@ -241,5 +241,22 @@ public unsafe partial struct IDWriteFont3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFont3*, Locality>)(lpVtbl[23]))((IDWriteFont3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFont2.Interface
|
||||
{
|
||||
[VtblIndex(19)]
|
||||
HResult CreateFontFace(IDWriteFontFace3** fontFace);
|
||||
|
||||
[VtblIndex(20)]
|
||||
Bool32 Equals(IDWriteFont* font);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference);
|
||||
|
||||
[VtblIndex(22)]
|
||||
Bool32 HasCharacter(uint unicodeValue);
|
||||
|
||||
[VtblIndex(23)]
|
||||
Locality GetLocality();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("a84cee02-3eea-4eee-a827-87c1a02a0fcc")]
|
||||
[NativeTypeName("struct IDWriteFontCollection : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontCollection : INativeGuid
|
||||
public unsafe partial struct IDWriteFontCollection : IDWriteFontCollection.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection
|
||||
{
|
||||
@@ -105,5 +105,19 @@ public unsafe partial struct IDWriteFontCollection : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection*, IDWriteFontFace*, IDWriteFont**, int>)(lpVtbl[6]))((IDWriteFontCollection*)Unsafe.AsPointer(ref this), fontFace, font);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
uint GetFontFamilyCount();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetFontFamily(uint index, IDWriteFontFamily** fontFamily);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult FindFamilyName(ushort* familyName, uint* index, Bool32* exists);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetFontFromFontFace(IDWriteFontFace* fontFace, IDWriteFont** font);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("53585141-d9f8-4095-8321-d73cf6bd116c")]
|
||||
[NativeTypeName("struct IDWriteFontCollection1 : IDWriteFontCollection")]
|
||||
[NativeInheritance("IDWriteFontCollection")]
|
||||
public unsafe partial struct IDWriteFontCollection1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontCollection1 : IDWriteFontCollection1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection1
|
||||
{
|
||||
@@ -121,5 +121,13 @@ public unsafe partial struct IDWriteFontCollection1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection1*, uint, IDWriteFontFamily1**, int>)(lpVtbl[8]))((IDWriteFontCollection1*)Unsafe.AsPointer(ref this), index, fontFamily);
|
||||
}
|
||||
public interface Interface : IDWriteFontCollection.Interface
|
||||
{
|
||||
[VtblIndex(7)]
|
||||
HResult GetFontSet(IDWriteFontSet** fontSet);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetFontFamily(uint index, IDWriteFontFamily1** fontFamily);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("514039c6-4617-4064-bf8b-92ea83e506e0")]
|
||||
[NativeTypeName("struct IDWriteFontCollection2 : IDWriteFontCollection1")]
|
||||
[NativeInheritance("IDWriteFontCollection1")]
|
||||
public unsafe partial struct IDWriteFontCollection2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontCollection2 : IDWriteFontCollection2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection2
|
||||
{
|
||||
@@ -153,5 +153,19 @@ public unsafe partial struct IDWriteFontCollection2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection2*, IDWriteFontSet1**, int>)(lpVtbl[12]))((IDWriteFontCollection2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
public interface Interface : IDWriteFontCollection1.Interface
|
||||
{
|
||||
[VtblIndex(9)]
|
||||
HResult GetFontFamily(uint index, IDWriteFontFamily2** fontFamily);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetMatchingFonts(ushort* familyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** fontList);
|
||||
|
||||
[VtblIndex(11)]
|
||||
FontFamilyModel GetFontFamilyModel();
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult GetFontSet(IDWriteFontSet1** fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("a4d055a6-f9e3-4e25-93b7-9e309f3af8e9")]
|
||||
[NativeTypeName("struct IDWriteFontCollection3 : IDWriteFontCollection2")]
|
||||
[NativeInheritance("IDWriteFontCollection2")]
|
||||
public unsafe partial struct IDWriteFontCollection3 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontCollection3 : IDWriteFontCollection3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollection3
|
||||
{
|
||||
@@ -161,5 +161,10 @@ public unsafe partial struct IDWriteFontCollection3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollection3*, Handle>)(lpVtbl[13]))((IDWriteFontCollection3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFontCollection2.Interface
|
||||
{
|
||||
[VtblIndex(13)]
|
||||
Handle GetExpirationEvent();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("cca920e4-52f0-492b-bfa8-29c72ee0a468")]
|
||||
[NativeTypeName("struct IDWriteFontCollectionLoader : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontCollectionLoader : INativeGuid
|
||||
public unsafe partial struct IDWriteFontCollectionLoader : IDWriteFontCollectionLoader.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontCollectionLoader
|
||||
{
|
||||
@@ -81,5 +81,10 @@ public unsafe partial struct IDWriteFontCollectionLoader : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontCollectionLoader*, IDWriteFactory*, void*, uint, IDWriteFontFileEnumerator**, int>)(lpVtbl[3]))((IDWriteFontCollectionLoader*)Unsafe.AsPointer(ref this), factory, collectionKey, collectionKeySize, fontFileEnumerator);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult CreateEnumeratorFromKey(IDWriteFactory* factory, void* collectionKey, uint collectionKeySize, IDWriteFontFileEnumerator** fontFileEnumerator);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b06fe5b9-43ec-4393-881b-dbe4dc72fda7")]
|
||||
[NativeTypeName("struct IDWriteFontDownloadListener : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontDownloadListener : INativeGuid
|
||||
public unsafe partial struct IDWriteFontDownloadListener : IDWriteFontDownloadListener.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontDownloadListener
|
||||
{
|
||||
@@ -81,5 +81,10 @@ public unsafe partial struct IDWriteFontDownloadListener : INativeGuid
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontDownloadListener*, IDWriteFontDownloadQueue*, IUnknown*, HResult, void>)(lpVtbl[3]))((IDWriteFontDownloadListener*)Unsafe.AsPointer(ref this), downloadQueue, context, downloadResult);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
void DownloadCompleted(IDWriteFontDownloadQueue* downloadQueue, IUnknown* context, HResult downloadResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b71e6052-5aea-4fa3-832e-f60d431f7e91")]
|
||||
[NativeTypeName("struct IDWriteFontDownloadQueue : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontDownloadQueue : INativeGuid
|
||||
public unsafe partial struct IDWriteFontDownloadQueue : IDWriteFontDownloadQueue.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontDownloadQueue
|
||||
{
|
||||
@@ -121,5 +121,25 @@ public unsafe partial struct IDWriteFontDownloadQueue : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontDownloadQueue*, ulong>)(lpVtbl[8]))((IDWriteFontDownloadQueue*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult AddListener(IDWriteFontDownloadListener* listener, uint* token);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult RemoveListener(uint token);
|
||||
|
||||
[VtblIndex(5)]
|
||||
Bool32 IsEmpty();
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult BeginDownload(IUnknown* context);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult CancelDownload();
|
||||
|
||||
[VtblIndex(8)]
|
||||
ulong GetGenerationCount();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("5f49804d-7024-4d43-bfa9-d25984f53849")]
|
||||
[NativeTypeName("struct IDWriteFontFace : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFace : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace : IDWriteFontFace.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace
|
||||
{
|
||||
@@ -193,5 +193,52 @@ public unsafe partial struct IDWriteFontFace : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace*, float, float, Matrix3x2*, Bool32, ushort*, uint, GlyphMetrics*, Bool32, int>)(lpVtbl[17]))((IDWriteFontFace*)Unsafe.AsPointer(ref this), emSize, pixelsPerDip, transform, useGdiNatural, glyphIndices, glyphCount, glyphMetrics, isSideways);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
FontFaceType GetType();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetFiles(uint* numberOfFiles, IDWriteFontFile** fontFiles);
|
||||
|
||||
[VtblIndex(5)]
|
||||
uint GetIndex();
|
||||
|
||||
[VtblIndex(6)]
|
||||
FontSimulations GetSimulations();
|
||||
|
||||
[VtblIndex(7)]
|
||||
Bool32 IsSymbolFont();
|
||||
|
||||
[VtblIndex(8)]
|
||||
void GetMetrics(FontMetrics* fontFaceMetrics);
|
||||
|
||||
[VtblIndex(9)]
|
||||
ushort GetGlyphCount();
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetDesignGlyphMetrics(ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetGlyphIndices(uint* codePoints, uint codePointCount, ushort* glyphIndices);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult TryGetFontTable(uint openTypeTableTag, void** tableData, uint* tableSize, void** tableContext, Bool32* exists);
|
||||
|
||||
[VtblIndex(13)]
|
||||
void ReleaseFontTable(void* tableContext);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult GetGlyphRunOutline(float emSize, ushort* glyphIndices, float* glyphAdvances, GlyphOffset* glyphOffsets, uint glyphCount, Bool32 isSideways, Bool32 isRightToLeft, Graphics.Direct2D.Common.ID2D1SimplifiedGeometrySink* geometrySink);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult GetRecommendedRenderingMode(float emSize, float pixelsPerDip, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics* fontFaceMetrics);
|
||||
|
||||
[VtblIndex(17)]
|
||||
HResult GetGdiCompatibleGlyphMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, ushort* glyphIndices, uint glyphCount, GlyphMetrics* glyphMetrics, Bool32 isSideways);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("a71efdb4-9fdb-4838-ad90-cfc3be8c3daf")]
|
||||
[NativeTypeName("struct IDWriteFontFace1 : IDWriteFontFace")]
|
||||
[NativeInheritance("IDWriteFontFace")]
|
||||
public unsafe partial struct IDWriteFontFace1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace1 : IDWriteFontFace1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace1
|
||||
{
|
||||
@@ -289,5 +289,43 @@ public unsafe partial struct IDWriteFontFace1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace1*, Bool32>)(lpVtbl[29]))((IDWriteFontFace1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFontFace.Interface
|
||||
{
|
||||
[VtblIndex(18)]
|
||||
void GetMetrics(FontMetrics1* fontMetrics);
|
||||
|
||||
[VtblIndex(19)]
|
||||
HResult GetGdiCompatibleMetrics(float emSize, float pixelsPerDip, Matrix3x2* transform, FontMetrics1* fontMetrics);
|
||||
|
||||
[VtblIndex(20)]
|
||||
void GetCaretMetrics(CaretMetrics* caretMetrics);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult GetUnicodeRanges(uint maxRangeCount, UnicodeRange* unicodeRanges, uint* actualRangeCount);
|
||||
|
||||
[VtblIndex(22)]
|
||||
Bool32 IsMonospacedFont();
|
||||
|
||||
[VtblIndex(23)]
|
||||
HResult GetDesignGlyphAdvances(uint glyphCount, ushort* glyphIndices, int* glyphAdvances, Bool32 isSideways);
|
||||
|
||||
[VtblIndex(24)]
|
||||
HResult GetGdiCompatibleGlyphAdvances(float emSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, uint glyphCount, ushort* glyphIndices, int* glyphAdvances);
|
||||
|
||||
[VtblIndex(25)]
|
||||
HResult GetKerningPairAdjustments(uint glyphCount, ushort* glyphIndices, int* glyphAdvanceAdjustments);
|
||||
|
||||
[VtblIndex(26)]
|
||||
Bool32 HasKerningPairs();
|
||||
|
||||
[VtblIndex(27)]
|
||||
HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, RenderingMode* renderingMode);
|
||||
|
||||
[VtblIndex(28)]
|
||||
HResult GetVerticalGlyphVariants(uint glyphCount, ushort* nominalGlyphIndices, ushort* verticalGlyphIndices);
|
||||
|
||||
[VtblIndex(29)]
|
||||
Bool32 HasVerticalGlyphVariants();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("d8b768ff-64bc-4e66-982b-ec8e87f693f7")]
|
||||
[NativeTypeName("struct IDWriteFontFace2 : IDWriteFontFace1")]
|
||||
[NativeInheritance("IDWriteFontFace1")]
|
||||
public unsafe partial struct IDWriteFontFace2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace2 : IDWriteFontFace2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace2
|
||||
{
|
||||
@@ -329,5 +329,22 @@ public unsafe partial struct IDWriteFontFace2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace2*, float, float, float, Matrix3x2*, Bool32, OutlineThreshold, MeasuringMode, IDWriteRenderingParams*, RenderingMode*, GridFitMode*, int>)(lpVtbl[34]))((IDWriteFontFace2*)Unsafe.AsPointer(ref this), fontEmSize, dpiX, dpiY, transform, isSideways, outlineThreshold, measuringMode, renderingParams, renderingMode, gridFitMode);
|
||||
}
|
||||
public interface Interface : IDWriteFontFace1.Interface
|
||||
{
|
||||
[VtblIndex(30)]
|
||||
Bool32 IsColorFont();
|
||||
|
||||
[VtblIndex(31)]
|
||||
uint GetColorPaletteCount();
|
||||
|
||||
[VtblIndex(32)]
|
||||
uint GetPaletteEntryCount();
|
||||
|
||||
[VtblIndex(33)]
|
||||
HResult GetPaletteEntries(uint colorPaletteIndex, uint firstEntryIndex, uint entryCount, Color4** paletteEntries);
|
||||
|
||||
[VtblIndex(34)]
|
||||
HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode* renderingMode, GridFitMode* gridFitMode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("d37d7598-09be-4222-a236-2081341cc1f2")]
|
||||
[NativeTypeName("struct IDWriteFontFace3 : IDWriteFontFace2")]
|
||||
[NativeInheritance("IDWriteFontFace2")]
|
||||
public unsafe partial struct IDWriteFontFace3 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace3 : IDWriteFontFace3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace3
|
||||
{
|
||||
@@ -441,5 +441,49 @@ public unsafe partial struct IDWriteFontFace3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace3*, ushort*, uint, Bool32, Bool32*, int>)(lpVtbl[48]))((IDWriteFontFace3*)Unsafe.AsPointer(ref this), glyphIndices, glyphCount, enqueueIfNotLocal, isLocal);
|
||||
}
|
||||
public interface Interface : IDWriteFontFace2.Interface
|
||||
{
|
||||
[VtblIndex(35)]
|
||||
HResult GetFontFaceReference(IDWriteFontFaceReference** fontFaceReference);
|
||||
|
||||
[VtblIndex(36)]
|
||||
void GetPanose(Panose* panose);
|
||||
|
||||
[VtblIndex(37)]
|
||||
FontWeight GetWeight();
|
||||
|
||||
[VtblIndex(38)]
|
||||
FontStretch GetStretch();
|
||||
|
||||
[VtblIndex(39)]
|
||||
FontStyle GetStyle();
|
||||
|
||||
[VtblIndex(40)]
|
||||
HResult GetFamilyNames(IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(41)]
|
||||
HResult GetFaceNames(IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(42)]
|
||||
HResult GetInformationalStrings(InformationalStringId informationalStringID, IDWriteLocalizedStrings** informationalStrings, Bool32* exists);
|
||||
|
||||
[VtblIndex(43)]
|
||||
Bool32 HasCharacter(uint unicodeValue);
|
||||
|
||||
[VtblIndex(44)]
|
||||
HResult GetRecommendedRenderingMode(float fontEmSize, float dpiX, float dpiY, Matrix3x2* transform, Bool32 isSideways, OutlineThreshold outlineThreshold, MeasuringMode measuringMode, IDWriteRenderingParams* renderingParams, RenderingMode1* renderingMode, GridFitMode* gridFitMode);
|
||||
|
||||
[VtblIndex(45)]
|
||||
Bool32 IsCharacterLocal(uint unicodeValue);
|
||||
|
||||
[VtblIndex(46)]
|
||||
Bool32 IsGlyphLocal(ushort glyphId);
|
||||
|
||||
[VtblIndex(47)]
|
||||
HResult AreCharactersLocal(ushort* characters, uint characterCount, Bool32 enqueueIfNotLocal, Bool32* isLocal);
|
||||
|
||||
[VtblIndex(48)]
|
||||
HResult AreGlyphsLocal(ushort* glyphIndices, uint glyphCount, Bool32 enqueueIfNotLocal, Bool32* isLocal);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("27f2a904-4eb8-441d-9678-0563f53e3e2f")]
|
||||
[NativeTypeName("struct IDWriteFontFace4 : IDWriteFontFace3")]
|
||||
[NativeInheritance("IDWriteFontFace3")]
|
||||
public unsafe partial struct IDWriteFontFace4 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace4 : IDWriteFontFace4.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace4
|
||||
{
|
||||
@@ -473,5 +473,19 @@ public unsafe partial struct IDWriteFontFace4 : INativeGuid
|
||||
{
|
||||
((delegate* unmanaged[Stdcall]<IDWriteFontFace4*, void*, void>)(lpVtbl[52]))((IDWriteFontFace4*)Unsafe.AsPointer(ref this), glyphDataContext);
|
||||
}
|
||||
public interface Interface : IDWriteFontFace3.Interface
|
||||
{
|
||||
[VtblIndex(49)]
|
||||
HResult GetGlyphImageFormats(ushort glyphId, uint pixelsPerEmFirst, uint pixelsPerEmLast, GlyphImageFormats* glyphImageFormats);
|
||||
|
||||
[VtblIndex(50)]
|
||||
GlyphImageFormats GetGlyphImageFormats();
|
||||
|
||||
[VtblIndex(51)]
|
||||
HResult GetGlyphImageData(ushort glyphId, uint pixelsPerEm, GlyphImageFormats glyphImageFormat, GlyphImageData* glyphData, void** glyphDataContext);
|
||||
|
||||
[VtblIndex(52)]
|
||||
void ReleaseGlyphImageData(void* glyphDataContext);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("98eff3a5-b667-479a-b145-e2fa5b9fdc29")]
|
||||
[NativeTypeName("struct IDWriteFontFace5 : IDWriteFontFace4")]
|
||||
[NativeInheritance("IDWriteFontFace4")]
|
||||
public unsafe partial struct IDWriteFontFace5 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace5 : IDWriteFontFace5.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace5
|
||||
{
|
||||
@@ -513,5 +513,22 @@ public unsafe partial struct IDWriteFontFace5 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace5*, IDWriteFontFace*, Bool32>)(lpVtbl[57]))((IDWriteFontFace5*)Unsafe.AsPointer(ref this), fontFace);
|
||||
}
|
||||
public interface Interface : IDWriteFontFace4.Interface
|
||||
{
|
||||
[VtblIndex(53)]
|
||||
uint GetFontAxisValueCount();
|
||||
|
||||
[VtblIndex(54)]
|
||||
HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount);
|
||||
|
||||
[VtblIndex(55)]
|
||||
Bool32 HasVariations();
|
||||
|
||||
[VtblIndex(56)]
|
||||
HResult GetFontResource(IDWriteFontResource** fontResource);
|
||||
|
||||
[VtblIndex(57)]
|
||||
Bool32 Equals(IDWriteFontFace* fontFace);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("c4b1fe1b-6e84-47d5-b54c-a597981b06ad")]
|
||||
[NativeTypeName("struct IDWriteFontFace6 : IDWriteFontFace5")]
|
||||
[NativeInheritance("IDWriteFontFace5")]
|
||||
public unsafe partial struct IDWriteFontFace6 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFace6 : IDWriteFontFace6.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFace6
|
||||
{
|
||||
@@ -529,5 +529,13 @@ public unsafe partial struct IDWriteFontFace6 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFace6*, FontFamilyModel, IDWriteLocalizedStrings**, int>)(lpVtbl[59]))((IDWriteFontFace6*)Unsafe.AsPointer(ref this), fontFamilyModel, names);
|
||||
}
|
||||
public interface Interface : IDWriteFontFace5.Interface
|
||||
{
|
||||
[VtblIndex(58)]
|
||||
HResult GetFamilyNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(59)]
|
||||
HResult GetFaceNames(FontFamilyModel fontFamilyModel, IDWriteLocalizedStrings** names);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("5e7fa7ca-dde3-424c-89f0-9fcd6fed58cd")]
|
||||
[NativeTypeName("struct IDWriteFontFaceReference : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFaceReference : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFaceReference : IDWriteFontFaceReference.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFaceReference
|
||||
{
|
||||
@@ -185,5 +185,49 @@ public unsafe partial struct IDWriteFontFaceReference : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference*, ulong, ulong, int>)(lpVtbl[16]))((IDWriteFontFaceReference*)Unsafe.AsPointer(ref this), fileOffset, fragmentSize);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult CreateFontFace(IDWriteFontFace3** fontFace);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult CreateFontFaceWithSimulations(FontSimulations fontFaceSimulationFlags, IDWriteFontFace3** fontFace);
|
||||
|
||||
[VtblIndex(5)]
|
||||
Bool32 Equals(IDWriteFontFaceReference* fontFaceReference);
|
||||
|
||||
[VtblIndex(6)]
|
||||
uint GetFontFaceIndex();
|
||||
|
||||
[VtblIndex(7)]
|
||||
FontSimulations GetSimulations();
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetFontFile(IDWriteFontFile** fontFile);
|
||||
|
||||
[VtblIndex(9)]
|
||||
ulong GetLocalFileSize();
|
||||
|
||||
[VtblIndex(10)]
|
||||
ulong GetFileSize();
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetFileTime(ulong* lastWriteTime);
|
||||
|
||||
[VtblIndex(12)]
|
||||
Locality GetLocality();
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult EnqueueFontDownloadRequest();
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult EnqueueCharacterDownloadRequest(ushort* characters, uint characterCount);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult EnqueueGlyphDownloadRequest(ushort* glyphIndices, uint glyphCount);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult EnqueueFileFragmentDownloadRequest(ulong fileOffset, ulong fragmentSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("c081fe77-2fd1-41ac-a5a3-34983c4ba61a")]
|
||||
[NativeTypeName("struct IDWriteFontFaceReference1 : IDWriteFontFaceReference")]
|
||||
[NativeInheritance("IDWriteFontFaceReference")]
|
||||
public unsafe partial struct IDWriteFontFaceReference1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFaceReference1 : IDWriteFontFaceReference1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFaceReference1
|
||||
{
|
||||
@@ -209,5 +209,16 @@ public unsafe partial struct IDWriteFontFaceReference1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFaceReference1*, FontAxisValue*, uint, int>)(lpVtbl[19]))((IDWriteFontFaceReference1*)Unsafe.AsPointer(ref this), fontAxisValues, fontAxisValueCount);
|
||||
}
|
||||
public interface Interface : IDWriteFontFaceReference.Interface
|
||||
{
|
||||
[VtblIndex(17)]
|
||||
HResult CreateFontFace(IDWriteFontFace5** fontFace);
|
||||
|
||||
[VtblIndex(18)]
|
||||
uint GetFontAxisValueCount();
|
||||
|
||||
[VtblIndex(19)]
|
||||
HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("efa008f9-f7a1-48bf-b05c-f224713cc0ff")]
|
||||
[NativeTypeName("struct IDWriteFontFallback : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFallback : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFallback : IDWriteFontFallback.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallback
|
||||
{
|
||||
@@ -81,5 +81,10 @@ public unsafe partial struct IDWriteFontFallback : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallback*, IDWriteTextAnalysisSource*, uint, uint, IDWriteFontCollection*, ushort*, FontWeight, FontStyle, FontStretch, uint*, IDWriteFont**, float*, int>)(lpVtbl[3]))((IDWriteFontFallback*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, baseWeight, baseStyle, baseStretch, mappedLength, mappedFont, scale);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontWeight baseWeight, FontStyle baseStyle, FontStretch baseStretch, uint* mappedLength, IDWriteFont** mappedFont, float* scale);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("2397599d-dd0d-4681-bd6a-f4f31eaade77")]
|
||||
[NativeTypeName("struct IDWriteFontFallback1 : IDWriteFontFallback")]
|
||||
[NativeInheritance("IDWriteFontFallback")]
|
||||
public unsafe partial struct IDWriteFontFallback1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFallback1 : IDWriteFontFallback1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallback1
|
||||
{
|
||||
@@ -89,5 +89,10 @@ public unsafe partial struct IDWriteFontFallback1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallback1*, IDWriteTextAnalysisSource*, uint, uint, IDWriteFontCollection*, ushort*, FontAxisValue*, uint, uint*, float*, IDWriteFontFace5**, int>)(lpVtbl[4]))((IDWriteFontFallback1*)Unsafe.AsPointer(ref this), analysisSource, textPosition, textLength, baseFontCollection, baseFamilyName, fontAxisValues, fontAxisValueCount, mappedLength, scale, mappedFontFace);
|
||||
}
|
||||
public interface Interface : IDWriteFontFallback.Interface
|
||||
{
|
||||
[VtblIndex(4)]
|
||||
HResult MapCharacters(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteFontCollection* baseFontCollection, ushort* baseFamilyName, FontAxisValue* fontAxisValues, uint fontAxisValueCount, uint* mappedLength, float* scale, IDWriteFontFace5** mappedFontFace);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("fd882d06-8aba-4fb8-b849-8be8b73e14de")]
|
||||
[NativeTypeName("struct IDWriteFontFallbackBuilder : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFallbackBuilder : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFallbackBuilder : IDWriteFontFallbackBuilder.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFallbackBuilder
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWriteFontFallbackBuilder : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFallbackBuilder*, IDWriteFontFallback**, int>)(lpVtbl[5]))((IDWriteFontFallbackBuilder*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult AddMapping(UnicodeRange* ranges, uint rangesCount, ushort** targetFamilyNames, uint targetFamilyNamesCount, IDWriteFontCollection* fontCollection, ushort* localeName, ushort* baseFamilyName, float scale);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult AddMappings(IDWriteFontFallback* fontFallback);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult CreateFontFallback(IDWriteFontFallback** fontFallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7add")]
|
||||
[NativeTypeName("struct IDWriteFontFamily : IDWriteFontList")]
|
||||
[NativeInheritance("IDWriteFontList")]
|
||||
public unsafe partial struct IDWriteFontFamily : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFamily : IDWriteFontFamily.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily
|
||||
{
|
||||
@@ -121,5 +121,16 @@ public unsafe partial struct IDWriteFontFamily : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily*, FontWeight, FontStretch, FontStyle, IDWriteFontList**, int>)(lpVtbl[8]))((IDWriteFontFamily*)Unsafe.AsPointer(ref this), weight, stretch, style, matchingFonts);
|
||||
}
|
||||
public interface Interface : IDWriteFontList.Interface
|
||||
{
|
||||
[VtblIndex(6)]
|
||||
HResult GetFamilyNames(IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetFirstMatchingFont(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFont** matchingFont);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetMatchingFonts(FontWeight weight, FontStretch stretch, FontStyle style, IDWriteFontList** matchingFonts);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7adf")]
|
||||
[NativeTypeName("struct IDWriteFontFamily1 : IDWriteFontFamily")]
|
||||
[NativeInheritance("IDWriteFontFamily")]
|
||||
public unsafe partial struct IDWriteFontFamily1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFamily1 : IDWriteFontFamily1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily1
|
||||
{
|
||||
@@ -145,5 +145,16 @@ public unsafe partial struct IDWriteFontFamily1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily1*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[11]))((IDWriteFontFamily1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
public interface Interface : IDWriteFontFamily.Interface
|
||||
{
|
||||
[VtblIndex(9)]
|
||||
Locality GetFontLocality(uint listIndex);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetFont(uint listIndex, IDWriteFont3** font);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("3ed49e77-a398-4261-b9cf-c126c2131ef3")]
|
||||
[NativeTypeName("struct IDWriteFontFamily2 : IDWriteFontFamily1")]
|
||||
[NativeInheritance("IDWriteFontFamily1")]
|
||||
public unsafe partial struct IDWriteFontFamily2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFamily2 : IDWriteFontFamily2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFamily2
|
||||
{
|
||||
@@ -161,5 +161,13 @@ public unsafe partial struct IDWriteFontFamily2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFamily2*, IDWriteFontSet1**, int>)(lpVtbl[13]))((IDWriteFontFamily2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
public interface Interface : IDWriteFontFamily1.Interface
|
||||
{
|
||||
[VtblIndex(12)]
|
||||
HResult GetMatchingFonts(FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontList2** matchingFonts);
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult GetFontSet(IDWriteFontSet1** fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("739d886a-cef5-47dc-8769-1a8b41bebbb0")]
|
||||
[NativeTypeName("struct IDWriteFontFile : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFile : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFile : IDWriteFontFile.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFile
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWriteFontFile : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFile*, Bool32*, FontFileType*, FontFaceType*, uint*, int>)(lpVtbl[5]))((IDWriteFontFile*)Unsafe.AsPointer(ref this), isSupportedFontType, fontFileType, fontFaceType, numberOfFaces);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetReferenceKey(void** fontFileReferenceKey, uint* fontFileReferenceKeySize);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetLoader(IDWriteFontFileLoader** fontFileLoader);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult Analyze(Bool32* isSupportedFontType, FontFileType* fontFileType, FontFaceType* fontFaceType, uint* numberOfFaces);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("72755049-5ff7-435d-8348-4be97cfa6c7c")]
|
||||
[NativeTypeName("struct IDWriteFontFileEnumerator : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileEnumerator : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFileEnumerator : IDWriteFontFileEnumerator.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileEnumerator
|
||||
{
|
||||
@@ -89,5 +89,13 @@ public unsafe partial struct IDWriteFontFileEnumerator : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileEnumerator*, IDWriteFontFile**, int>)(lpVtbl[4]))((IDWriteFontFileEnumerator*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult MoveNext(Bool32* hasCurrentFile);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetCurrentFontFile(IDWriteFontFile** fontFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("727cad4e-d6af-4c9e-8a08-d695b11caa49")]
|
||||
[NativeTypeName("struct IDWriteFontFileLoader : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileLoader : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFileLoader : IDWriteFontFileLoader.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileLoader
|
||||
{
|
||||
@@ -81,5 +81,10 @@ public unsafe partial struct IDWriteFontFileLoader : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileLoader*, void*, uint, IDWriteFontFileStream**, int>)(lpVtbl[3]))((IDWriteFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, fontFileStream);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult CreateStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteFontFileStream** fontFileStream);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("6d4865fe-0ab8-4d91-8f62-5dd6be34a3e0")]
|
||||
[NativeTypeName("struct IDWriteFontFileStream : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontFileStream : INativeGuid
|
||||
public unsafe partial struct IDWriteFontFileStream : IDWriteFontFileStream.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontFileStream
|
||||
{
|
||||
@@ -105,5 +105,19 @@ public unsafe partial struct IDWriteFontFileStream : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontFileStream*, ulong*, int>)(lpVtbl[6]))((IDWriteFontFileStream*)Unsafe.AsPointer(ref this), lastWriteTime);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult ReadFileFragment(void** fragmentStart, ulong fileOffset, ulong fragmentSize, void** fragmentContext);
|
||||
|
||||
[VtblIndex(4)]
|
||||
void ReleaseFileFragment(void* fragmentContext);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetFileSize(ulong* fileSize);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetLastWriteTime(ulong* lastWriteTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("1a0d8438-1d97-4ec1-aef9-a2fb86ed6acb")]
|
||||
[NativeTypeName("struct IDWriteFontList : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontList : INativeGuid
|
||||
public unsafe partial struct IDWriteFontList : IDWriteFontList.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWriteFontList : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList*, uint, IDWriteFont**, int>)(lpVtbl[5]))((IDWriteFontList*)Unsafe.AsPointer(ref this), index, font);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetFontCollection(IDWriteFontCollection** fontCollection);
|
||||
|
||||
[VtblIndex(4)]
|
||||
uint GetFontCount();
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetFont(uint index, IDWriteFont** font);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("da20d8ef-812a-4c43-9802-62ec4abd7ade")]
|
||||
[NativeTypeName("struct IDWriteFontList1 : IDWriteFontList")]
|
||||
[NativeInheritance("IDWriteFontList")]
|
||||
public unsafe partial struct IDWriteFontList1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontList1 : IDWriteFontList1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList1
|
||||
{
|
||||
@@ -121,5 +121,16 @@ public unsafe partial struct IDWriteFontList1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList1*, uint, IDWriteFontFaceReference**, int>)(lpVtbl[8]))((IDWriteFontList1*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference);
|
||||
}
|
||||
public interface Interface : IDWriteFontList.Interface
|
||||
{
|
||||
[VtblIndex(6)]
|
||||
Locality GetFontLocality(uint listIndex);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetFont(uint listIndex, IDWriteFont3** font);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("c0763a34-77af-445a-b735-08c37b0a5bf5")]
|
||||
[NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")]
|
||||
[NativeInheritance("IDWriteFontList1")]
|
||||
public unsafe partial struct IDWriteFontList2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontList2 : IDWriteFontList2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontList2
|
||||
{
|
||||
@@ -129,5 +129,10 @@ public unsafe partial struct IDWriteFontList2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontList2*, IDWriteFontSet1**, int>)(lpVtbl[9]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
public interface Interface : IDWriteFontList1.Interface
|
||||
{
|
||||
[VtblIndex(9)]
|
||||
HResult GetFontSet(IDWriteFontSet1** fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("1f803a76-6871-48e8-987f-b975551c50f2")]
|
||||
[NativeTypeName("struct IDWriteFontResource : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontResource : INativeGuid
|
||||
public unsafe partial struct IDWriteFontResource : IDWriteFontResource.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontResource
|
||||
{
|
||||
@@ -169,5 +169,43 @@ public unsafe partial struct IDWriteFontResource : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontResource*, FontSimulations, FontAxisValue*, uint, IDWriteFontFaceReference1**, int>)(lpVtbl[14]))((IDWriteFontResource*)Unsafe.AsPointer(ref this), fontSimulations, fontAxisValues, fontAxisValueCount, fontFaceReference);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetFontFile(IDWriteFontFile** fontFile);
|
||||
|
||||
[VtblIndex(4)]
|
||||
uint GetFontFaceIndex();
|
||||
|
||||
[VtblIndex(5)]
|
||||
uint GetFontAxisCount();
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetDefaultFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount);
|
||||
|
||||
[VtblIndex(8)]
|
||||
FontAxisAttributes GetFontAxisAttributes(uint axisIndex);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetAxisNames(uint axisIndex, IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(10)]
|
||||
uint GetAxisValueNameCount(uint axisIndex);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetAxisValueNames(uint axisIndex, uint axisValueIndex, FontAxisRange* fontAxisRange, IDWriteLocalizedStrings** names);
|
||||
|
||||
[VtblIndex(12)]
|
||||
Bool32 HasVariations();
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult CreateFontFace(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFace5** fontFace);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult CreateFontFaceReference(FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontFaceReference1** fontFaceReference);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("53585141-d9f8-4095-8321-d73cf6bd116b")]
|
||||
[NativeTypeName("struct IDWriteFontSet : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontSet : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSet : IDWriteFontSet.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet
|
||||
{
|
||||
@@ -153,5 +153,37 @@ public unsafe partial struct IDWriteFontSet : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet*, FontProperty*, uint, IDWriteFontSet**, int>)(lpVtbl[12]))((IDWriteFontSet*)Unsafe.AsPointer(ref this), properties, propertyCount, filteredSet);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
uint GetFontCount();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult FindFontFaceReference(IDWriteFontFaceReference* fontFaceReference, uint* listIndex, Bool32* exists);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult FindFontFace(IDWriteFontFace* fontFace, uint* listIndex, Bool32* exists);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetPropertyValues(FontPropertyId propertyID, IDWriteStringList** values);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetPropertyValues(FontPropertyId propertyID, ushort* preferredLocaleNames, IDWriteStringList** values);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetPropertyValues(uint listIndex, FontPropertyId propertyId, Bool32* exists, IDWriteLocalizedStrings** values);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetPropertyOccurrenceCount(FontProperty* property, uint* propertyOccurrenceCount);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetMatchingFonts(ushort* familyName, FontWeight fontWeight, FontStretch fontStretch, FontStyle fontStyle, IDWriteFontSet** filteredSet);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult GetMatchingFonts(FontProperty* properties, uint propertyCount, IDWriteFontSet** filteredSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("7e9fda85-6c92-4053-bc47-7ae3530db4d3")]
|
||||
[NativeTypeName("struct IDWriteFontSet1 : IDWriteFontSet")]
|
||||
[NativeInheritance("IDWriteFontSet")]
|
||||
public unsafe partial struct IDWriteFontSet1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSet1 : IDWriteFontSet1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet1
|
||||
{
|
||||
@@ -257,5 +257,46 @@ public unsafe partial struct IDWriteFontSet1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet1*, uint, Locality>)(lpVtbl[25]))((IDWriteFontSet1*)Unsafe.AsPointer(ref this), listIndex);
|
||||
}
|
||||
public interface Interface : IDWriteFontSet.Interface
|
||||
{
|
||||
[VtblIndex(13)]
|
||||
HResult GetMatchingFonts(FontProperty* fontProperty, FontAxisValue* fontAxisValues, uint fontAxisValueCount, IDWriteFontSet1** matchingFonts);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult GetFirstFontResources(IDWriteFontSet1** filteredFontSet);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult GetFilteredFonts(uint* indices, uint indexCount, IDWriteFontSet1** filteredFontSet);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult GetFilteredFonts(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, IDWriteFontSet1** filteredFontSet);
|
||||
|
||||
[VtblIndex(17)]
|
||||
HResult GetFilteredFonts(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, IDWriteFontSet1** filteredFontSet);
|
||||
|
||||
[VtblIndex(18)]
|
||||
HResult GetFilteredFontIndices(FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, Bool32 selectAnyRange, uint* indices, uint maxIndexCount, uint* actualIndexCount);
|
||||
|
||||
[VtblIndex(19)]
|
||||
HResult GetFilteredFontIndices(FontProperty* properties, uint propertyCount, Bool32 selectAnyProperty, uint* indices, uint maxIndexCount, uint* actualIndexCount);
|
||||
|
||||
[VtblIndex(20)]
|
||||
HResult GetFontAxisRanges(uint listIndex, FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult GetFontAxisRanges(FontAxisRange* fontAxisRanges, uint maxFontAxisRangeCount, uint* actualFontAxisRangeCount);
|
||||
|
||||
[VtblIndex(22)]
|
||||
HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference1** fontFaceReference);
|
||||
|
||||
[VtblIndex(23)]
|
||||
HResult CreateFontResource(uint listIndex, IDWriteFontResource** fontResource);
|
||||
|
||||
[VtblIndex(24)]
|
||||
HResult CreateFontFace(uint listIndex, IDWriteFontFace5** fontFace);
|
||||
|
||||
[VtblIndex(25)]
|
||||
Locality GetFontLocality(uint listIndex);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("dc7ead19-e54c-43af-b2da-4e2b79ba3f7f")]
|
||||
[NativeTypeName("struct IDWriteFontSet2 : IDWriteFontSet1")]
|
||||
[NativeInheritance("IDWriteFontSet1")]
|
||||
public unsafe partial struct IDWriteFontSet2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSet2 : IDWriteFontSet2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet2
|
||||
{
|
||||
@@ -265,5 +265,10 @@ public unsafe partial struct IDWriteFontSet2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet2*, Handle>)(lpVtbl[26]))((IDWriteFontSet2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFontSet1.Interface
|
||||
{
|
||||
[VtblIndex(26)]
|
||||
Handle GetExpirationEvent();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("7c073ef2-a7f4-4045-8c32-8ab8ae640f90")]
|
||||
[NativeTypeName("struct IDWriteFontSet3 : IDWriteFontSet2")]
|
||||
[NativeInheritance("IDWriteFontSet2")]
|
||||
public unsafe partial struct IDWriteFontSet3 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSet3 : IDWriteFontSet3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSet3
|
||||
{
|
||||
@@ -289,5 +289,16 @@ public unsafe partial struct IDWriteFontSet3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSet3*, uint, ushort*, uint, int>)(lpVtbl[29]))((IDWriteFontSet3*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize);
|
||||
}
|
||||
public interface Interface : IDWriteFontSet2.Interface
|
||||
{
|
||||
[VtblIndex(27)]
|
||||
FontSourceType GetFontSourceType(uint fontIndex);
|
||||
|
||||
[VtblIndex(28)]
|
||||
uint GetFontSourceNameLength(uint listIndex);
|
||||
|
||||
[VtblIndex(29)]
|
||||
HResult GetFontSourceName(uint listIndex, ushort* stringBuffer, uint stringBufferSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("2f642afe-9c68-4f40-b8be-457401afcb3d")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSetBuilder : IDWriteFontSetBuilder.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder
|
||||
{
|
||||
@@ -105,5 +105,19 @@ public unsafe partial struct IDWriteFontSetBuilder : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder*, IDWriteFontSet**, int>)(lpVtbl[6]))((IDWriteFontSetBuilder*)Unsafe.AsPointer(ref this), fontSet);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference, FontProperty* properties, uint propertyCount);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult AddFontFaceReference(IDWriteFontFaceReference* fontFaceReference);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult AddFontSet(IDWriteFontSet* fontSet);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult CreateFontSet(IDWriteFontSet** fontSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("3ff7715f-3cdc-4dc6-9b72-ec5621dccafd")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder")]
|
||||
[NativeInheritance("IDWriteFontSetBuilder")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder1 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSetBuilder1 : IDWriteFontSetBuilder1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder1
|
||||
{
|
||||
@@ -113,5 +113,10 @@ public unsafe partial struct IDWriteFontSetBuilder1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder1*, IDWriteFontFile*, int>)(lpVtbl[7]))((IDWriteFontSetBuilder1*)Unsafe.AsPointer(ref this), fontFile);
|
||||
}
|
||||
public interface Interface : IDWriteFontSetBuilder.Interface
|
||||
{
|
||||
[VtblIndex(7)]
|
||||
HResult AddFontFile(IDWriteFontFile* fontFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("ee5ba612-b131-463c-8f4f-3189b9401e45")]
|
||||
[NativeTypeName("struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder1")]
|
||||
[NativeInheritance("IDWriteFontSetBuilder1")]
|
||||
public unsafe partial struct IDWriteFontSetBuilder2 : INativeGuid
|
||||
public unsafe partial struct IDWriteFontSetBuilder2 : IDWriteFontSetBuilder2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteFontSetBuilder2
|
||||
{
|
||||
@@ -129,5 +129,13 @@ public unsafe partial struct IDWriteFontSetBuilder2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteFontSetBuilder2*, ushort*, int>)(lpVtbl[9]))((IDWriteFontSetBuilder2*)Unsafe.AsPointer(ref this), filePath);
|
||||
}
|
||||
public interface Interface : IDWriteFontSetBuilder1.Interface
|
||||
{
|
||||
[VtblIndex(8)]
|
||||
HResult AddFont(IDWriteFontFile* fontFile, uint fontFaceIndex, FontSimulations fontSimulations, FontAxisValue* fontAxisValues, uint fontAxisValueCount, FontAxisRange* fontAxisRanges, uint fontAxisRangeCount, FontProperty* properties, uint propertyCount);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult AddFontFile(ushort* filePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("1edd9491-9853-4299-898f-6432983b6f3a")]
|
||||
[NativeTypeName("struct IDWriteGdiInterop : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteGdiInterop : INativeGuid
|
||||
public unsafe partial struct IDWriteGdiInterop : IDWriteGdiInterop.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGdiInterop
|
||||
{
|
||||
@@ -113,5 +113,22 @@ public unsafe partial struct IDWriteGdiInterop : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop*, IntPtr, uint, uint, IDWriteBitmapRenderTarget**, int>)(lpVtbl[7]))((IDWriteGdiInterop*)Unsafe.AsPointer(ref this), hdc, width, height, renderTarget);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFont** font);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult ConvertFontToLOGFONT(IDWriteFont* font, Win32.Graphics.Gdi.LogFontW** logFont, Bool32* isSystemFont);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult ConvertFontFaceToLOGFONT(IDWriteFontFace* font, Win32.Graphics.Gdi.LogFontW** logFont);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult CreateFontFaceFromHdc(IntPtr hdc, IDWriteFontFace** fontFace);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult CreateBitmapRenderTarget(IntPtr hdc, uint width, uint height, IDWriteBitmapRenderTarget** renderTarget);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("4556be70-3abd-4f70-90be-421780a6f515")]
|
||||
[NativeTypeName("struct IDWriteGdiInterop1 : IDWriteGdiInterop")]
|
||||
[NativeInheritance("IDWriteGdiInterop")]
|
||||
public unsafe partial struct IDWriteGdiInterop1 : INativeGuid
|
||||
public unsafe partial struct IDWriteGdiInterop1 : IDWriteGdiInterop1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGdiInterop1
|
||||
{
|
||||
@@ -145,5 +145,19 @@ public unsafe partial struct IDWriteGdiInterop1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGdiInterop1*, Win32.Graphics.Gdi.LogFontA*, IDWriteFontSet*, IDWriteFontSet**, int>)(lpVtbl[11]))((IDWriteGdiInterop1*)Unsafe.AsPointer(ref this), logFont, fontSet, filteredSet);
|
||||
}
|
||||
public interface Interface : IDWriteGdiInterop.Interface
|
||||
{
|
||||
[VtblIndex(8)]
|
||||
HResult CreateFontFromLOGFONT(Win32.Graphics.Gdi.LogFontW* logFont, IDWriteFontCollection* fontCollection, IDWriteFont** font);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetFontSignature(IDWriteFontFace* fontFace, Win32.Graphics.Gdi.FontSignature** fontSignature);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult GetFontSignature(IDWriteFont* font, Win32.Graphics.Gdi.FontSignature** fontSignature);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetMatchingFontsByLOGFONT(Win32.Graphics.Gdi.LogFontA* logFont, IDWriteFontSet* fontSet, IDWriteFontSet** filteredSet);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("7d97dbf7-e085-42d4-81e3-6a883bded118")]
|
||||
[NativeTypeName("struct IDWriteGlyphRunAnalysis : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteGlyphRunAnalysis : INativeGuid
|
||||
public unsafe partial struct IDWriteGlyphRunAnalysis : IDWriteGlyphRunAnalysis.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteGlyphRunAnalysis
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWriteGlyphRunAnalysis : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteGlyphRunAnalysis*, IDWriteRenderingParams*, float*, float*, float*, int>)(lpVtbl[5]))((IDWriteGlyphRunAnalysis*)Unsafe.AsPointer(ref this), renderingParams, blendGamma, blendEnhancedContrast, blendClearTypeLevel);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetAlphaTextureBounds(TextureType textureType, RawRect* textureBounds);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult CreateAlphaTexture(TextureType textureType, RawRect* textureBounds, byte* alphaValues, uint bufferSize);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetAlphaBlendParams(IDWriteRenderingParams* renderingParams, float* blendGamma, float* blendEnhancedContrast, float* blendClearTypeLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("dc102f47-a12d-4b1c-822d-9e117e33043f")]
|
||||
[NativeTypeName("struct IDWriteInMemoryFontFileLoader : IDWriteFontFileLoader")]
|
||||
[NativeInheritance("IDWriteFontFileLoader")]
|
||||
public unsafe partial struct IDWriteInMemoryFontFileLoader : INativeGuid
|
||||
public unsafe partial struct IDWriteInMemoryFontFileLoader : IDWriteInMemoryFontFileLoader.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteInMemoryFontFileLoader
|
||||
{
|
||||
@@ -97,5 +97,13 @@ public unsafe partial struct IDWriteInMemoryFontFileLoader : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteInMemoryFontFileLoader*, uint>)(lpVtbl[5]))((IDWriteInMemoryFontFileLoader*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteFontFileLoader.Interface
|
||||
{
|
||||
[VtblIndex(4)]
|
||||
HResult CreateInMemoryFontFileReference(IDWriteFactory* factory, void* fontData, uint fontDataSize, IUnknown* ownerObject, IDWriteFontFile** fontFile);
|
||||
|
||||
[VtblIndex(5)]
|
||||
uint GetFileCount();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("8339fde3-106f-47ab-8373-1c6295eb10b3")]
|
||||
[NativeTypeName("struct IDWriteInlineObject : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteInlineObject : INativeGuid
|
||||
public unsafe partial struct IDWriteInlineObject : IDWriteInlineObject.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteInlineObject
|
||||
{
|
||||
@@ -105,5 +105,19 @@ public unsafe partial struct IDWriteInlineObject : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteInlineObject*, BreakCondition*, BreakCondition*, int>)(lpVtbl[6]))((IDWriteInlineObject*)Unsafe.AsPointer(ref this), breakConditionBefore, breakConditionAfter);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetMetrics(InlineObjectMetrics* metrics);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetOverhangMetrics(OverhangMetrics* overhangs);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetBreakConditions(BreakCondition* breakConditionBefore, BreakCondition* breakConditionAfter);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b2d9f3ec-c9fe-4a11-a2ec-d86208f7c0a2")]
|
||||
[NativeTypeName("struct IDWriteLocalFontFileLoader : IDWriteFontFileLoader")]
|
||||
[NativeInheritance("IDWriteFontFileLoader")]
|
||||
public unsafe partial struct IDWriteLocalFontFileLoader : INativeGuid
|
||||
public unsafe partial struct IDWriteLocalFontFileLoader : IDWriteLocalFontFileLoader.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteLocalFontFileLoader
|
||||
{
|
||||
@@ -105,5 +105,16 @@ public unsafe partial struct IDWriteLocalFontFileLoader : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteLocalFontFileLoader*, void*, uint, ulong*, int>)(lpVtbl[6]))((IDWriteLocalFontFileLoader*)Unsafe.AsPointer(ref this), fontFileReferenceKey, fontFileReferenceKeySize, lastWriteTime);
|
||||
}
|
||||
public interface Interface : IDWriteFontFileLoader.Interface
|
||||
{
|
||||
[VtblIndex(4)]
|
||||
HResult GetFilePathLengthFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, uint* filePathLength);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetFilePathFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ushort* filePath, uint filePathSize);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetLastWriteTimeFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, ulong* lastWriteTime);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("08256209-099a-4b34-b86d-c22b110e7771")]
|
||||
[NativeTypeName("struct IDWriteLocalizedStrings : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteLocalizedStrings : INativeGuid
|
||||
public unsafe partial struct IDWriteLocalizedStrings : IDWriteLocalizedStrings.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteLocalizedStrings
|
||||
{
|
||||
@@ -121,5 +121,25 @@ public unsafe partial struct IDWriteLocalizedStrings : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteLocalizedStrings*, uint, ushort*, uint, int>)(lpVtbl[8]))((IDWriteLocalizedStrings*)Unsafe.AsPointer(ref this), index, stringBuffer, size);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
uint GetCount();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult FindLocaleName(ushort* localeName, uint* index, Bool32* exists);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetLocaleNameLength(uint index, uint* length);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetLocaleName(uint index, ushort* localeName, uint size);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetStringLength(uint index, uint* length);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetString(uint index, ushort* stringBuffer, uint size);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("14885cc9-bab0-4f90-b6ed-5c366a2cd03d")]
|
||||
[NativeTypeName("struct IDWriteNumberSubstitution : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteNumberSubstitution : INativeGuid
|
||||
public unsafe partial struct IDWriteNumberSubstitution : IDWriteNumberSubstitution.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteNumberSubstitution
|
||||
{
|
||||
@@ -74,5 +74,8 @@ public unsafe partial struct IDWriteNumberSubstitution : INativeGuid
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteNumberSubstitution*, uint>)(lpVtbl[2]))((IDWriteNumberSubstitution*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("eaf3a2da-ecf4-4d24-b644-b34f6842024b")]
|
||||
[NativeTypeName("struct IDWritePixelSnapping : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWritePixelSnapping : INativeGuid
|
||||
public unsafe partial struct IDWritePixelSnapping : IDWritePixelSnapping.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWritePixelSnapping
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWritePixelSnapping : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWritePixelSnapping*, void*, float*, int>)(lpVtbl[5]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult IsPixelSnappingDisabled(void* clientDrawingContext, Bool32* isDisabled);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetCurrentTransform(void* clientDrawingContext, Matrix3x2* transform);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("68648c83-6ede-46c0-ab46-20083a887fde")]
|
||||
[NativeTypeName("struct IDWriteRemoteFontFileLoader : IDWriteFontFileLoader")]
|
||||
[NativeInheritance("IDWriteFontFileLoader")]
|
||||
public unsafe partial struct IDWriteRemoteFontFileLoader : INativeGuid
|
||||
public unsafe partial struct IDWriteRemoteFontFileLoader : IDWriteRemoteFontFileLoader.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRemoteFontFileLoader
|
||||
{
|
||||
@@ -105,5 +105,16 @@ public unsafe partial struct IDWriteRemoteFontFileLoader : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRemoteFontFileLoader*, IDWriteFactory*, ushort*, ushort*, IDWriteFontFile**, int>)(lpVtbl[6]))((IDWriteRemoteFontFileLoader*)Unsafe.AsPointer(ref this), factory, baseUrl, fontFileUrl, fontFile);
|
||||
}
|
||||
public interface Interface : IDWriteFontFileLoader.Interface
|
||||
{
|
||||
[VtblIndex(4)]
|
||||
HResult CreateRemoteStreamFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, IDWriteRemoteFontFileStream** fontFileStream);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetLocalityFromKey(void* fontFileReferenceKey, uint fontFileReferenceKeySize, Locality* locality);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult CreateFontFileReferenceFromUrl(IDWriteFactory* factory, ushort* baseUrl, ushort* fontFileUrl, IDWriteFontFile** fontFile);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("4db3757a-2c72-4ed9-b2b6-1ababe1aff9c")]
|
||||
[NativeTypeName("struct IDWriteRemoteFontFileStream : IDWriteFontFileStream")]
|
||||
[NativeInheritance("IDWriteFontFileStream")]
|
||||
public unsafe partial struct IDWriteRemoteFontFileStream : INativeGuid
|
||||
public unsafe partial struct IDWriteRemoteFontFileStream : IDWriteRemoteFontFileStream.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRemoteFontFileStream
|
||||
{
|
||||
@@ -137,5 +137,19 @@ public unsafe partial struct IDWriteRemoteFontFileStream : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRemoteFontFileStream*, Guid*, FileFragment*, uint, IDWriteAsyncResult**, int>)(lpVtbl[10]))((IDWriteRemoteFontFileStream*)Unsafe.AsPointer(ref this), downloadOperationID, fileFragments, fragmentCount, asyncResult);
|
||||
}
|
||||
public interface Interface : IDWriteFontFileStream.Interface
|
||||
{
|
||||
[VtblIndex(7)]
|
||||
HResult GetLocalFileSize(ulong* localFileSize);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetFileFragmentLocality(ulong fileOffset, ulong fragmentSize, Bool32* isLocal, ulong* partialSize);
|
||||
|
||||
[VtblIndex(9)]
|
||||
Locality GetLocality();
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult BeginDownload(Guid* downloadOperationID, FileFragment* fileFragments, uint fragmentCount, IDWriteAsyncResult** asyncResult);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("2f0da53a-2add-47cd-82ee-d9ec34688e75")]
|
||||
[NativeTypeName("struct IDWriteRenderingParams : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteRenderingParams : INativeGuid
|
||||
public unsafe partial struct IDWriteRenderingParams : IDWriteRenderingParams.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRenderingParams
|
||||
{
|
||||
@@ -113,5 +113,22 @@ public unsafe partial struct IDWriteRenderingParams : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRenderingParams*, RenderingMode>)(lpVtbl[7]))((IDWriteRenderingParams*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
float GetGamma();
|
||||
|
||||
[VtblIndex(4)]
|
||||
float GetEnhancedContrast();
|
||||
|
||||
[VtblIndex(5)]
|
||||
float GetClearTypeLevel();
|
||||
|
||||
[VtblIndex(6)]
|
||||
PixelGeometry GetPixelGeometry();
|
||||
|
||||
[VtblIndex(7)]
|
||||
RenderingMode GetRenderingMode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("94413cf4-a6fc-4248-8b50-6674348fcad3")]
|
||||
[NativeTypeName("struct IDWriteRenderingParams1 : IDWriteRenderingParams")]
|
||||
[NativeInheritance("IDWriteRenderingParams")]
|
||||
public unsafe partial struct IDWriteRenderingParams1 : INativeGuid
|
||||
public unsafe partial struct IDWriteRenderingParams1 : IDWriteRenderingParams1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRenderingParams1
|
||||
{
|
||||
@@ -121,5 +121,10 @@ public unsafe partial struct IDWriteRenderingParams1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRenderingParams1*, float>)(lpVtbl[8]))((IDWriteRenderingParams1*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteRenderingParams.Interface
|
||||
{
|
||||
[VtblIndex(8)]
|
||||
float GetGrayscaleEnhancedContrast();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("f9d711c3-9777-40ae-87e8-3e5af9bf0948")]
|
||||
[NativeTypeName("struct IDWriteRenderingParams2 : IDWriteRenderingParams1")]
|
||||
[NativeInheritance("IDWriteRenderingParams1")]
|
||||
public unsafe partial struct IDWriteRenderingParams2 : INativeGuid
|
||||
public unsafe partial struct IDWriteRenderingParams2 : IDWriteRenderingParams2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRenderingParams2
|
||||
{
|
||||
@@ -129,5 +129,10 @@ public unsafe partial struct IDWriteRenderingParams2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRenderingParams2*, GridFitMode>)(lpVtbl[9]))((IDWriteRenderingParams2*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteRenderingParams1.Interface
|
||||
{
|
||||
[VtblIndex(9)]
|
||||
GridFitMode GetGridFitMode();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b7924baa-391b-412a-8c5c-e44cc2d867dc")]
|
||||
[NativeTypeName("struct IDWriteRenderingParams3 : IDWriteRenderingParams2")]
|
||||
[NativeInheritance("IDWriteRenderingParams2")]
|
||||
public unsafe partial struct IDWriteRenderingParams3 : INativeGuid
|
||||
public unsafe partial struct IDWriteRenderingParams3 : IDWriteRenderingParams3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteRenderingParams3
|
||||
{
|
||||
@@ -137,5 +137,10 @@ public unsafe partial struct IDWriteRenderingParams3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteRenderingParams3*, RenderingMode1>)(lpVtbl[10]))((IDWriteRenderingParams3*)Unsafe.AsPointer(ref this));
|
||||
}
|
||||
public interface Interface : IDWriteRenderingParams2.Interface
|
||||
{
|
||||
[VtblIndex(10)]
|
||||
RenderingMode1 GetRenderingMode1();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("cfee3140-1157-47ca-8b85-31bfcf3f2d0e")]
|
||||
[NativeTypeName("struct IDWriteStringList : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteStringList : INativeGuid
|
||||
public unsafe partial struct IDWriteStringList : IDWriteStringList.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteStringList
|
||||
{
|
||||
@@ -113,5 +113,22 @@ public unsafe partial struct IDWriteStringList : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteStringList*, uint, ushort*, uint, int>)(lpVtbl[7]))((IDWriteStringList*)Unsafe.AsPointer(ref this), listIndex, stringBuffer, stringBufferSize);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
uint GetCount();
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetLocaleNameLength(uint listIndex, uint* length);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetLocaleName(uint listIndex, ushort* localeName, uint size);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetStringLength(uint listIndex, uint* length);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetString(uint listIndex, ushort* stringBuffer, uint stringBufferSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("5810cd44-0ca0-4701-b3fa-bec5182ae4f6")]
|
||||
[NativeTypeName("struct IDWriteTextAnalysisSink : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteTextAnalysisSink : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalysisSink : IDWriteTextAnalysisSink.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalysisSink
|
||||
{
|
||||
@@ -105,5 +105,19 @@ public unsafe partial struct IDWriteTextAnalysisSink : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalysisSink*, uint, uint, IDWriteNumberSubstitution*, int>)(lpVtbl[6]))((IDWriteTextAnalysisSink*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult SetScriptAnalysis(uint textPosition, uint textLength, ScriptAnalysis* scriptAnalysis);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult SetLineBreakpoints(uint textPosition, uint textLength, LineBreakpoint* lineBreakpoints);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult SetBidiLevel(uint textPosition, uint textLength, byte explicitLevel, byte resolvedLevel);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult SetNumberSubstitution(uint textPosition, uint textLength, IDWriteNumberSubstitution* numberSubstitution);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b0d941a0-85e7-4d8b-9fd3-5ced9934482a")]
|
||||
[NativeTypeName("struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink")]
|
||||
[NativeInheritance("IDWriteTextAnalysisSink")]
|
||||
public unsafe partial struct IDWriteTextAnalysisSink1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalysisSink1 : IDWriteTextAnalysisSink1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalysisSink1
|
||||
{
|
||||
@@ -113,5 +113,10 @@ public unsafe partial struct IDWriteTextAnalysisSink1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalysisSink1*, uint, uint, GlyphOrientationAngle, byte, Bool32, Bool32, int>)(lpVtbl[7]))((IDWriteTextAnalysisSink1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientationAngle, adjustedBidiLevel, isSideways, isRightToLeft);
|
||||
}
|
||||
public interface Interface : IDWriteTextAnalysisSink.Interface
|
||||
{
|
||||
[VtblIndex(7)]
|
||||
HResult SetGlyphOrientation(uint textPosition, uint textLength, GlyphOrientationAngle glyphOrientationAngle, byte adjustedBidiLevel, Bool32 isSideways, Bool32 isRightToLeft);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("688e1a58-5094-47c8-adc8-fbcea60ae92b")]
|
||||
[NativeTypeName("struct IDWriteTextAnalysisSource : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteTextAnalysisSource : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalysisSource : IDWriteTextAnalysisSource.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalysisSource
|
||||
{
|
||||
@@ -113,5 +113,22 @@ public unsafe partial struct IDWriteTextAnalysisSource : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalysisSource*, uint, uint*, IDWriteNumberSubstitution**, int>)(lpVtbl[7]))((IDWriteTextAnalysisSource*)Unsafe.AsPointer(ref this), textPosition, textLength, numberSubstitution);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult GetTextAtPosition(uint textPosition, ushort** textString, uint* textLength);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult GetTextBeforePosition(uint textPosition, ushort** textString, uint* textLength);
|
||||
|
||||
[VtblIndex(5)]
|
||||
ReadingDirection GetParagraphReadingDirection();
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult GetLocaleName(uint textPosition, uint* textLength, ushort** localeName);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetNumberSubstitution(uint textPosition, uint* textLength, IDWriteNumberSubstitution** numberSubstitution);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("639cfad8-0fb4-4b21-a58a-067920120009")]
|
||||
[NativeTypeName("struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource")]
|
||||
[NativeInheritance("IDWriteTextAnalysisSource")]
|
||||
public unsafe partial struct IDWriteTextAnalysisSource1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalysisSource1 : IDWriteTextAnalysisSource1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalysisSource1
|
||||
{
|
||||
@@ -121,5 +121,10 @@ public unsafe partial struct IDWriteTextAnalysisSource1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalysisSource1*, uint, uint*, VerticalGlyphOrientation*, byte*, int>)(lpVtbl[8]))((IDWriteTextAnalysisSource1*)Unsafe.AsPointer(ref this), textPosition, textLength, glyphOrientation, bidiLevel);
|
||||
}
|
||||
public interface Interface : IDWriteTextAnalysisSource.Interface
|
||||
{
|
||||
[VtblIndex(8)]
|
||||
HResult GetVerticalGlyphOrientation(uint textPosition, uint* textLength, VerticalGlyphOrientation* glyphOrientation, byte* bidiLevel);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("b7e6163e-7f46-43b4-84b3-e4e6249c365d")]
|
||||
[NativeTypeName("struct IDWriteTextAnalyzer : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteTextAnalyzer : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalyzer : IDWriteTextAnalyzer.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalyzer
|
||||
{
|
||||
@@ -129,5 +129,28 @@ public unsafe partial struct IDWriteTextAnalyzer : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalyzer*, ushort*, ushort*, ShapingTextProperties*, uint, ushort*, ShapingGlyphProperties*, uint, IDWriteFontFace*, float, float, Matrix3x2*, Bool32, Bool32, Bool32, ScriptAnalysis*, ushort*, TypographicFeatures**, uint*, uint, float*, GlyphOffset*, int>)(lpVtbl[9]))((IDWriteTextAnalyzer*)Unsafe.AsPointer(ref this), textString, clusterMap, textProps, textLength, glyphIndices, glyphProps, glyphCount, fontFace, fontEmSize, pixelsPerDip, transform, useGdiNatural, isSideways, isRightToLeft, scriptAnalysis, localeName, features, featureRangeLengths, featureRanges, glyphAdvances, glyphOffsets);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult AnalyzeScript(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult AnalyzeBidi(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult AnalyzeNumberSubstitution(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult AnalyzeLineBreakpoints(IDWriteTextAnalysisSource* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink* analysisSink);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult GetGlyphs(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, IDWriteNumberSubstitution* numberSubstitution, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, uint maxGlyphCount, ushort* clusterMap, ShapingTextProperties* textProps, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint* actualGlyphCount);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult GetGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult GetGdiCompatibleGlyphPlacements(ushort* textString, ushort* clusterMap, ShapingTextProperties* textProps, uint textLength, ushort* glyphIndices, ShapingGlyphProperties* glyphProps, uint glyphCount, IDWriteFontFace* fontFace, float fontEmSize, float pixelsPerDip, Matrix3x2* transform, Bool32 useGdiNatural, Bool32 isSideways, Bool32 isRightToLeft, ScriptAnalysis* scriptAnalysis, ushort* localeName, TypographicFeatures** features, uint* featureRangeLengths, uint featureRanges, float* glyphAdvances, GlyphOffset* glyphOffsets);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("80dad800-e21f-4e83-96ce-bfcce500db7c")]
|
||||
[NativeTypeName("struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer")]
|
||||
[NativeInheritance("IDWriteTextAnalyzer")]
|
||||
public unsafe partial struct IDWriteTextAnalyzer1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalyzer1 : IDWriteTextAnalyzer1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalyzer1
|
||||
{
|
||||
@@ -201,5 +201,34 @@ public unsafe partial struct IDWriteTextAnalyzer1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalyzer1*, IDWriteFontFace*, float, ScriptAnalysis, uint, uint, uint, ushort*, ushort*, float*, float*, GlyphOffset*, ShapingGlyphProperties*, uint*, ushort*, ushort*, float*, GlyphOffset*, int>)(lpVtbl[18]))((IDWriteTextAnalyzer1*)Unsafe.AsPointer(ref this), fontFace, fontEmSize, scriptAnalysis, textLength, glyphCount, maxGlyphCount, clusterMap, glyphIndices, glyphAdvances, justifiedGlyphAdvances, justifiedGlyphOffsets, glyphProperties, actualGlyphCount, modifiedClusterMap, modifiedGlyphIndices, modifiedGlyphAdvances, modifiedGlyphOffsets);
|
||||
}
|
||||
public interface Interface : IDWriteTextAnalyzer.Interface
|
||||
{
|
||||
[VtblIndex(10)]
|
||||
HResult ApplyCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, uint textLength, uint glyphCount, ushort* clusterMap, float* glyphAdvances, GlyphOffset* glyphOffsets, ShapingGlyphProperties* glyphProperties, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult GetBaseline(IDWriteFontFace* fontFace, Baseline baseline, Bool32 isVertical, Bool32 isSimulationAllowed, ScriptAnalysis scriptAnalysis, ushort* localeName, int* baselineCoordinate, Bool32* exists);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult AnalyzeVerticalGlyphOrientation(IDWriteTextAnalysisSource1* analysisSource, uint textPosition, uint textLength, IDWriteTextAnalysisSink1* analysisSink);
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, Matrix3x2* transform);
|
||||
|
||||
[VtblIndex(14)]
|
||||
HResult GetScriptProperties(ScriptAnalysis scriptAnalysis, ScriptProperties* scriptProperties);
|
||||
|
||||
[VtblIndex(15)]
|
||||
HResult GetTextComplexity(ushort* textString, uint textLength, IDWriteFontFace* fontFace, Bool32* isTextSimple, uint* textLengthRead, ushort* glyphIndices);
|
||||
|
||||
[VtblIndex(16)]
|
||||
HResult GetJustificationOpportunities(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, ushort* textString, ushort* clusterMap, ShapingGlyphProperties* glyphProperties, JustificationOpportunity* justificationOpportunities);
|
||||
|
||||
[VtblIndex(17)]
|
||||
HResult JustifyGlyphAdvances(float lineWidth, uint glyphCount, JustificationOpportunity* justificationOpportunities, float* glyphAdvances, GlyphOffset* glyphOffsets, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets);
|
||||
|
||||
[VtblIndex(18)]
|
||||
HResult GetJustifiedGlyphs(IDWriteFontFace* fontFace, float fontEmSize, ScriptAnalysis scriptAnalysis, uint textLength, uint glyphCount, uint maxGlyphCount, ushort* clusterMap, ushort* glyphIndices, float* glyphAdvances, float* justifiedGlyphAdvances, GlyphOffset* justifiedGlyphOffsets, ShapingGlyphProperties* glyphProperties, uint* actualGlyphCount, ushort* modifiedClusterMap, ushort* modifiedGlyphIndices, float* modifiedGlyphAdvances, GlyphOffset* modifiedGlyphOffsets);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("553a9ff3-5693-4df7-b52b-74806f7f2eb9")]
|
||||
[NativeTypeName("struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer1")]
|
||||
[NativeInheritance("IDWriteTextAnalyzer1")]
|
||||
public unsafe partial struct IDWriteTextAnalyzer2 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextAnalyzer2 : IDWriteTextAnalyzer2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextAnalyzer2
|
||||
{
|
||||
@@ -225,5 +225,16 @@ public unsafe partial struct IDWriteTextAnalyzer2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextAnalyzer2*, IDWriteFontFace*, ScriptAnalysis, ushort*, FontFeatureTag, uint, ushort*, byte*, int>)(lpVtbl[21]))((IDWriteTextAnalyzer2*)Unsafe.AsPointer(ref this), fontFace, scriptAnalysis, localeName, featureTag, glyphCount, glyphIndices, featureApplies);
|
||||
}
|
||||
public interface Interface : IDWriteTextAnalyzer1.Interface
|
||||
{
|
||||
[VtblIndex(19)]
|
||||
HResult GetGlyphOrientationTransform(GlyphOrientationAngle glyphOrientationAngle, Bool32 isSideways, float originX, float originY, Matrix3x2* transform);
|
||||
|
||||
[VtblIndex(20)]
|
||||
HResult GetTypographicFeatures(IDWriteFontFace* fontFace, ScriptAnalysis scriptAnalysis, ushort* localeName, uint maxTagCount, uint* actualTagCount, FontFeatureTag* tags);
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult CheckTypographicFeature(IDWriteFontFace* fontFace, ScriptAnalysis scriptAnalysis, ushort* localeName, FontFeatureTag featureTag, uint glyphCount, ushort* glyphIndices, byte* featureApplies);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("9c906818-31d7-4fd3-a151-7c5e225db55a")]
|
||||
[NativeTypeName("struct IDWriteTextFormat : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteTextFormat : INativeGuid
|
||||
public unsafe partial struct IDWriteTextFormat : IDWriteTextFormat.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextFormat
|
||||
{
|
||||
@@ -273,5 +273,82 @@ public unsafe partial struct IDWriteTextFormat : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextFormat*, ushort*, uint, int>)(lpVtbl[27]))((IDWriteTextFormat*)Unsafe.AsPointer(ref this), localeName, nameSize);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult SetTextAlignment(TextAlignment textAlignment);
|
||||
|
||||
[VtblIndex(4)]
|
||||
HResult SetParagraphAlignment(ParagraphAlignment paragraphAlignment);
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult SetWordWrapping(WordWrapping wordWrapping);
|
||||
|
||||
[VtblIndex(6)]
|
||||
HResult SetReadingDirection(ReadingDirection readingDirection);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult SetFlowDirection(FlowDirection flowDirection);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult SetIncrementalTabStop(float incrementalTabStop);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult SetTrimming(Trimming* trimmingOptions, IDWriteInlineObject* trimmingSign);
|
||||
|
||||
[VtblIndex(10)]
|
||||
HResult SetLineSpacing(LineSpacingMethod lineSpacingMethod, float lineSpacing, float baseline);
|
||||
|
||||
[VtblIndex(11)]
|
||||
TextAlignment GetTextAlignment();
|
||||
|
||||
[VtblIndex(12)]
|
||||
ParagraphAlignment GetParagraphAlignment();
|
||||
|
||||
[VtblIndex(13)]
|
||||
WordWrapping GetWordWrapping();
|
||||
|
||||
[VtblIndex(14)]
|
||||
ReadingDirection GetReadingDirection();
|
||||
|
||||
[VtblIndex(15)]
|
||||
FlowDirection GetFlowDirection();
|
||||
|
||||
[VtblIndex(16)]
|
||||
float GetIncrementalTabStop();
|
||||
|
||||
[VtblIndex(17)]
|
||||
HResult GetTrimming(Trimming* trimmingOptions, IDWriteInlineObject** trimmingSign);
|
||||
|
||||
[VtblIndex(18)]
|
||||
HResult GetLineSpacing(LineSpacingMethod* lineSpacingMethod, float* lineSpacing, float* baseline);
|
||||
|
||||
[VtblIndex(19)]
|
||||
HResult GetFontCollection(IDWriteFontCollection** fontCollection);
|
||||
|
||||
[VtblIndex(20)]
|
||||
uint GetFontFamilyNameLength();
|
||||
|
||||
[VtblIndex(21)]
|
||||
HResult GetFontFamilyName(ushort* fontFamilyName, uint nameSize);
|
||||
|
||||
[VtblIndex(22)]
|
||||
FontWeight GetFontWeight();
|
||||
|
||||
[VtblIndex(23)]
|
||||
FontStyle GetFontStyle();
|
||||
|
||||
[VtblIndex(24)]
|
||||
FontStretch GetFontStretch();
|
||||
|
||||
[VtblIndex(25)]
|
||||
float GetFontSize();
|
||||
|
||||
[VtblIndex(26)]
|
||||
uint GetLocaleNameLength();
|
||||
|
||||
[VtblIndex(27)]
|
||||
HResult GetLocaleName(ushort* localeName, uint nameSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("5f174b49-0d8b-4cfb-8bca-f1cce9d06c67")]
|
||||
[NativeTypeName("struct IDWriteTextFormat1 : IDWriteTextFormat")]
|
||||
[NativeInheritance("IDWriteTextFormat")]
|
||||
public unsafe partial struct IDWriteTextFormat1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextFormat1 : IDWriteTextFormat1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextFormat1
|
||||
{
|
||||
@@ -337,5 +337,31 @@ public unsafe partial struct IDWriteTextFormat1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextFormat1*, IDWriteFontFallback**, int>)(lpVtbl[35]))((IDWriteTextFormat1*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
public interface Interface : IDWriteTextFormat.Interface
|
||||
{
|
||||
[VtblIndex(28)]
|
||||
HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation);
|
||||
|
||||
[VtblIndex(29)]
|
||||
VerticalGlyphOrientation GetVerticalGlyphOrientation();
|
||||
|
||||
[VtblIndex(30)]
|
||||
HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled);
|
||||
|
||||
[VtblIndex(31)]
|
||||
Bool32 GetLastLineWrapping();
|
||||
|
||||
[VtblIndex(32)]
|
||||
HResult SetOpticalAlignment(OpticalAlignment opticalAlignment);
|
||||
|
||||
[VtblIndex(33)]
|
||||
OpticalAlignment GetOpticalAlignment();
|
||||
|
||||
[VtblIndex(34)]
|
||||
HResult SetFontFallback(IDWriteFontFallback* fontFallback);
|
||||
|
||||
[VtblIndex(35)]
|
||||
HResult GetFontFallback(IDWriteFontFallback** fontFallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("f67e0edd-9e3d-4ecc-8c32-4183253dfe70")]
|
||||
[NativeTypeName("struct IDWriteTextFormat2 : IDWriteTextFormat1")]
|
||||
[NativeInheritance("IDWriteTextFormat1")]
|
||||
public unsafe partial struct IDWriteTextFormat2 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextFormat2 : IDWriteTextFormat2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextFormat2
|
||||
{
|
||||
@@ -353,5 +353,13 @@ public unsafe partial struct IDWriteTextFormat2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextFormat2*, LineSpacing*, int>)(lpVtbl[37]))((IDWriteTextFormat2*)Unsafe.AsPointer(ref this), lineSpacingOptions);
|
||||
}
|
||||
public interface Interface : IDWriteTextFormat1.Interface
|
||||
{
|
||||
[VtblIndex(36)]
|
||||
HResult SetLineSpacing(LineSpacing* lineSpacingOptions);
|
||||
|
||||
[VtblIndex(37)]
|
||||
HResult GetLineSpacing(LineSpacing* lineSpacingOptions);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("6d3b5641-e550-430d-a85b-b7bf48a93427")]
|
||||
[NativeTypeName("struct IDWriteTextFormat3 : IDWriteTextFormat2")]
|
||||
[NativeInheritance("IDWriteTextFormat2")]
|
||||
public unsafe partial struct IDWriteTextFormat3 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextFormat3 : IDWriteTextFormat3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextFormat3
|
||||
{
|
||||
@@ -393,5 +393,22 @@ public unsafe partial struct IDWriteTextFormat3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextFormat3*, AutomaticFontAxes, int>)(lpVtbl[42]))((IDWriteTextFormat3*)Unsafe.AsPointer(ref this), automaticFontAxes);
|
||||
}
|
||||
public interface Interface : IDWriteTextFormat2.Interface
|
||||
{
|
||||
[VtblIndex(38)]
|
||||
HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount);
|
||||
|
||||
[VtblIndex(39)]
|
||||
uint GetFontAxisValueCount();
|
||||
|
||||
[VtblIndex(40)]
|
||||
HResult GetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount);
|
||||
|
||||
[VtblIndex(41)]
|
||||
AutomaticFontAxes GetAutomaticFontAxes();
|
||||
|
||||
[VtblIndex(42)]
|
||||
HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("53737037-6d14-410b-9bfe-0b182bb70961")]
|
||||
[NativeTypeName("struct IDWriteTextLayout : IDWriteTextFormat")]
|
||||
[NativeInheritance("IDWriteTextFormat")]
|
||||
public unsafe partial struct IDWriteTextLayout : INativeGuid
|
||||
public unsafe partial struct IDWriteTextLayout : IDWriteTextLayout.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextLayout
|
||||
{
|
||||
@@ -585,5 +585,124 @@ public unsafe partial struct IDWriteTextLayout : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextLayout*, uint, uint, float, float, HitTestMetrics*, uint, uint*, int>)(lpVtbl[66]))((IDWriteTextLayout*)Unsafe.AsPointer(ref this), textPosition, textLength, originX, originY, hitTestMetrics, maxHitTestMetricsCount, actualHitTestMetricsCount);
|
||||
}
|
||||
public interface Interface : IDWriteTextFormat.Interface
|
||||
{
|
||||
[VtblIndex(28)]
|
||||
HResult SetMaxWidth(float maxWidth);
|
||||
|
||||
[VtblIndex(29)]
|
||||
HResult SetMaxHeight(float maxHeight);
|
||||
|
||||
[VtblIndex(30)]
|
||||
HResult SetFontCollection(IDWriteFontCollection* fontCollection, TextRange textRange);
|
||||
|
||||
[VtblIndex(31)]
|
||||
HResult SetFontFamilyName(ushort* fontFamilyName, TextRange textRange);
|
||||
|
||||
[VtblIndex(32)]
|
||||
HResult SetFontWeight(FontWeight fontWeight, TextRange textRange);
|
||||
|
||||
[VtblIndex(33)]
|
||||
HResult SetFontStyle(FontStyle fontStyle, TextRange textRange);
|
||||
|
||||
[VtblIndex(34)]
|
||||
HResult SetFontStretch(FontStretch fontStretch, TextRange textRange);
|
||||
|
||||
[VtblIndex(35)]
|
||||
HResult SetFontSize(float fontSize, TextRange textRange);
|
||||
|
||||
[VtblIndex(36)]
|
||||
HResult SetUnderline(Bool32 hasUnderline, TextRange textRange);
|
||||
|
||||
[VtblIndex(37)]
|
||||
HResult SetStrikethrough(Bool32 hasStrikethrough, TextRange textRange);
|
||||
|
||||
[VtblIndex(38)]
|
||||
HResult SetDrawingEffect(IUnknown* drawingEffect, TextRange textRange);
|
||||
|
||||
[VtblIndex(39)]
|
||||
HResult SetInlineObject(IDWriteInlineObject* inlineObject, TextRange textRange);
|
||||
|
||||
[VtblIndex(40)]
|
||||
HResult SetTypography(IDWriteTypography* typography, TextRange textRange);
|
||||
|
||||
[VtblIndex(41)]
|
||||
HResult SetLocaleName(ushort* localeName, TextRange textRange);
|
||||
|
||||
[VtblIndex(42)]
|
||||
float GetMaxWidth();
|
||||
|
||||
[VtblIndex(43)]
|
||||
float GetMaxHeight();
|
||||
|
||||
[VtblIndex(44)]
|
||||
HResult GetFontCollection(uint currentPosition, IDWriteFontCollection** fontCollection, TextRange* textRange);
|
||||
|
||||
[VtblIndex(45)]
|
||||
HResult GetFontFamilyNameLength(uint currentPosition, uint* nameLength, TextRange* textRange);
|
||||
|
||||
[VtblIndex(46)]
|
||||
HResult GetFontFamilyName(uint currentPosition, ushort* fontFamilyName, uint nameSize, TextRange* textRange);
|
||||
|
||||
[VtblIndex(47)]
|
||||
HResult GetFontWeight(uint currentPosition, FontWeight* fontWeight, TextRange* textRange);
|
||||
|
||||
[VtblIndex(48)]
|
||||
HResult GetFontStyle(uint currentPosition, FontStyle* fontStyle, TextRange* textRange);
|
||||
|
||||
[VtblIndex(49)]
|
||||
HResult GetFontStretch(uint currentPosition, FontStretch* fontStretch, TextRange* textRange);
|
||||
|
||||
[VtblIndex(50)]
|
||||
HResult GetFontSize(uint currentPosition, float* fontSize, TextRange* textRange);
|
||||
|
||||
[VtblIndex(51)]
|
||||
HResult GetUnderline(uint currentPosition, Bool32* hasUnderline, TextRange* textRange);
|
||||
|
||||
[VtblIndex(52)]
|
||||
HResult GetStrikethrough(uint currentPosition, Bool32* hasStrikethrough, TextRange* textRange);
|
||||
|
||||
[VtblIndex(53)]
|
||||
HResult GetDrawingEffect(uint currentPosition, IUnknown** drawingEffect, TextRange* textRange);
|
||||
|
||||
[VtblIndex(54)]
|
||||
HResult GetInlineObject(uint currentPosition, IDWriteInlineObject** inlineObject, TextRange* textRange);
|
||||
|
||||
[VtblIndex(55)]
|
||||
HResult GetTypography(uint currentPosition, IDWriteTypography** typography, TextRange* textRange);
|
||||
|
||||
[VtblIndex(56)]
|
||||
HResult GetLocaleNameLength(uint currentPosition, uint* nameLength, TextRange* textRange);
|
||||
|
||||
[VtblIndex(57)]
|
||||
HResult GetLocaleName(uint currentPosition, ushort* localeName, uint nameSize, TextRange* textRange);
|
||||
|
||||
[VtblIndex(58)]
|
||||
HResult Draw(void* clientDrawingContext, IDWriteTextRenderer* renderer, float originX, float originY);
|
||||
|
||||
[VtblIndex(59)]
|
||||
HResult GetLineMetrics(LineMetrics* lineMetrics, uint maxLineCount, uint* actualLineCount);
|
||||
|
||||
[VtblIndex(60)]
|
||||
HResult GetMetrics(TextMetrics* textMetrics);
|
||||
|
||||
[VtblIndex(61)]
|
||||
HResult GetOverhangMetrics(OverhangMetrics* overhangs);
|
||||
|
||||
[VtblIndex(62)]
|
||||
HResult GetClusterMetrics(ClusterMetrics* clusterMetrics, uint maxClusterCount, uint* actualClusterCount);
|
||||
|
||||
[VtblIndex(63)]
|
||||
HResult DetermineMinWidth(float* minWidth);
|
||||
|
||||
[VtblIndex(64)]
|
||||
HResult HitTestPoint(float pointX, float pointY, Bool32* isTrailingHit, Bool32* isInside, HitTestMetrics* hitTestMetrics);
|
||||
|
||||
[VtblIndex(65)]
|
||||
HResult HitTestTextPosition(uint textPosition, Bool32 isTrailingHit, float* pointX, float* pointY, HitTestMetrics* hitTestMetrics);
|
||||
|
||||
[VtblIndex(66)]
|
||||
HResult HitTestTextRange(uint textPosition, uint textLength, float originX, float originY, HitTestMetrics* hitTestMetrics, uint maxHitTestMetricsCount, uint* actualHitTestMetricsCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("9064d822-80a7-465c-a986-df65f78b8feb")]
|
||||
[NativeTypeName("struct IDWriteTextLayout1 : IDWriteTextLayout")]
|
||||
[NativeInheritance("IDWriteTextLayout")]
|
||||
public unsafe partial struct IDWriteTextLayout1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextLayout1 : IDWriteTextLayout1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextLayout1
|
||||
{
|
||||
@@ -617,5 +617,19 @@ public unsafe partial struct IDWriteTextLayout1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextLayout1*, uint, float*, float*, float*, TextRange*, int>)(lpVtbl[70]))((IDWriteTextLayout1*)Unsafe.AsPointer(ref this), currentPosition, leadingSpacing, trailingSpacing, minimumAdvanceWidth, textRange);
|
||||
}
|
||||
public interface Interface : IDWriteTextLayout.Interface
|
||||
{
|
||||
[VtblIndex(67)]
|
||||
HResult SetPairKerning(Bool32 isPairKerningEnabled, TextRange textRange);
|
||||
|
||||
[VtblIndex(68)]
|
||||
HResult GetPairKerning(uint currentPosition, Bool32* isPairKerningEnabled, TextRange* textRange);
|
||||
|
||||
[VtblIndex(69)]
|
||||
HResult SetCharacterSpacing(float leadingSpacing, float trailingSpacing, float minimumAdvanceWidth, TextRange textRange);
|
||||
|
||||
[VtblIndex(70)]
|
||||
HResult GetCharacterSpacing(uint currentPosition, float* leadingSpacing, float* trailingSpacing, float* minimumAdvanceWidth, TextRange* textRange);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("1093c18f-8d5e-43f0-b064-0917311b525e")]
|
||||
[NativeTypeName("struct IDWriteTextLayout2 : IDWriteTextLayout1")]
|
||||
[NativeInheritance("IDWriteTextLayout1")]
|
||||
public unsafe partial struct IDWriteTextLayout2 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextLayout2 : IDWriteTextLayout2.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextLayout2
|
||||
{
|
||||
@@ -689,5 +689,34 @@ public unsafe partial struct IDWriteTextLayout2 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextLayout2*, IDWriteFontFallback**, int>)(lpVtbl[79]))((IDWriteTextLayout2*)Unsafe.AsPointer(ref this), fontFallback);
|
||||
}
|
||||
public interface Interface : IDWriteTextLayout1.Interface
|
||||
{
|
||||
[VtblIndex(71)]
|
||||
HResult GetMetrics(TextMetrics1* textMetrics);
|
||||
|
||||
[VtblIndex(72)]
|
||||
HResult SetVerticalGlyphOrientation(VerticalGlyphOrientation glyphOrientation);
|
||||
|
||||
[VtblIndex(73)]
|
||||
VerticalGlyphOrientation GetVerticalGlyphOrientation();
|
||||
|
||||
[VtblIndex(74)]
|
||||
HResult SetLastLineWrapping(Bool32 isLastLineWrappingEnabled);
|
||||
|
||||
[VtblIndex(75)]
|
||||
Bool32 GetLastLineWrapping();
|
||||
|
||||
[VtblIndex(76)]
|
||||
HResult SetOpticalAlignment(OpticalAlignment opticalAlignment);
|
||||
|
||||
[VtblIndex(77)]
|
||||
OpticalAlignment GetOpticalAlignment();
|
||||
|
||||
[VtblIndex(78)]
|
||||
HResult SetFontFallback(IDWriteFontFallback* fontFallback);
|
||||
|
||||
[VtblIndex(79)]
|
||||
HResult GetFontFallback(IDWriteFontFallback** fontFallback);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("07ddcd52-020e-4de8-ac33-6c953d83f92d")]
|
||||
[NativeTypeName("struct IDWriteTextLayout3 : IDWriteTextLayout2")]
|
||||
[NativeInheritance("IDWriteTextLayout2")]
|
||||
public unsafe partial struct IDWriteTextLayout3 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextLayout3 : IDWriteTextLayout3.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextLayout3
|
||||
{
|
||||
@@ -721,5 +721,19 @@ public unsafe partial struct IDWriteTextLayout3 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextLayout3*, LineMetrics1*, uint, uint*, int>)(lpVtbl[83]))((IDWriteTextLayout3*)Unsafe.AsPointer(ref this), lineMetrics, maxLineCount, actualLineCount);
|
||||
}
|
||||
public interface Interface : IDWriteTextLayout2.Interface
|
||||
{
|
||||
[VtblIndex(80)]
|
||||
HResult InvalidateLayout();
|
||||
|
||||
[VtblIndex(81)]
|
||||
HResult SetLineSpacing(LineSpacing* lineSpacingOptions);
|
||||
|
||||
[VtblIndex(82)]
|
||||
HResult GetLineSpacing(LineSpacing* lineSpacingOptions);
|
||||
|
||||
[VtblIndex(83)]
|
||||
HResult GetLineMetrics(LineMetrics1* lineMetrics, uint maxLineCount, uint* actualLineCount);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("05a9bf42-223f-4441-b5fb-8263685f55e9")]
|
||||
[NativeTypeName("struct IDWriteTextLayout4 : IDWriteTextLayout3")]
|
||||
[NativeInheritance("IDWriteTextLayout3")]
|
||||
public unsafe partial struct IDWriteTextLayout4 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextLayout4 : IDWriteTextLayout4.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextLayout4
|
||||
{
|
||||
@@ -761,5 +761,22 @@ public unsafe partial struct IDWriteTextLayout4 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextLayout4*, AutomaticFontAxes, int>)(lpVtbl[88]))((IDWriteTextLayout4*)Unsafe.AsPointer(ref this), automaticFontAxes);
|
||||
}
|
||||
public interface Interface : IDWriteTextLayout3.Interface
|
||||
{
|
||||
[VtblIndex(84)]
|
||||
HResult SetFontAxisValues(FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange textRange);
|
||||
|
||||
[VtblIndex(85)]
|
||||
uint GetFontAxisValueCount(uint currentPosition);
|
||||
|
||||
[VtblIndex(86)]
|
||||
HResult GetFontAxisValues(uint currentPosition, FontAxisValue* fontAxisValues, uint fontAxisValueCount, TextRange* textRange);
|
||||
|
||||
[VtblIndex(87)]
|
||||
AutomaticFontAxes GetAutomaticFontAxes();
|
||||
|
||||
[VtblIndex(88)]
|
||||
HResult SetAutomaticFontAxes(AutomaticFontAxes automaticFontAxes);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("ef8a8135-5cc6-45fe-8825-c5a0724eb819")]
|
||||
[NativeTypeName("struct IDWriteTextRenderer : IDWritePixelSnapping")]
|
||||
[NativeInheritance("IDWritePixelSnapping")]
|
||||
public unsafe partial struct IDWriteTextRenderer : INativeGuid
|
||||
public unsafe partial struct IDWriteTextRenderer : IDWriteTextRenderer.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextRenderer
|
||||
{
|
||||
@@ -129,5 +129,19 @@ public unsafe partial struct IDWriteTextRenderer : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextRenderer*, void*, float, float, IDWriteInlineObject*, Bool32, Bool32, IUnknown*, int>)(lpVtbl[9]))((IDWriteTextRenderer*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, inlineObject, isSideways, isRightToLeft, clientDrawingEffect);
|
||||
}
|
||||
public interface Interface : IDWritePixelSnapping.Interface
|
||||
{
|
||||
[VtblIndex(6)]
|
||||
HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(7)]
|
||||
HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Underline* underline, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(8)]
|
||||
HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, Strikethrough* strikethrough, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(9)]
|
||||
HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("d3e0e934-22a0-427e-aae4-7d9574b59db1")]
|
||||
[NativeTypeName("struct IDWriteTextRenderer1 : IDWriteTextRenderer")]
|
||||
[NativeInheritance("IDWriteTextRenderer")]
|
||||
public unsafe partial struct IDWriteTextRenderer1 : INativeGuid
|
||||
public unsafe partial struct IDWriteTextRenderer1 : IDWriteTextRenderer1.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTextRenderer1
|
||||
{
|
||||
@@ -161,5 +161,19 @@ public unsafe partial struct IDWriteTextRenderer1 : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTextRenderer1*, void*, float, float, GlyphOrientationAngle, IDWriteInlineObject*, Bool32, Bool32, IUnknown*, int>)(lpVtbl[13]))((IDWriteTextRenderer1*)Unsafe.AsPointer(ref this), clientDrawingContext, originX, originY, orientationAngle, inlineObject, isSideways, isRightToLeft, clientDrawingEffect);
|
||||
}
|
||||
public interface Interface : IDWriteTextRenderer.Interface
|
||||
{
|
||||
[VtblIndex(10)]
|
||||
HResult DrawGlyphRun(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, MeasuringMode measuringMode, GlyphRun* glyphRun, GlyphRunDescription* glyphRunDescription, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(11)]
|
||||
HResult DrawUnderline(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Underline* underline, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(12)]
|
||||
HResult DrawStrikethrough(void* clientDrawingContext, float baselineOriginX, float baselineOriginY, GlyphOrientationAngle orientationAngle, Strikethrough* strikethrough, IUnknown* clientDrawingEffect);
|
||||
|
||||
[VtblIndex(13)]
|
||||
HResult DrawInlineObject(void* clientDrawingContext, float originX, float originY, GlyphOrientationAngle orientationAngle, IDWriteInlineObject* inlineObject, Bool32 isSideways, Bool32 isRightToLeft, IUnknown* clientDrawingEffect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace Win32.Graphics.DirectWrite;
|
||||
[Guid("55f1112b-1dc2-4b3c-9541-f46894ed85b6")]
|
||||
[NativeTypeName("struct IDWriteTypography : IUnknown")]
|
||||
[NativeInheritance("IUnknown")]
|
||||
public unsafe partial struct IDWriteTypography : INativeGuid
|
||||
public unsafe partial struct IDWriteTypography : IDWriteTypography.Interface, INativeGuid
|
||||
{
|
||||
public static ref readonly Guid IID_IDWriteTypography
|
||||
{
|
||||
@@ -97,5 +97,16 @@ public unsafe partial struct IDWriteTypography : INativeGuid
|
||||
{
|
||||
return ((delegate* unmanaged[Stdcall]<IDWriteTypography*, uint, FontFeature*, int>)(lpVtbl[5]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeatureIndex, fontFeature);
|
||||
}
|
||||
public interface Interface : IUnknown.Interface
|
||||
{
|
||||
[VtblIndex(3)]
|
||||
HResult AddFontFeature(FontFeature fontFeature);
|
||||
|
||||
[VtblIndex(4)]
|
||||
uint GetFontFeatureCount();
|
||||
|
||||
[VtblIndex(5)]
|
||||
HResult GetFontFeature(uint fontFeatureIndex, FontFeature* fontFeature);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
using static Win32.Apis;
|
||||
|
||||
namespace Win32.Graphics.DirectWrite;
|
||||
|
||||
public unsafe partial struct IDWriteFactory
|
||||
@@ -16,7 +18,7 @@ public unsafe partial struct IDWriteFactory
|
||||
|
||||
fixed (char* fontFamilyNamePtr = fontFamilyName)
|
||||
{
|
||||
CreateTextFormat(
|
||||
ThrowIfFailed(CreateTextFormat(
|
||||
(ushort*)fontFamilyNamePtr,
|
||||
null,
|
||||
fontWeight,
|
||||
@@ -24,7 +26,7 @@ public unsafe partial struct IDWriteFactory
|
||||
fontStretch,
|
||||
fontSize,
|
||||
null,
|
||||
textFormat.GetAddressOf()).ThrowIfFailed();
|
||||
textFormat.GetAddressOf()));
|
||||
|
||||
return textFormat.Move();
|
||||
}
|
||||
@@ -44,7 +46,7 @@ public unsafe partial struct IDWriteFactory
|
||||
{
|
||||
fixed (char* localeNamePtr = localeName)
|
||||
{
|
||||
CreateTextFormat(
|
||||
ThrowIfFailed(CreateTextFormat(
|
||||
(ushort*)fontFamilyNamePtr,
|
||||
null,
|
||||
fontWeight,
|
||||
@@ -52,7 +54,8 @@ public unsafe partial struct IDWriteFactory
|
||||
fontStretch,
|
||||
fontSize,
|
||||
(ushort*)localeNamePtr,
|
||||
textFormat.GetAddressOf()).ThrowIfFailed();
|
||||
textFormat.GetAddressOf())
|
||||
);
|
||||
}
|
||||
|
||||
return textFormat.Move();
|
||||
@@ -74,7 +77,7 @@ public unsafe partial struct IDWriteFactory
|
||||
{
|
||||
fixed (char* localeNamePtr = localeName)
|
||||
{
|
||||
CreateTextFormat(
|
||||
ThrowIfFailed(CreateTextFormat(
|
||||
(ushort*)fontFamilyNamePtr,
|
||||
fontCollection,
|
||||
fontWeight,
|
||||
@@ -82,7 +85,7 @@ public unsafe partial struct IDWriteFactory
|
||||
fontStretch,
|
||||
fontSize,
|
||||
(ushort*)localeNamePtr,
|
||||
textFormat.GetAddressOf()).ThrowIfFailed();
|
||||
textFormat.GetAddressOf()));
|
||||
}
|
||||
|
||||
return textFormat.Move();
|
||||
|
||||
Reference in New Issue
Block a user