3 instantiations of HPEN
System.Private.Windows.Core (3)
Windows.Win32.HPEN.g.cs (3)
41
public static explicit operator HPEN(void* value) => new
HPEN
(value);
57
public static explicit operator HPEN(IntPtr value) => new
HPEN
((void*)value.ToPointer());
59
public static explicit operator HPEN(UIntPtr value) => new
HPEN
((void*)value.ToPointer());
32 references to HPEN
System.Private.Windows.Core (18)
Windows.Win32.HPEN.g.cs (14)
25
: IEquatable<
HPEN
>
35
internal static
HPEN
Null => default;
39
public static implicit operator void*(
HPEN
value) => value.Value;
41
public static explicit operator
HPEN
(void* value) => new HPEN(value);
43
public static bool operator ==(
HPEN
left,
HPEN
right) => left.Value == right.Value;
45
public static bool operator !=(
HPEN
left,
HPEN
right) => !(left == right);
47
public bool Equals(
HPEN
other) => this.Value == other.Value;
49
public override bool Equals(object obj) => obj is
HPEN
other && this.Equals(other);
55
public static implicit operator IntPtr(
HPEN
value) => new IntPtr(value.Value);
57
public static explicit operator
HPEN
(IntPtr value) => new HPEN((void*)value.ToPointer());
59
public static explicit operator
HPEN
(UIntPtr value) => new HPEN((void*)value.ToPointer());
61
public static implicit operator HGDIOBJ(
HPEN
value) => new HGDIOBJ(value.Value);
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (1)
353
internal static extern winmdroot.Graphics.Gdi.
HPEN
CreatePen(winmdroot.Graphics.Gdi.PEN_STYLE iStyle, int cWidth, winmdroot.Foundation.COLORREF color);
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (3)
9
/// Helper to scope the lifetime of a <see cref="Gdi.
HPEN
"/>.
23
public
HPEN
HPEN { get; }
32
public static implicit operator
HPEN
(in CreatePenScope scope) => scope.HPEN;
System.Windows.Forms (1)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
97
private static void DrawAndFillEllipse(HDC hdc,
HPEN
borderPen, HBRUSH fieldBrush, Rectangle bounds)
System.Windows.Forms.Design (2)
System\Windows\Forms\Design\DesignerUtils.cs (2)
31
private static
HPEN
s_grabHandlePenPrimary =
33
private static
HPEN
s_grabHandlePen =
System.Windows.Forms.Primitives (11)
System\Windows\Forms\DeviceContextExtensions.cs (11)
13
internal static void DrawRectangle(this DeviceContextHdcScope hdc, Rectangle rectangle,
HPEN
hpen) =>
22
HPEN
hpen) =>
31
HPEN
hpen)
53
internal static void DrawLine(this DeviceContextHdcScope hdc,
HPEN
hpen, Point p1, Point p2) =>
56
internal static void DrawLine(this HDC hdc,
HPEN
hpen, Point p1, Point p2) =>
59
internal static void DrawLine(this DeviceContextHdcScope hdc,
HPEN
hpen, int x1, int y1, int x2, int y2) =>
62
internal static void DrawLine(this HDC hdc,
HPEN
hpen, int x1, int y1, int x2, int y2) =>
71
internal static void DrawLines(this DeviceContextHdcScope hdc,
HPEN
hpen, ReadOnlySpan<int> lines) =>
80
internal static unsafe void DrawLines(this HDC hdc,
HPEN
hpen, ReadOnlySpan<int> lines)
129
HPEN
pen,
136
HPEN
pen,