// ------------------------------------------------------------------------------ // // 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; /// /// IDWriteTypography [Guid("55f1112b-1dc2-4b3c-9541-f46894ed85b6")] [NativeTypeName("struct IDWriteTypography : IUnknown")] [NativeInheritance("IUnknown")] public unsafe partial struct IDWriteTypography : IDWriteTypography.Interface, INativeGuid { public static ref readonly Guid IID_IDWriteTypography { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0x2B, 0x11, 0xF1, 0x55, 0xC2, 0x1D, 0x3C, 0x4B, 0x95, 0x41, 0xF4, 0x68, 0x94, 0xED, 0x85, 0xB6 }; 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_IDWriteTypography)); #else public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_IDWriteTypography)); #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]))((IDWriteTypography*)Unsafe.AsPointer(ref this), riid, ppvObject); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWriteTypography*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWriteTypography*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public HResult AddFontFeature(FontFeature fontFeature) { return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWriteTypography*)Unsafe.AsPointer(ref this), fontFeature); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public uint GetFontFeatureCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWriteTypography*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public HResult GetFontFeature(uint fontFeatureIndex, FontFeature* fontFeature) { return ((delegate* unmanaged[Stdcall])(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); } }