#include <color.h>
|
| Color () |
|
| Color (uint32 rgba) |
|
| Color (uint8 r, uint8 g, uint8 b, uint8 a=0xFF) |
|
| Color (int r, int g, int b, int a=0xFF) |
|
| Color (float r, float g, float b, float a=1.0f) |
|
| Color (const std::string &coltext) |
|
| Color (const Color &color)=default |
|
uint8 | a () const |
|
uint8 | b () const |
|
uint8 | g () const |
|
uint8 | r () const |
|
float | aF () const |
|
float | bF () const |
|
float | gF () const |
|
float | rF () const |
|
uint32 | rgba () const |
|
void | setRed (int r) |
|
void | setGreen (int g) |
|
void | setBlue (int b) |
|
void | setAlpha (int a) |
|
void | setRed (float r) |
|
void | setGreen (float g) |
|
void | setBlue (float b) |
|
void | setAlpha (float a) |
|
void | setRGBA (uint8 r, uint8 g, uint8 b, uint8 a=0xFF) |
|
void | setRGBA (uint32 rgba) |
|
Color | operator+ (const Color &other) const |
|
Color | operator- (const Color &other) const |
|
Color | operator* (float v) const |
|
Color | operator/ (float v) const |
|
Color & | operator= (uint32_t rgba) |
|
bool | operator== (uint32_t rgba) const |
|
Color & | operator= (const Color &other) |
|
bool | operator== (const Color &other) const |
|
bool | operator!= (const Color &other) const |
|
Definition at line 32 of file color.h.
◆ Color() [1/7]
◆ Color() [2/7]
◆ Color() [3/7]
◆ Color() [4/7]
Color::Color |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a = 0xFF |
|
) |
| |
|
inline |
◆ Color() [5/7]
Color::Color |
( |
float |
r, |
|
|
float |
g, |
|
|
float |
b, |
|
|
float |
a = 1.0f |
|
) |
| |
|
inline |
◆ Color() [6/7]
Color::Color |
( |
const std::string & |
coltext | ) |
|
◆ Color() [7/7]
Color::Color |
( |
const Color & |
color | ) |
|
|
default |
◆ a()
◆ aF()
float Color::aF |
( |
| ) |
const |
|
inline |
◆ b()
◆ bF()
float Color::bF |
( |
| ) |
const |
|
inline |
◆ from8bit()
static Color Color::from8bit |
( |
int |
color | ) |
|
|
inlinestatic |
◆ g()
◆ gF()
float Color::gF |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool Color::operator!= |
( |
const Color & |
other | ) |
const |
|
inline |
◆ operator*()
Color Color::operator* |
( |
float |
v | ) |
const |
|
inline |
◆ operator+()
Color Color::operator+ |
( |
const Color & |
other | ) |
const |
|
inline |
◆ operator-()
Color Color::operator- |
( |
const Color & |
other | ) |
const |
|
inline |
◆ operator/()
Color Color::operator/ |
( |
float |
v | ) |
const |
|
inline |
◆ operator=() [1/2]
◆ operator=() [2/2]
Color& Color::operator= |
( |
uint32_t |
rgba | ) |
|
|
inline |
◆ operator==() [1/2]
bool Color::operator== |
( |
const Color & |
other | ) |
const |
|
inline |
◆ operator==() [2/2]
bool Color::operator== |
( |
uint32_t |
rgba | ) |
const |
|
inline |
◆ r()
◆ rF()
float Color::rF |
( |
| ) |
const |
|
inline |
◆ rgba()
◆ setAlpha() [1/2]
void Color::setAlpha |
( |
float |
a | ) |
|
|
inline |
◆ setAlpha() [2/2]
void Color::setAlpha |
( |
int |
a | ) |
|
|
inline |
◆ setBlue() [1/2]
void Color::setBlue |
( |
float |
b | ) |
|
|
inline |
◆ setBlue() [2/2]
void Color::setBlue |
( |
int |
b | ) |
|
|
inline |
◆ setGreen() [1/2]
void Color::setGreen |
( |
float |
g | ) |
|
|
inline |
◆ setGreen() [2/2]
void Color::setGreen |
( |
int |
g | ) |
|
|
inline |
◆ setRed() [1/2]
void Color::setRed |
( |
float |
r | ) |
|
|
inline |
◆ setRed() [2/2]
void Color::setRed |
( |
int |
r | ) |
|
|
inline |
◆ setRGBA() [1/2]
void Color::setRGBA |
( |
uint32 |
rgba | ) |
|
|
inline |
◆ setRGBA() [2/2]
◆ to8bit()
◆ alpha
const Color Color::alpha = 0x00000000U |
|
static |
◆ black
const Color Color::black = 0xff000000 |
|
static |
◆ blue
const Color Color::blue = 0xffff0000 |
|
static |
◆ darkBlue
const Color Color::darkBlue = 0xff800000 |
|
static |
◆ darkGray
const Color Color::darkGray = 0xff808080 |
|
static |
◆ darkGreen
const Color Color::darkGreen = 0xff008000 |
|
static |
◆ darkPink
const Color Color::darkPink = 0xff800080 |
|
static |
◆ darkRed
const Color Color::darkRed = 0xff000080 |
|
static |
◆ darkTeal
const Color Color::darkTeal = 0xff808000 |
|
static |
◆ darkYellow
const Color Color::darkYellow = 0xff008080 |
|
static |
◆ gray
const Color Color::gray = 0xffa0a0a0 |
|
static |
◆ green
const Color Color::green = 0xff00ff00 |
|
static |
◆ lightGray
const Color Color::lightGray = 0xffc0c0c0 |
|
static |
◆ orange
const Color Color::orange = 0xff008cff |
|
static |
◆ pink
const Color Color::pink = 0xffff00ff |
|
static |
◆ red
const Color Color::red = 0xff0000ff |
|
static |
◆ teal
const Color Color::teal = 0xffffff00 |
|
static |
◆ white
const Color Color::white = 0xffffffff |
|
static |
◆ yellow
const Color Color::yellow = 0xff00ffff |
|
static |
The documentation for this class was generated from the following files: