17 references to COLORREF
System.Private.Windows.Core (12)
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)
System.Windows.Forms.Primitives (5)
System\Windows\Forms\DeviceContextExtensions.cs (1)
101
/// Calls <see cref="PInvoke.GetNearestColor(HDC,
COLORREF
)"/> to get the nearest color for the given
Windows\Win32\PInvoke.ImageList.cs (3)
37
/// <inheritdoc cref="ImageList_DrawEx(HIMAGELIST, int, HDC, int, int, int, int,
COLORREF
,
COLORREF
, IMAGE_LIST_DRAW_STYLE)"/>
112
/// <inheritdoc cref="ImageList_SetBkColor(HIMAGELIST,
COLORREF
)"/>
Windows\Win32\PInvoke.SetLayeredWindowAttributes.cs (1)
8
/// <inheritdoc cref="SetLayeredWindowAttributes(HWND,
COLORREF
, byte, LAYERED_WINDOW_ATTRIBUTES_FLAGS)"/>