50 references to GDI_REGION_TYPE
System.Drawing.Common (3)
System\Drawing\Graphics.cs (3)
3327GDI_REGION_TYPE type; 3333if (type == GDI_REGION_TYPE.RGN_ERROR) 3340if (type == GDI_REGION_TYPE.RGN_ERROR)
System.Private.Windows.Core (3)
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (3)
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); 665 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE IntersectClipRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 757 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE SelectClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn);
System.Windows.Forms (15)
System\Windows\Forms\Control.cs (3)
8815GDI_REGION_TYPE selectResult = PInvokeCore.SelectClipRgn(hDC, hClippingRegion); 8817selectResult is GDI_REGION_TYPE.SIMPLEREGION or GDI_REGION_TYPE.NULLREGION,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
3779bool getRegionSucceeded = PInvoke.GetUpdateRgn(HWND, windowRegion, bErase: true) != GDI_REGION_TYPE.RGN_ERROR;
System\Windows\Forms\MDI\MDIClient.cs (1)
298if (PInvokeCore.CombineRgn(rgn1, rgn1, rgn2, RGN_COMBINE_MODE.RGN_DIFF) == GDI_REGION_TYPE.RGN_ERROR)
System\Windows\Forms\Rendering\DCMapping.cs (10)
65GDI_REGION_TYPE originalRegionType; 72originalRegionType != GDI_REGION_TYPE.RGN_ERROR, 75if (originalRegionType == GDI_REGION_TYPE.SIMPLEREGION) 79GDI_REGION_TYPE combineResult = PInvokeCore.CombineRgn( 86combineResult is GDI_REGION_TYPE.SIMPLEREGION or GDI_REGION_TYPE.NULLREGION, 93originalRegionType = GDI_REGION_TYPE.SIMPLEREGION; 97GDI_REGION_TYPE selectResult = PInvokeCore.SelectClipRgn(hdc, clippingRegion); 99selectResult is GDI_REGION_TYPE.SIMPLEREGION or GDI_REGION_TYPE.NULLREGION,
System.Windows.Forms.Primitives (10)
Windows.Win32.PInvoke.GDI32.dll.g.cs (7)
214 internal static unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetClipBox(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.RECT lprect) 218 winmdroot.Graphics.Gdi.GDI_REGION_TYPE __result = PInvoke.GetClipBox(hdc, lprectLocal); 235 internal static extern unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetClipBox(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT* lprect); 316 internal static unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetRgnBox(winmdroot.Graphics.Gdi.HRGN hrgn, out winmdroot.Foundation.RECT lprc) 320 winmdroot.Graphics.Gdi.GDI_REGION_TYPE __result = PInvoke.GetRgnBox(hrgn, lprcLocal); 337 internal static extern unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetRgnBox(winmdroot.Graphics.Gdi.HRGN hrgn, winmdroot.Foundation.RECT* lprc); 495 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE IntersectClipRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom);
Windows.Win32.PInvoke.USER32.dll.g.cs (1)
1915 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetUpdateRgn(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HRGN hRgn, winmdroot.Foundation.BOOL bErase);
Windows\Win32\PInvoke.IntersectClipRect.cs (2)
9public static GDI_REGION_TYPE IntersectClipRect<T>(T hdc, int left, int top, int right, int bottom) where T : IHandle<HDC> 11GDI_REGION_TYPE result = IntersectClipRect(hdc.Handle, left, top, right, bottom);
System.Windows.Forms.Primitives.Tests (19)
System\Windows\Forms\DeviceContextHdcScopeTests.cs (15)
34GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 35Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 49GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 50Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 64GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 65Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 79GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 80Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 95GDI_REGION_TYPE originalRegionType = PInvoke.GetClipBox(hdc, &originalClipRect); 117GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 144GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 145Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 167GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect); 168Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, regionType); 190GDI_REGION_TYPE regionType = PInvoke.GetClipBox(scope, &clipRect);
System\Windows\Forms\DeviceContextScopeTests.cs (2)
25GDI_REGION_TYPE type = PInvokeCore.SelectClipRgn(dcScope, dcRegion); 26Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, type);
Windows\Win32\RegionTests.cs (2)
59GDI_REGION_TYPE type = PInvoke.GetRgnBox(retrievedRegion, &rect); 60Assert.Equal(GDI_REGION_TYPE.SIMPLEREGION, type);