#include <YColor.h>
Helper class to define an RGB color.
Definition at line 34 of file YColor.h.
YColor::YColor |
( |
uchar |
red, |
|
|
uchar |
green, |
|
|
uchar |
blue |
|
) |
| |
|
inline |
Constructor.
Definition at line 40 of file YColor.h.
Default constructor: Create "undefined" color.
Definition at line 50 of file YColor.h.
uchar YColor::blue |
( |
| ) |
const |
|
inline |
Return the blue component (0: none, 255: bright blue).
Definition at line 68 of file YColor.h.
uchar YColor::green |
( |
| ) |
const |
|
inline |
Return the green component (0: none, 255: bright green).
Definition at line 63 of file YColor.h.
bool YColor::isDefined |
( |
| ) |
const |
|
inline |
Return 'true' if this color is defined.
Definition at line 78 of file YColor.h.
bool YColor::isUndefined |
( |
| ) |
const |
|
inline |
Return 'true' if this color is undefined.
Definition at line 73 of file YColor.h.
uchar YColor::red |
( |
| ) |
const |
|
inline |
Return the red component (0: none, 255: bright red).
Definition at line 58 of file YColor.h.
The documentation for this class was generated from the following file:
- /builddir/build/BUILD/libyui-4d4bf96e92e551a437257646f8987b0fe54c3d9f/src/YColor.h