// ------------------------------------------------------------------------------ // // 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.Direct2D; /// /// ID2D1StrokeStyle [Guid("2cd9069d-12e2-11dc-9fed-001143a055f9")] [NativeTypeName("struct ID2D1StrokeStyle : ID2D1Resource")] [NativeInheritance("ID2D1Resource")] public unsafe partial struct ID2D1StrokeStyle : INativeGuid { public static ref readonly Guid IID_ID2D1StrokeStyle { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { 0x9D, 0x06, 0xD9, 0x2C, 0xE2, 0x12, 0xDC, 0x11, 0x9F, 0xED, 0x00, 0x11, 0x43, 0xA0, 0x55, 0xF9 }; 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_ID2D1StrokeStyle)); #else public static Guid* NativeGuid => (Guid*)Unsafe.AsPointer(ref Unsafe.AsRef(in IID_ID2D1StrokeStyle)); #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 void GetFactory(ID2D1Factory** factory) { ((delegate* unmanaged[Stdcall])(lpVtbl[3]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), factory); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(4)] public CapStyle GetStartCap() { return ((delegate* unmanaged[Stdcall])(lpVtbl[4]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(5)] public CapStyle GetEndCap() { return ((delegate* unmanaged[Stdcall])(lpVtbl[5]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(6)] public CapStyle GetDashCap() { return ((delegate* unmanaged[Stdcall])(lpVtbl[6]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(7)] public float GetMiterLimit() { return ((delegate* unmanaged[Stdcall])(lpVtbl[7]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(8)] public LineJoin GetLineJoin() { return ((delegate* unmanaged[Stdcall])(lpVtbl[8]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(9)] public float GetDashOffset() { return ((delegate* unmanaged[Stdcall])(lpVtbl[9]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(10)] public DashStyle GetDashStyle() { return ((delegate* unmanaged[Stdcall])(lpVtbl[10]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(11)] public uint GetDashesCount() { return ((delegate* unmanaged[Stdcall])(lpVtbl[11]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this)); } /// [MethodImpl(MethodImplOptions.AggressiveInlining)] [VtblIndex(12)] public void GetDashes(float* dashes, uint dashesCount) { ((delegate* unmanaged[Stdcall])(lpVtbl[12]))((ID2D1StrokeStyle*)Unsafe.AsPointer(ref this), dashes, dashesCount); } }