3 instantiations of HRGN
Microsoft.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());
31 references to HRGN
Microsoft.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)
100
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);
353
internal static extern winmdroot.Graphics.Gdi.
HRGN
CreateRectRgn(int x1, int y1, int x2, int y2);
413
internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.
HRGN
hrgn);
524
internal static extern unsafe uint GetRegionData(winmdroot.Graphics.Gdi.
HRGN
hrgn, uint nCount, [Optional] winmdroot.Graphics.Gdi.RGNDATA* lpRgnData);
741
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)
403
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)"/>.
40
public GetDcScope(HWND hwnd,
HRGN
hrgnClip, GET_DCX_FLAGS flags)
Windows\Win32\Graphics\Gdi\RegionScope.cs (6)
23
public
HRGN
Region { get; private set; }
38
/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC,
HRGN
)"/> for the given device context.
43
HRGN
region = PInvokeCore.CreateRectRgn(0, 0, 0, 0);
60
/// Creates a region scope with the given <see cref="
HRGN
"/>.
62
public RegionScope(
HRGN
region) => Region = region;
73
public static implicit operator
HRGN
(RegionScope regionScope) => regionScope.Region;