|
FIFE
|
#include <color.h>
Collaboration diagram for FIFE::Color:Public Member Functions | |
| Color (uint8_t r=0, uint8_t g=0, uint8_t b=0, uint8_t alpha=255) | |
| Constructor. More... | |
| ~Color () | |
| Destructor. More... | |
| bool | operator== (const Color &color) const |
| Compares equality of two colors. More... | |
| bool | operator!= (const Color &color) const |
| Compares unequality of two colors. More... | |
| bool | operator< (const Color &rhs) const |
| Overload less operator. More... | |
| void | set (uint8_t r, uint8_t g, uint8_t b, uint8_t alpha) |
| Set all color channel values. More... | |
| void | setR (uint8_t r) |
| Set red channel value. More... | |
| void | setG (uint8_t g) |
| Set green channel value. More... | |
| void | setB (uint8_t b) |
| Set blue channel value. More... | |
| void | setAlpha (uint8_t alpha) |
| Set alpha channel value. More... | |
| uint8_t | getR () const |
| uint8_t | getG () const |
| uint8_t | getB () const |
| uint8_t | getAlpha () const |
Private Attributes | |
| uint8_t | m_r |
| uint8_t | m_g |
| uint8_t | m_b |
| uint8_t | m_a |
| FIFE::Color::Color | ( | uint8_t | r = 0, |
| uint8_t | g = 0, |
||
| uint8_t | b = 0, |
||
| uint8_t | alpha = 255 |
||
| ) |
| uint8_t FIFE::Color::getAlpha | ( | ) | const |
Definition at line 84 of file color.cpp.
References m_a.
Referenced by FIFE::OverlayColors::changeColor().
Here is the caller graph for this function:| uint8_t FIFE::Color::getB | ( | ) | const |
Definition at line 80 of file color.cpp.
References m_b.
Referenced by FIFE::OverlayColors::changeColor().
Here is the caller graph for this function:| uint8_t FIFE::Color::getG | ( | ) | const |
Definition at line 76 of file color.cpp.
References m_g.
Referenced by FIFE::OverlayColors::changeColor().
Here is the caller graph for this function:| uint8_t FIFE::Color::getR | ( | ) | const |
Definition at line 72 of file color.cpp.
References m_r.
Referenced by FIFE::OverlayColors::changeColor().
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
| void FIFE::Color::set | ( | uint8_t | r, |
| uint8_t | g, | ||
| uint8_t | b, | ||
| uint8_t | alpha | ||
| ) |
Set all color channel values.
| r | Red channel value. |
| g | Green channel value. |
| b | Blue channel value. |
| alpha | Alpha channel value. |
Definition at line 49 of file color.cpp.
References m_a, m_b, m_g, and m_r.
Referenced by FIFE::OverlayColors::changeColor(), and FIFE::LibRocketRenderInterface::RenderGeometry().
Here is the caller graph for this function:| void FIFE::Color::setAlpha | ( | uint8_t | alpha | ) |
| void FIFE::Color::setB | ( | uint8_t | b | ) |
| void FIFE::Color::setG | ( | uint8_t | g | ) |
| void FIFE::Color::setR | ( | uint8_t | r | ) |
|
private |
Definition at line 135 of file color.h.
Referenced by getAlpha(), operator<(), operator==(), set(), and setAlpha().
|
private |
Definition at line 134 of file color.h.
Referenced by getB(), operator<(), operator==(), set(), and setB().
|
private |
Definition at line 133 of file color.h.
Referenced by getG(), operator<(), operator==(), set(), and setG().
|
private |
Definition at line 132 of file color.h.
Referenced by getR(), operator<(), operator==(), set(), and setR().