3 instantiations of HRGN
System.Private.Windows.Core (3)
Windows.Win32.HRGN.g.cs (3)
41 public static explicit operator HRGN(void* value) => new HRGN(value); 57 public static explicit operator HRGN(IntPtr value) => new HRGN((void*)value.ToPointer()); 59 public static explicit operator HRGN(UIntPtr value) => new HRGN((void*)value.ToPointer());
101 references to HRGN
System.Drawing.Common (3)
System\Drawing\Region.cs (3)
61Gdip.CheckStatus(PInvokeGdiPlus.GdipCreateRegionHrgn((HRGN)hrgn, &region)); 87PInvokeCore.DeleteObject((HRGN)regionHandle); 228HRGN hrgn;
System.Private.Windows.Core (31)
Windows.Win32.HRGN.g.cs (14)
25 : IEquatable<HRGN> 35 internal static HRGN Null => default; 39 public static implicit operator void*(HRGN value) => value.Value; 41 public static explicit operator HRGN(void* value) => new HRGN(value); 43 public static bool operator ==(HRGN left, HRGN right) => left.Value == right.Value; 45 public static bool operator !=(HRGN left, HRGN right) => !(left == right); 47 public bool Equals(HRGN other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HRGN other && this.Equals(other); 55 public static implicit operator IntPtr(HRGN value) => new IntPtr(value.Value); 57 public static explicit operator HRGN(IntPtr value) => new HRGN((void*)value.ToPointer()); 59 public static explicit operator HRGN(UIntPtr value) => new HRGN((void*)value.ToPointer()); 61 public static implicit operator HGDIOBJ(HRGN value) => new HGDIOBJ(value.Value);
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (7)
108 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE CombineRgn(winmdroot.Graphics.Gdi.HRGN hrgnDst, winmdroot.Graphics.Gdi.HRGN hrgnSrc1, winmdroot.Graphics.Gdi.HRGN hrgnSrc2, winmdroot.Graphics.Gdi.RGN_COMBINE_MODE iMode); 369 internal static extern winmdroot.Graphics.Gdi.HRGN CreateRectRgn(int x1, int y1, int x2, int y2); 429 internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn); 540 internal static extern unsafe uint GetRegionData(winmdroot.Graphics.Gdi.HRGN hrgn, uint nCount, [Optional] winmdroot.Graphics.Gdi.RGNDATA* lpRgnData); 757 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE SelectClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn);
Windows.Win32.PInvokeCore.USER32.dll.g.cs (1)
451 internal static extern winmdroot.Graphics.Gdi.HDC GetDCEx(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hrgnClip, winmdroot.Graphics.Gdi.GET_DCX_FLAGS flags);
Windows\Win32\Graphics\Gdi\GetDcScope.cs (3)
8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 40public GetDcScope(HWND hwnd, HRGN hrgnClip, GET_DCX_FLAGS flags)
Windows\Win32\Graphics\Gdi\RegionScope.cs (6)
23public HRGN Region { get; private set; } 38/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC, HRGN)"/> for the given device context. 43HRGN region = PInvokeCore.CreateRectRgn(0, 0, 0, 0); 60/// Creates a region scope with the given <see cref="HRGN"/>. 62public RegionScope(HRGN region) => Region = region; 73public static implicit operator HRGN(RegionScope regionScope) => regionScope.Region;
System.Private.Windows.GdiPlus (10)
Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (7)
1522 /// <inheritdoc cref="GdipCreateRegionHrgn(winmdroot.Graphics.Gdi.HRGN, winmdroot.Graphics.GdiPlus.GpRegion**)"/> 1523 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateRegionHrgn(winmdroot.Graphics.Gdi.HRGN hRgn, ref winmdroot.Graphics.GdiPlus.GpRegion* region) 1533 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateRegionHrgn(winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Graphics.GdiPlus.GpRegion** region); 5045 /// <inheritdoc cref="GdipGetRegionHRgn(winmdroot.Graphics.GdiPlus.GpRegion*, winmdroot.Graphics.GdiPlus.GpGraphics*, winmdroot.Graphics.Gdi.HRGN*)"/> 5046 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipGetRegionHRgn(ref winmdroot.Graphics.GdiPlus.GpRegion region, ref winmdroot.Graphics.GdiPlus.GpGraphics graphics, ref winmdroot.Graphics.Gdi.HRGN hRgn) 5048 fixed (winmdroot.Graphics.Gdi.HRGN* hRgnLocal = &hRgn) 5062 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipGetRegionHRgn(winmdroot.Graphics.GdiPlus.GpRegion* region, winmdroot.Graphics.GdiPlus.GpGraphics* graphics, winmdroot.Graphics.Gdi.HRGN* hRgn);
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (3)
31private static HRGN InitializeFromGdiPlus(GpRegion* region, GpGraphics* graphics) 48return HRGN.Null; 51HRGN hrgn;
System.Windows.Forms (23)
System\Windows\Forms\Application.cs (1)
743HRGN.Null,
System\Windows\Forms\Control.cs (2)
5960HRGN.Null, 6008HRGN.Null,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2133HRGN.Null,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5431HRGN hrgn = default; 5434hrgn = (HRGN)region.GetHrgn(graphics); 5703using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE); 5722using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
697using GetDcScope dc = new(ParentInternal.HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1794PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
559PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1988HRGN.Null,
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
234using GetDcScope hdc = new(m.HWND, HRGN.Null, GET_DCX_FLAGS.DCX_WINDOW | (GET_DCX_FLAGS)0x00010000 /* DCX_USESTYLE */);
System\Windows\Forms\Form.cs (1)
6490PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1474using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1828HRGN.Null, 1855HRGN.Null, 2105HRGN.Null,
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
102HRGN hrgn = PInvoke.CreateRectRgn(0, 0, 0, 0);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
795HRGN.Null,
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
456HRGN hrgn; 728HRGN.Null, 762(HRGN)hRgn,
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignerFrame.cs (1)
91PInvoke.RedrawWindow(_designer, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1055PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
401PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME); 413PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System.Windows.Forms.Primitives (29)
Windows.Win32.PInvoke.GDI32.dll.g.cs (5)
90 internal static extern winmdroot.Graphics.Gdi.HRGN CreateRectRgn(int x1, int y1, int x2, int y2); 247 internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn); 314 /// <inheritdoc cref="GetRgnBox(winmdroot.Graphics.Gdi.HRGN, winmdroot.Foundation.RECT*)"/> 316 internal static unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetRgnBox(winmdroot.Graphics.Gdi.HRGN hrgn, out winmdroot.Foundation.RECT lprc) 337 internal static extern unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetRgnBox(winmdroot.Graphics.Gdi.HRGN hrgn, winmdroot.Foundation.RECT* lprc);
Windows.Win32.PInvoke.USER32.dll.g.cs (10)
1915 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetUpdateRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bErase); 2116 internal static extern winmdroot.Foundation.BOOL InvalidateRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bErase); 2589 /// <inheritdoc cref="RedrawWindow(winmdroot.Foundation.HWND, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS)"/> 2591 internal static unsafe winmdroot.Foundation.BOOL RedrawWindow(winmdroot.Foundation.HWND hWnd, winmdroot.Foundation.RECT? lprcUpdate, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS flags) 2613 internal static extern unsafe winmdroot.Foundation.BOOL RedrawWindow(winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Foundation.RECT* lprcUpdate, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Graphics.Gdi.REDRAW_WINDOW_FLAGS flags); 2791 /// <inheritdoc cref="ScrollWindowEx(winmdroot.Foundation.HWND, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, winmdroot.Foundation.RECT*, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS)"/> 2793 internal static unsafe int ScrollWindowEx(winmdroot.Foundation.HWND hWnd, int dx, int dy, winmdroot.Foundation.RECT? prcScroll, winmdroot.Foundation.RECT? prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags) 2839 internal static unsafe int ScrollWindowEx(winmdroot.Foundation.HWND hWnd, int dx, int dy, [Optional] winmdroot.Foundation.RECT* prcScroll, [Optional] winmdroot.Foundation.RECT* prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, [Optional] winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags) 2847 static extern unsafe int LocalExternFunction(winmdroot.Foundation.HWND hWnd, int dx, int dy, [Optional] winmdroot.Foundation.RECT* prcScroll, [Optional] winmdroot.Foundation.RECT* prcClip, winmdroot.Graphics.Gdi.HRGN hrgnUpdate, [Optional] winmdroot.Foundation.RECT* prcUpdate, winmdroot.UI.WindowsAndMessaging.SCROLL_WINDOW_FLAGS flags); 3549 internal static extern int SetWindowRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bRedraw);
Windows.Win32.PInvoke.UXTHEME.dll.g.cs (6)
369 /// <inheritdoc cref="GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN*)"/> 371 internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pRect, winmdroot.Graphics.Gdi.HRGN* pRegion) 411 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN* pRegion); 1080 /// <inheritdoc cref="HitTestThemeBackground(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, global::System.Drawing.Point, ushort*)"/> 1082 internal static unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, in winmdroot.Foundation.RECT pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, out ushort pwHitTestCode) 1138 internal static extern unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, ushort* pwHitTestCode);
Windows\Win32\PInvoke.InvalidateRgn.cs (2)
8/// <inheritdoc cref="InvalidateRgn(HWND, HRGN, BOOL)"/> 9public static BOOL InvalidateRgn<T>(T hWnd, HRGN hrgn, BOOL erase)
Windows\Win32\PInvoke.RedrawWindow.cs (2)
8/// <inheritdoc cref="RedrawWindow(HWND, RECT*, HRGN, REDRAW_WINDOW_FLAGS)"/> 9public static unsafe BOOL RedrawWindow<T>(T hWnd, RECT* lprcUpdate, HRGN hrgnUpdate, REDRAW_WINDOW_FLAGS flags)
Windows\Win32\PInvoke.ScrollWindowEx.cs (2)
8/// <inheritdoc cref="ScrollWindowEx(HWND, int, int, RECT*, RECT*, HRGN, RECT*, SCROLL_WINDOW_FLAGS)"/> 15HRGN hrgnUpdate,
Windows\Win32\PInvoke.SetWindowRgn.cs (2)
8/// <inheritdoc cref="SetWindowRgn(HWND, HRGN, BOOL)"/> 9public static int SetWindowRgn<T>(T hwnd, HRGN hrgn, BOOL fRedraw)
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
13private static extern int GetRandomRgn(HDC hdc, HRGN hrgn, int i);