3 instantiations of COLORREF
Microsoft.Private.Windows.Core (3)
Windows.Win32.COLORREF.g.cs (1)
38
public static explicit operator COLORREF(uint value) => new
COLORREF
(value);
Windows\Win32\Foundation\COLORREF.cs (2)
22
public static implicit operator COLORREF(Color color) =>
new
((uint)ColorTranslator.ToWin32(color));
24
public static implicit operator COLORREF(int color) =>
new
((uint)color);
29 references to COLORREF
Microsoft.Private.Windows.Core (29)
System\Private\Windows\Ole\DragDropHelper.cs (1)
286
crColorKey = (
COLORREF
)PInvokeCore.GetSysColor(SYS_COLOR_INDEX.COLOR_WINDOW)
Windows.Win32.COLORREF.g.cs (9)
30
: IEquatable<
COLORREF
>
36
public static implicit operator uint(
COLORREF
value) => value.Value;
38
public static explicit operator
COLORREF
(uint value) => new COLORREF(value);
40
public static bool operator ==(
COLORREF
left,
COLORREF
right) => left.Value == right.Value;
42
public static bool operator !=(
COLORREF
left,
COLORREF
right) => !(left == right);
44
public bool Equals(
COLORREF
other) => this.Value == other.Value;
46
public override bool Equals(object obj) => obj is
COLORREF
other && this.Equals(other);
Windows.Win32.PInvokeCore.GDI32.dll.g.cs (6)
337
internal static extern winmdroot.Graphics.Gdi.HPEN CreatePen(winmdroot.Graphics.Gdi.PEN_STYLE iStyle, int cWidth, winmdroot.Foundation.
COLORREF
color);
366
internal static extern winmdroot.Graphics.Gdi.HBRUSH CreateSolidBrush(winmdroot.Foundation.
COLORREF
color);
792
internal static extern winmdroot.Foundation.
COLORREF
SetBkColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.
COLORREF
color);
865
internal static extern winmdroot.Foundation.
COLORREF
SetTextColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.
COLORREF
color);
Windows.Win32.SHDRAGIMAGE.g.cs (1)
53
internal winmdroot.Foundation.
COLORREF
crColorKey;
Windows\Win32\Foundation\COLORREF.cs (4)
12
/// <see cref="
COLORREF
"/> is a DWORD- passing constants in native code would just pass the value as is.
22
public static implicit operator
COLORREF
(Color color) => new((uint)ColorTranslator.ToWin32(color));
23
public static implicit operator Color(
COLORREF
color) => ColorTranslator.FromWin32((int)color.Value);
24
public static implicit operator
COLORREF
(int color) => new((uint)color);
Windows\Win32\Graphics\Gdi\CreateBrushScope.cs (1)
27
/// Creates a solid brush based on the <paramref name="color"/> using <see cref="PInvokeCore.CreateSolidBrush(
COLORREF
)"/>.
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (1)
27
/// <see cref="PInvokeCore.CreatePen(PEN_STYLE, int,
COLORREF
)" />.
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
18
private readonly
COLORREF
_previousColor;
23
/// <see cref="PInvokeCore.SetBkColor(HDC,
COLORREF
)"/>.
25
public SetBackgroundColorScope(HDC hdc,
COLORREF
color)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
22
private readonly
COLORREF
_previousColor;
27
/// <see cref="PInvokeCore.SetTextColor(HDC,
COLORREF
)"/>.
29
public SetTextColorScope(HDC hdc,
COLORREF
color)