Color.
More...
#include <base/ui/Color.h>
|
enum | NamedColor {
ALMOND_BLANCHED,
AQUA,
AQUAMARINE,
AQUAMARINE_LIGHT,
AQUAMARINE_MED,
BEIGE
} |
|
Color.
RGB color.
- Version
- 1.0
◆ NamedColor
◆ Color() [1/6]
Initializes color with unspecified value.
◆ Color() [2/6]
Initializes color from name of color (e.g. YELLOW).
◆ Color() [3/6]
Color::Color |
( |
uint32 |
_value | ) |
|
|
inlinenoexcept |
Initializes color from rgb value (e.g. 0x123456).
◆ Color() [4/6]
Color::Color |
( |
uint8 |
gray | ) |
|
|
inlinenoexcept |
Initializes color as gray.
◆ Color() [5/6]
Color::Color |
( |
uint8 |
red, |
|
|
uint8 |
green, |
|
|
uint8 |
blue |
|
) |
| |
|
inlinenoexcept |
- Parameters
-
red | The red component. |
green | The green component. |
blue | The blue component. |
◆ Color() [6/6]
Color::Color |
( |
const Color & |
copy | ) |
|
|
inlinenoexcept |
Initializes color form other color.
◆ getBlue()
uint8 Color::getBlue |
( |
| ) |
const |
|
inlinenoexcept |
Returns the blue component.
◆ getGray()
unsigned int Color::getGray |
( |
| ) |
const |
|
inlinenoexcept |
Returns the gray value of the color (i.e. (red + green + blue + 1)/3).
◆ getGreen()
uint8 Color::getGreen |
( |
| ) |
const |
|
inlinenoexcept |
Returns the green component.
◆ getRed()
uint8 Color::getRed |
( |
| ) |
const |
|
inlinenoexcept |
Returns the red component.
◆ getValue()
uint32 Color::getValue |
( |
| ) |
const |
|
inlinenoexcept |
Returns the color as a value.
◆ operator uint32()
Color::operator uint32 |
( |
| ) |
const |
|
inlinenoexcept |
Returns the color as a value.
◆ operator!=()
bool Color::operator!= |
( |
const Color |
color | ) |
const |
|
inlinenoexcept |
Returns true if the colors are unequal.
◆ operator=()
Assignment of color by color.
◆ operator==()
bool Color::operator== |
( |
const Color |
color | ) |
const |
|
inlinenoexcept |
Returns true if the colors are equal.
◆ setBlue()
void Color::setBlue |
( |
uint8 |
_value | ) |
|
|
inlinenoexcept |
◆ setGray()
void Color::setGray |
( |
uint8 |
_value | ) |
|
|
inlinenoexcept |
◆ setGreen()
void Color::setGreen |
( |
uint8 |
_value | ) |
|
|
inlinenoexcept |
Sets the green component.
◆ setRed()
void Color::setRed |
( |
uint8 |
_value | ) |
|
|
inlinenoexcept |