3 instantiations of HDC
Microsoft.Private.Windows.Core (3)
_generated\102\Windows.Win32.HDC.g.cs (3)
41 public static explicit operator HDC(void* value) => new HDC(value); 57 public static explicit operator HDC(IntPtr value) => new HDC((void*)value.ToPointer()); 59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
199 references to HDC
Microsoft.Private.Windows.Core (199)
_generated\102\Windows.Win32.HDC.g.cs (13)
25 : IEquatable<HDC> 35 internal static HDC Null => default; 39 public static implicit operator void*(HDC value) => value.Value; 41 public static explicit operator HDC(void* value) => new HDC(value); 43 public static bool operator ==(HDC left, HDC right) => left.Value == right.Value; 45 public static bool operator !=(HDC left, HDC right) => !(left == right); 47 public bool Equals(HDC other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HDC other && this.Equals(other); 55 public static implicit operator IntPtr(HDC value) => new IntPtr(value.Value); 57 public static explicit operator HDC(IntPtr value) => new HDC((void*)value.ToPointer()); 59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
_generated\153\Windows.Win32.IPicture.g.cs (26)
183 /// <inheritdoc cref="Render(winmdroot.Graphics.Gdi.HDC, int, int, int, int, int, int, int, int, winmdroot.Foundation.RECT*)"/> 185 internal unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, in winmdroot.Foundation.RECT pRcWBounds) 212 public unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds) 214 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IPicture*)Unsafe.AsPointer(ref this), hDC, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, pRcWBounds); 229 /// <inheritdoc cref="get_CurDC(winmdroot.Graphics.Gdi.HDC*)"/> 231 internal unsafe winmdroot.Foundation.HRESULT get_CurDC(out winmdroot.Graphics.Gdi.HDC phDC) 233 fixed (winmdroot.Graphics.Gdi.HDC* phDCLocal = &phDC) 250 public unsafe winmdroot.Foundation.HRESULT get_CurDC(winmdroot.Graphics.Gdi.HDC* phDC) 252 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IPicture*)Unsafe.AsPointer(ref this), phDC); 255 /// <inheritdoc cref="SelectPicture(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC*, winmdroot.System.Ole.OLE_HANDLE*)"/> 257 internal unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, out winmdroot.Graphics.Gdi.HDC phDCOut, out winmdroot.System.Ole.OLE_HANDLE phBmpOut) 261 fixed (winmdroot.Graphics.Gdi.HDC* phDCOutLocal = &phDCOut) 277 public unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut) 279 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IPicture*)Unsafe.AsPointer(ref this), hDCIn, phDCOut, phBmpOut); 419 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT> Render_9; 423 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT> get_CurDC_11; 425 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> SelectPicture_12; 467 unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds); 473 unsafe winmdroot.Foundation.HRESULT get_CurDC(winmdroot.Graphics.Gdi.HDC* phDC); 476 unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut);
_generated\181\Windows.Win32.PAINTSTRUCT.g.cs (1)
30 internal winmdroot.Graphics.Gdi.HDC hdc;
_generated\194\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (62)
49 internal static extern winmdroot.Foundation.BOOL BitBlt(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, int cx, int cy, [Optional] winmdroot.Graphics.Gdi.HDC hdcSrc, int x1, int y1, winmdroot.Graphics.Gdi.ROP_CODE rop); 73 internal static extern winmdroot.Graphics.Gdi.HENHMETAFILE CloseEnhMetaFile(winmdroot.Graphics.Gdi.HDC hdc); 139 internal static extern winmdroot.Graphics.Gdi.HBITMAP CreateCompatibleBitmap(winmdroot.Graphics.Gdi.HDC hdc, int cx, int cy); 152 internal static extern winmdroot.Graphics.Gdi.HDC CreateCompatibleDC([Optional] winmdroot.Graphics.Gdi.HDC hdc); 157 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateDCW([Optional] string pwszDriver, [Optional] string pwszDevice, [Optional] string pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW? pdm) 166 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateDCW(pwszDriverLocal, pwszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 193 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateDCW([Optional] winmdroot.Foundation.PCWSTR pwszDriver, [Optional] winmdroot.Foundation.PCWSTR pwszDevice, [Optional] winmdroot.Foundation.PCWSTR pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pdm); 195 /// <inheritdoc cref="CreateDIBSection(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.BITMAPINFO*, winmdroot.Graphics.Gdi.DIB_USAGE, void**, winmdroot.Foundation.HANDLE, uint)"/> 198 internal static unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, out void* ppvBits, [Optional] winmdroot.Foundation.HANDLE hSection, uint offset) 231 internal static extern unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, void** ppvBits, [Optional] winmdroot.Foundation.HANDLE hSection, uint offset); 233 /// <inheritdoc cref="CreateEnhMetaFile(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.RECT*, winmdroot.Foundation.PCWSTR)"/> 236 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] string lpFilename, [Optional] winmdroot.Foundation.RECT? lprc, [Optional] string lpDesc) 243 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateEnhMetaFile(hdc, lpFilenameLocal, lprc.HasValue ? &lprcLocal : null, lpDescLocal); 263 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.PCWSTR lpFilename, [Optional] winmdroot.Foundation.RECT* lprc, [Optional] winmdroot.Foundation.PCWSTR lpDesc); 293 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateICW([Optional] string pszDriver, [Optional] string pszDevice, [Optional] string pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW? pdm) 302 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateICW(pszDriverLocal, pszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 324 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateICW([Optional] winmdroot.Foundation.PCWSTR pszDriver, [Optional] winmdroot.Foundation.PCWSTR pszDevice, [Optional] winmdroot.Foundation.PCWSTR pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pdm); 381 internal static extern winmdroot.Foundation.BOOL DeleteDC(winmdroot.Graphics.Gdi.HDC hdc); 383 /// <inheritdoc cref="EnumEnhMetaFile(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HENHMETAFILE, delegate *unmanaged[Stdcall]{global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int}, void*, winmdroot.Foundation.RECT*)"/> 386 internal static unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int> proc, [Optional] void* param3, [Optional] winmdroot.Foundation.RECT? lpRect) 407 internal static extern unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int> proc, [Optional] void* param3, [Optional] winmdroot.Foundation.RECT* lpRect); 419 internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn); 433 internal static int GetDeviceCaps([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.GET_DEVICE_CAPS_INDEX index) 439 static extern int LocalExternFunction([Optional] winmdroot.Graphics.Gdi.HDC hdc, int index); 567 /// <inheritdoc cref="GetViewportExtEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.SIZE*)"/> 570 internal static unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.SIZE lpsize) 590 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.SIZE* lpsize); 592 /// <inheritdoc cref="GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 595 internal static unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 615 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 617 /// <inheritdoc cref="GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 620 internal static unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 640 internal static extern unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 642 /// <inheritdoc cref="GetWorldTransform(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.XFORM*)"/> 645 internal static unsafe winmdroot.Foundation.BOOL GetWorldTransform(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Graphics.Gdi.XFORM lpxf) 663 internal static extern unsafe winmdroot.Foundation.BOOL GetWorldTransform(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.XFORM* lpxf); 681 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE IntersectClipRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 683 /// <inheritdoc cref="OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 686 internal static unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out global::System.Drawing.Point lppt) 695 /// <inheritdoc cref="OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 697 internal static unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 714 internal static extern unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 737 internal static extern uint RealizePalette(winmdroot.Graphics.Gdi.HDC hdc); 754 internal static extern winmdroot.Foundation.BOOL Rectangle(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 765 internal static extern winmdroot.Foundation.BOOL RestoreDC(winmdroot.Graphics.Gdi.HDC hdc, int nSavedDC); 778 internal static extern int SaveDC(winmdroot.Graphics.Gdi.HDC hdc); 793 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE SelectClipRgn(winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Graphics.Gdi.HRGN hrgn); 812 internal static extern winmdroot.Graphics.Gdi.HGDIOBJ SelectObject(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HGDIOBJ h); 830 internal static extern winmdroot.Graphics.Gdi.HPALETTE SelectPalette(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HPALETTE hPal, winmdroot.Foundation.BOOL bForceBkgd); 844 internal static extern winmdroot.Foundation.COLORREF SetBkColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.COLORREF color); 854 internal static int SetBkMode(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BACKGROUND_MODE mode) 860 static extern int LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, int mode); 875 internal static extern int SetMapMode(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HDC_MAP_MODE iMode); 886 internal static extern int SetROP2(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.R2_MODE rop2); 906 internal static extern uint SetTextAlign(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.TEXT_ALIGN_OPTIONS align); 917 internal static extern winmdroot.Foundation.COLORREF SetTextColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.COLORREF color);
_generated\200\Windows.Win32.PInvokeCore.USER32.dll.g.cs (13)
29 internal static unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, out winmdroot.Graphics.Gdi.PAINTSTRUCT lpPaint) 33 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.BeginPaint(hWnd, lpPaintLocal); 50 internal static extern unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.PAINTSTRUCT* lpPaint); 202 internal static extern winmdroot.Foundation.BOOL DrawIconEx(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, [Optional] winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags); 252 /// <inheritdoc cref="EnumDisplayMonitors(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, delegate *unmanaged[Stdcall]{global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL}, winmdroot.Foundation.LPARAM)"/> 255 internal static unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT? lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.LPARAM dwData) 283 internal static extern unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT* lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.LPARAM dwData); 403 internal static extern winmdroot.Graphics.Gdi.HDC GetDC([Optional] winmdroot.Foundation.HWND hWnd); 418 internal static extern winmdroot.Graphics.Gdi.HDC GetDCEx([Optional] winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Graphics.Gdi.HRGN hrgnClip, winmdroot.Graphics.Gdi.GET_DCX_FLAGS flags); 919 internal static extern int ReleaseDC([Optional] winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC); 1019 internal static extern winmdroot.Foundation.HWND WindowFromDC(winmdroot.Graphics.Gdi.HDC hDC);
_generated\252\Windows.Win32.System_Ole_IPicture_Extensions.g.cs (10)
73 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.Render(winmdroot.Graphics.Gdi.HDC, int, int, int, int, int, int, int, int, winmdroot.Foundation.RECT*)"/> 74 internal static unsafe winmdroot.Foundation.HRESULT Render(this winmdroot.System.Ole.IPicture.Interface @this, winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, in winmdroot.Foundation.RECT pRcWBounds) 83 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.get_CurDC(winmdroot.Graphics.Gdi.HDC*)"/> 84 internal static unsafe winmdroot.Foundation.HRESULT get_CurDC(this winmdroot.System.Ole.IPicture.Interface @this, out winmdroot.Graphics.Gdi.HDC phDC) 86 fixed (winmdroot.Graphics.Gdi.HDC* phDCLocal = &phDC) 93 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.SelectPicture(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC*, winmdroot.System.Ole.OLE_HANDLE*)"/> 94 internal static unsafe winmdroot.Foundation.HRESULT SelectPicture(this winmdroot.System.Ole.IPicture.Interface @this, winmdroot.Graphics.Gdi.HDC hDCIn, out winmdroot.Graphics.Gdi.HDC phDCOut, out winmdroot.System.Ole.OLE_HANDLE phBmpOut) 98 fixed (winmdroot.Graphics.Gdi.HDC* phDCOutLocal = &phDCOut)
System\ArgumentValidation.cs (1)
53internal static void ThrowIfNull(HDC argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
Windows\Win32\Foundation\WPARAM.cs (3)
16public static explicit operator HDC(WPARAM value) => (HDC)(nint)value.Value; 17public static explicit operator WPARAM(HDC value) => new((nuint)value.Value);
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (2)
25public HDC HDC { get; } 35public static implicit operator HDC(in BeginPaintScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (3)
31/// Creates a bitmap compatible with the given <see cref="HDC"/> via 32/// <see cref="PInvokeCore.CreateCompatibleBitmap(HDC, int, int)"/> 34public CreateBitmapScope(HDC hdc, int cx, int cy) => HBITMAP = PInvokeCore.CreateCompatibleBitmap(hdc, cx, cy);
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (4)
22public HDC HDC { get; } 25/// Creates a compatible HDC for <paramref name="hdc"/> using <see cref="PInvokeCore.CreateCompatibleDC(HDC)"/>. 32public CreateDcScope(HDC hdc) 52public static implicit operator HDC(in CreateDcScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\GetDcScope.cs (5)
7/// Helper to scope lifetime of an <see cref="Gdi.HDC"/> retrieved via <see cref="PInvokeCore.GetDC(HWND)"/> and 8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 19public HDC HDC { get; } 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 60public static implicit operator HDC(in GetDcScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\HDC.cs (4)
9internal readonly partial struct HDC : IHandle<HDC> 11HDC IHandle<HDC>.Handle => this; 12object? IHandle<HDC>.Wrapper => null;
Windows\Win32\Graphics\Gdi\HdcHandle.cs (4)
7/// Used when you must keep a handle to an <see cref="HDC"/> in a field. Avoid keeping HDC handles in fields 10internal sealed class HdcHandle : IDisposable, IHandle<HDC> 24public HDC Handle { get; private set; } 28public static implicit operator HDC(in HdcHandle handle) => handle.Handle;
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (1)
8public static implicit operator HGDIOBJ(HDC value) => (HGDIOBJ)value.Value;
Windows\Win32\Graphics\Gdi\IHDCContext.cs (1)
8HDC GetHdc();
Windows\Win32\Graphics\Gdi\RegionScope.cs (2)
38/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC, HRGN)"/> for the given device context. 41public RegionScope(HDC hdc)
Windows\Win32\Graphics\Gdi\SaveDcScope.cs (3)
25public HDC HDC { get; } 29/// Saves the device context state using <see cref="PInvokeCore.SaveDC(HDC)"/>. 32public SaveDcScope(HDC hdc)
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (5)
7/// Helper to scope selecting a GDI object into an <see cref="HDC"/>. Restores the original 8/// object into the <see cref="HDC"/> when disposed. 22private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SelectObject(HDC, HGDIOBJ)"/>. 29public SelectObjectScope(HDC hdc, HGDIOBJ @object)
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (2)
21public HDC HDC { get; } 24public SelectPaletteScope(HDC hdc, HPALETTE hpalette, bool forceBackground, bool realizePalette)
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
19private readonly HDC _hdc; 23/// <see cref="PInvokeCore.SetBkColor(HDC, COLORREF)"/>. 25public SetBackgroundColorScope(HDC hdc, COLORREF color)
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (2)
23private readonly HDC _hdc; 28public SetBkModeScope(HDC hdc, BACKGROUND_MODE bkmode)
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (3)
23private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SetMapMode(HDC, HDC_MAP_MODE)"/>. 29public SetMapModeScope(HDC hdc, HDC_MAP_MODE mapMode)
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (3)
23private readonly HDC _hdc; 26/// Selects <paramref name="rop2"/> into the given <paramref name="hdc"/> using <see cref="PInvokeCore.SetROP2(HDC, R2_MODE)"/>. 28public SetRop2Scope(HDC hdc, R2_MODE rop2)
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (3)
23private readonly HDC _hdc; 27/// using <see cref="PInvokeCore.SetTextAlign(HDC, TEXT_ALIGN_OPTIONS)"/>. 29public SetTextAlignmentScope(HDC hdc, TEXT_ALIGN_OPTIONS ta)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
23private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SetTextColor(HDC, COLORREF)"/>. 29public SetTextColorScope(HDC hdc, COLORREF color)
Windows\Win32\PInvokeCore.BitBlt.cs (8)
8/// <inheritdoc cref="BitBlt(HDC, int, int, int, int, HDC, int, int, ROP_CODE)"/> 15HDC hdcSrc, 18ROP_CODE rop) where T : IHandle<HDC> 34/// <inheritdoc cref="BitBlt(HDC, int, int, int, int, HDC, int, int, ROP_CODE)"/> 36HDC hdc, 44ROP_CODE rop) where T : IHandle<HDC>
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
8public static BOOL DrawIcon<T>(HDC hDC, int x, int y, T hIcon)
Windows\Win32\PInvokeCore.DrawIconEx.cs (2)
8/// <inheritdoc cref="DrawIconEx(HDC, int, int, HICON, int, int, uint, HBRUSH, DI_FLAGS)"/> 10HDC hDC,
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (5)
8public delegate bool EnumDisplayMonitorsCallback(HMONITOR monitor, HDC hdc); 11private delegate BOOL EnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor, LPARAM lParam); 13private static readonly delegate* unmanaged[Stdcall]<HMONITOR, HDC, RECT*, LPARAM, BOOL> s_enumDisplayMonitorsNativeCallbackFunctionPointer = 14(delegate* unmanaged[Stdcall]<HMONITOR, HDC, RECT*, LPARAM, BOOL>)Marshal.GetFunctionPointerForDelegate(s_enumDisplayMonitorsNativeCallback); 37private static BOOL HandleEnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor, LPARAM lParam)
Windows\Win32\UI\Controls\Dialogs\PRINTDLGEXW.cs (1)
117public HDC hDC;