33#if !defined(COLOR_3DDKSHADOW)
34# define COLOR_3DDKSHADOW 21
36#if !defined(COLOR_3DLIGHT)
37# define COLOR_3DLIGHT 22
39#if !defined(COLOR_INFOTEXT)
40# define COLOR_INFOTEXT 23
42#if !defined(COLOR_INFOBK)
43# define COLOR_INFOBK 24
67#define Symbolic 0x80000000UL
229#if defined(UNIX) && !defined(WINELIB)
295 (
static_cast<int>(
Red()) +
static_cast<int>(
other.Red())) / 2,
296 (
static_cast<int>(
Green()) +
static_cast<int>(
other.Green())) / 2,
297 (
static_cast<int>(
Blue()) +
static_cast<int>(
other.Blue())) / 2);
350_ToRgb(
float rm1,
float rm2,
float rh)
359 else if (
rh < 180.0f)
361 else if (
rh < 240.0f)
Class wrapper for management of color values.
static const TColor SysGrayText
The symbolic system color value for grayed (disabled) text.
COLORREF GetValue() const
Get a 32bit COLORREF type from this color object.
static const TColor LtBlue
Static TColor object with fixed Value set by RGB(0, 0, 255).
void Hls2Rgb(HLSCOLOR hls)
static const TColor SysInfoBk
The symbolic system color value for the background of tooltip controls.
static const TColor SysMenuText
The symbolic system color value for the text shown on menus.
static const TColor SysHighlightText
The symbolic system color value for text selected in a control.
static const TColor LtMagenta
Static TColor object with fixed Value set by RGB(255, 0, 255).
static const TColor SysBtnText
The symbolic system color value for the text on buttons.
static const TColor Transparent
a non-painting color
static const TColor SysHighlight
The symbolic system color value for items selected in a control.
static const TColor SysActiveCaption
The symbolic system color value for the caption of the active window.
static const TColor Sys3dHilight
The symbolic system color value for highlighted 3-dimensional display elements (for edges facing the ...
static const TColor SysCaptionText
The symbolic system color value for text in captions and size boxes, and for the arrow boxes on scrol...
static const TColor None
not-a-color
static const TColor SysActiveBorder
The symbolic system color value for the borders of the active window.
static const TColor LtCyan
Static TColor object with fixed Value set by RGB(0, 255, 255).
static const TColor SysDesktop
The symbolic system color value for the desktop.
static const TColor Sys3dDkShadow
The symbolic system color value for dark shadow regions of 3-dimensional display elements.
static const TColor SysInactiveCaption
The symbolic system color value for the caption background of every inactive window.
static const TColor SysInactiveCaptionText
The symbolic system color value for the caption text of every inactive window.
int Index() const
Return the index of the palette entry.
static const TColor SysWindowFrame
The symbolic system color value for the frame around each window.
void SetValue(const COLORREF &value)
Change the color after it has been constructed.
uint8 Blue() const
Return the color's blue component.
static const TColor SysScrollbar
The symbolic system color value for what is usually the gray area of scrollbars.
void Merge(const TColor &other)
static const TColor LtYellow
Static TColor object with fixed Value set by RGB(255, 255, 0).
static const TColor SysInfoText
The symbolic system color value for text shown on tooltip controls.
bool IsSysColor() const
Return true if the color is a system color.
static const TColor LtGray
Static TColor object with fixed Value set by RGB(192, 192, 192).
static const TColor SysWindowText
The symbolic system color value for text in every window.
static const TColor Sys3dShadow
The symbolic system color value for the shadow regions of 3-dimensional display elements (for edges f...
static const TColor SysAppWorkspace
The symbolic system color value for the background of multiple document interface (MDI) applications.
void HlsTransform(int percent_L, int percent_S)
static const TColor Sys3dFace
The symbolic system color value for the face color of 3-dimensional display elements.
static const TColor LtGreen
Static TColor object with fixed Value set by RGB(0, 255, 0).
static const TColor SysMenu
The symbolic system color value for the background of menus.
static const TColor SysInactiveBorder
The symbolic system color value for the borders of every inactive window.
static const TColor Gray
Static TColor object with fixed Value set by RGB(128, 128, 128).
static const TColor Sys3dLight
The symbolic system color value for the light color for 3-dimensional display elements (for edges fac...
uint8 Red() const
Return the color's red component.
static const TColor White
Static TColor object with fixed Value set by RGB(255, 255, 255).
static const TColor SysWindow
The symbolic system color value for the background of each window.
static const TColor LtRed
Static TColor object with fixed Value set by RGB(255, 0, 0).
uint8 Green() const
Return the color's green component.
static const TColor Black
Static TColor object with fixed Value set by RGB(0, 0, 0).
Definition of windowing system color classes.
Object Windows Library (OWLNext Core)
COLORREF MkRGB(uint r, uint g, uint b)
long NColors(uint16 bitCount)
Functions to convert number of bits to number of palette colors and back, and build an RGB COLORREF.
uint16 NBits(long colors)
Return the number of bits required to represent a given number of colors.
General definitions used by all ObjectWindows programs.
Definition of TSystem, a system information provider class.