// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. // Ported from um/dwrite.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; namespace TerraFX.Interop.DirectX { [Guid("EAF3A2DA-ECF4-4D24-B644-B34F6842024B")] [NativeTypeName("struct IDWritePixelSnapping : IUnknown")] [NativeInheritance("IUnknown")] internal unsafe partial struct IDWritePixelSnapping : IDWritePixelSnapping.Interface { public void** lpVtbl; [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(0)] public HRESULT QueryInterface([NativeTypeName("const IID &")] Guid* riid, void** ppvObject) { return ((delegate* unmanaged[Stdcall])(lpVtbl[0]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), riid, ppvObject); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(1)] [return: NativeTypeName("ULONG")] public uint AddRef() { return ((delegate* unmanaged[Stdcall])(lpVtbl[1]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(2)] [return: NativeTypeName("ULONG")] public uint Release() { return ((delegate* unmanaged[Stdcall])(lpVtbl[2]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this)); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(3)] public HRESULT IsPixelSnappingDisabled(void* clientDrawingContext, BOOL* isDisabled) { return ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, isDisabled); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public HRESULT GetCurrentTransform(void* clientDrawingContext, DWRITE_MATRIX* transform) { return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, transform); } [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public HRESULT GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip) { return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((IDWritePixelSnapping*)Unsafe.AsPointer(ref this), clientDrawingContext, pixelsPerDip); } public interface Interface : IUnknown.Interface { [VtblIndex(3)] HRESULT IsPixelSnappingDisabled(void* clientDrawingContext, BOOL* isDisabled); [VtblIndex(4)] HRESULT GetCurrentTransform(void* clientDrawingContext, DWRITE_MATRIX* transform); [VtblIndex(5)] HRESULT GetPixelsPerDip(void* clientDrawingContext, float* pixelsPerDip); } } }