// ------------------------------------------------------------------------------ // // This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // // ------------------------------------------------------------------------------ namespace Win32.Graphics.DirectWrite; /// /// IDWriteFontList2 [Guid("c0763a34-77af-445a-b735-08c37b0a5bf5")] [NativeTypeName("struct IDWriteFontList2 : IDWriteFontList1")] [NativeInheritance("IDWriteFontList1")] public unsafe partial struct IDWriteFontList2 : INativeGuid { public static ref readonly Guid IID_IDWriteFontList2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0x34, 0x3A, 0x76, 0xC0, 0xAF, 0x77, 0x5A, 0x44, 0xB7, 0x35, 0x08, 0xC3, 0x7B, 0x0A, 0x5B, 0xF5 }; Debug.Assert(data.Length == Unsafe.SizeOf()); return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } #if NET6_0_OR_GREATER static Guid* INativeGuid.NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2)); #else public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteFontList2)); #endif public void** lpVtbl; /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public HResult QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IUnknown*)Unsafe.AsPointer(ref this), riid, ppvObject); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IUnknown*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IUnknown*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public HResult GetFontCollection(IDWriteFontCollection** fontCollection) { return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontCollection); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public uint GetFontCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteFontList2*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public HResult GetFont(uint index, IDWriteFont** font) { return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), index, font); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public Locality GetFontLocality(uint listIndex) { return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public HResult GetFont(uint listIndex, IDWriteFont3** font) { return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, font); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] public HResult GetFontFaceReference(uint listIndex, IDWriteFontFaceReference** fontFaceReference) { return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), listIndex, fontFaceReference); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] public HResult GetFontSet(IDWriteFontSet1** fontSet) { return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((IDWriteFontList2*)Unsafe.AsPointer(ref this), fontSet); } }