|
| TColor () |
| Construct a null color.
|
|
| TColor (const TColor &src) |
| Construct a color as a copy of another color.
|
|
| TColor (COLORREF value) |
| Construct a color with an existing COLORREF value.
|
|
| TColor (int r, int g, int b) |
| Construct a color given the red, green, and blue components of color.
|
|
| TColor (int r, int g, int b, int f) |
| Construct a color given red, green, blue, and flag components of color.
|
|
| TColor (const PALETTEENTRY &pe) |
| Construct a color based on an existing PALETTEENTRY.
|
|
| TColor (const RGBQUAD &q) |
| Construct a color based on an existing RGBQUAD.
|
|
| TColor (const RGBTRIPLE &t) |
| Construct a color based on an existing RGBTRIPLE.
|
|
| operator COLORREF () const |
| Convert the stored color into a COLORREF.
|
|
COLORREF | GetValue () const |
| Get a 32bit COLORREF type from this color object.
|
|
void | SetValue (const COLORREF &value) |
| Change the color after it has been constructed.
|
|
bool | operator== (const TColor &other) const |
| Return true if two colors are equal.
|
|
bool | operator!= (const TColor &other) const |
| Return true if two colors are not equal.
|
|
bool | operator== (COLORREF cr) const |
| Return true if this color matches a COLORREF.
|
|
bool | operator!= (COLORREF cr) const |
| Return true if this color does not match a COLORREF.
|
|
TColor & | operator= (const TColor &src) |
| Set the value of color after it has been constructed.
|
|
int | Index () const |
| Return the index of the palette entry.
|
|
TColor | Rgb () const |
| Return the RGB color value.
|
|
TColor | PalIndex () const |
| Return the palette index.
|
|
TColor | PalRelative () const |
| Return the palette relative entry.
|
|
uint8 | Red () const |
| Return the color's red component.
|
|
uint8 | Green () const |
| Return the color's green component.
|
|
uint8 | Blue () const |
| Return the color's blue component.
|
|
uint8 | Flags () const |
| Return the flags entry.
|
|
bool | IsSysColor () const |
| Return true if the color is a system color.
|
|
bool | IsSpecialColor () const |
| Return true if the color is a special color (currently None or Transparent)
|
|
void | Lighten (uint8 val) |
|
void | Darken (uint8 val) |
|
void | Merge (const TColor &other) |
|
HLSCOLOR | Rgb2Hls () const |
|
void | Hls2Rgb (HLSCOLOR hls) |
|
void | HlsTransform (int percent_L, int percent_S) |
|
|
static const TColor | Black |
| Static TColor object with fixed Value set by RGB(0, 0, 0).
|
|
static const TColor | LtGray |
| Static TColor object with fixed Value set by RGB(192, 192, 192).
|
|
static const TColor | Gray |
| Static TColor object with fixed Value set by RGB(128, 128, 128).
|
|
static const TColor | LtRed |
| Static TColor object with fixed Value set by RGB(255, 0, 0).
|
|
static const TColor | LtGreen |
| Static TColor object with fixed Value set by RGB(0, 255, 0).
|
|
static const TColor | LtYellow |
| Static TColor object with fixed Value set by RGB(255, 255, 0).
|
|
static const TColor | LtBlue |
| Static TColor object with fixed Value set by RGB(0, 0, 255).
|
|
static const TColor | LtMagenta |
| Static TColor object with fixed Value set by RGB(255, 0, 255).
|
|
static const TColor | LtCyan |
| Static TColor object with fixed Value set by RGB(0, 255, 255).
|
|
static const TColor | White |
| Static TColor object with fixed Value set by RGB(255, 255, 255).
|
|
static const TColor | None |
| not-a-color
|
|
static const TColor | Transparent |
| a non-painting color
|
|
static const TColor | SysScrollbar |
| The symbolic system color value for what is usually the gray area of scrollbars.
|
|
static const TColor | SysDesktop |
| The symbolic system color value for the desktop.
|
|
static const TColor | SysActiveCaption |
| The symbolic system color value for the caption of the active window.
|
|
static const TColor | SysInactiveCaption |
| The symbolic system color value for the caption background of every inactive window.
|
|
static const TColor | SysMenu |
| The symbolic system color value for the background of menus.
|
|
static const TColor | SysWindow |
| The symbolic system color value for the background of each window.
|
|
static const TColor | SysWindowFrame |
| The symbolic system color value for the frame around each window.
|
|
static const TColor | SysMenuText |
| The symbolic system color value for the text shown on menus.
|
|
static const TColor | SysWindowText |
| The symbolic system color value for text in every window.
|
|
static const TColor | SysCaptionText |
| The symbolic system color value for text in captions and size boxes, and for the arrow boxes on scroll bars.
|
|
static const TColor | SysActiveBorder |
| The symbolic system color value for the borders of the active window.
|
|
static const TColor | SysInactiveBorder |
| The symbolic system color value for the borders of every inactive window.
|
|
static const TColor | SysAppWorkspace |
| The symbolic system color value for the background of multiple document interface (MDI) applications.
|
|
static const TColor | SysHighlight |
| The symbolic system color value for items selected in a control.
|
|
static const TColor | SysHighlightText |
| The symbolic system color value for text selected in a control.
|
|
static const TColor | Sys3dFace |
| The symbolic system color value for the face color of 3-dimensional display elements.
|
|
static const TColor | Sys3dShadow |
| The symbolic system color value for the shadow regions of 3-dimensional display elements (for edges facing away from the light source).
|
|
static const TColor | SysGrayText |
| The symbolic system color value for grayed (disabled) text.
|
|
static const TColor | SysBtnText |
| The symbolic system color value for the text on buttons.
|
|
static const TColor | SysInactiveCaptionText |
| The symbolic system color value for the caption text of every inactive window.
|
|
static const TColor | Sys3dHilight |
| The symbolic system color value for highlighted 3-dimensional display elements (for edges facing the light source).
|
|
static const TColor | Sys3dDkShadow |
| The symbolic system color value for dark shadow regions of 3-dimensional display elements.
|
|
static const TColor | Sys3dLight |
| The symbolic system color value for the light color for 3-dimensional display elements (for edges facing the light source).
|
|
static const TColor | SysInfoText |
| The symbolic system color value for text shown on tooltip controls.
|
|
static const TColor | SysInfoBk |
| The symbolic system color value for the background of tooltip controls.
|
|
Class wrapper for management of color values.
TColor is a support class used in conjunction with the classes TPalette, TPaletteEntry, TRgbQuad, and TRgbTriple to simplify all color operations.
Internally, all colors are stored as a COLORREF.
TColor has ten static data members representing the standard RGB COLORREF values, from Black to White. Constructors are provided to create TColor objects from COLORREF and RGB values, palette indexes, palette entries, and RGBQUAD and RGBTRIPLE values.
See the entries for NBits and NColors for a description of TColor-related functions.
Definition at line 244 of file color.h.
bool owl::TColor::operator== |
( |
const TColor & | other | ) |
const |
|
inline |
Return true if two colors are equal.
This function compares between two binary representation of colors, it does not compare colors logically.
For example, if palette entry 4 is solid red (rgb components (255, 0, 0)), the following will return false:
else
TColor()
Construct a null color.
To actually compare the RGB values of two TColor objects, use the operator == (COLORREF). For example,
}
Class wrapper for management of color values.
Definition at line 629 of file color.h.