RGBA Color Type.
More...
#include <color.h>
RGBA Color Type.
- Bug:
- operators does not work correctly
- Todo:
- operators*/
Color |
( |
Uint8 |
r, |
|
|
Uint8 |
g, |
|
|
Uint8 |
b, |
|
|
Uint8 |
a = 255 |
|
) |
| |
|
inline |
References Color::mA.
Referenced by Image::checkAlpha(), CanvasStd::clearClipRect(), Color::Color(), CanvasStd::fill(), CanvasStd::hLine(), CanvasStd::line(), Color::operator!=(), Color::operator==(), Pixel::putAlpha(), Color::set(), Color::setA(), Color::setAlpha(), CanvasGL::setColor(), and CanvasStd::vLine().
References Color::mB.
Referenced by Button::Button(), Image::checkColorKey(), Color::Color(), CanvasStd::fill(), Image::genTexture(), CanvasStd::hLine(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Pixel::put(), Pixel::putAlpha(), Color::set(), Color::setB(), CanvasGL::setColor(), and CanvasStd::vLine().
References Color::mG.
Referenced by Button::Button(), Image::checkColorKey(), Color::Color(), CanvasStd::fill(), CanvasStd::hLine(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Pixel::put(), Pixel::putAlpha(), Color::set(), CanvasGL::setColor(), Color::setG(), and CanvasStd::vLine().
bool operator!= |
( |
const Color & |
color | ) |
const |
|
inline |
References Color::a(), Color::b(), Color::g(), Color::mA, Color::mB, Color::mG, Color::mR, Color::operator*(), Color::operator+(), Color::operator-(), and Color::r().
Color operator* |
( |
float |
value | ) |
const |
References Color::b(), Color::g(), Color::mA, Color::mB, Color::mG, Color::mR, Color::r(), Color::setA(), Color::setB(), Color::setG(), and Color::setR().
Referenced by Color::operator!=().
bool operator== |
( |
const Color & |
color | ) |
const |
|
inline |
References Color::mR.
Referenced by Button::Button(), Image::checkColorKey(), Color::Color(), CanvasStd::fill(), Image::genTexture(), CanvasStd::hLine(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Pixel::put(), Pixel::putAlpha(), Color::set(), CanvasGL::setColor(), Color::setR(), and CanvasStd::vLine().
void set |
( |
Uint8 |
r, |
|
|
Uint8 |
g, |
|
|
Uint8 |
b, |
|
|
Uint8 |
a = 255 |
|
) |
| |
References Color::a(), Color::b(), Color::g(), Color::mA, Color::mB, Color::mG, Color::mR, and Color::r().
Referenced by Button::Button(), Image::clear(), Label::setBorder(), Widget::setColor(), and Widget::Widget().
Referenced by Color::a(), Color::clearAlpha(), Color::Color(), Color::hasAlpha(), Color::operator!=(), Color::operator*(), Color::operator==(), Color::set(), Color::setA(), Color::setAlpha(), Color::setBlack(), Color::setWhite(), and Color::~Color().
Referenced by Color::b(), Color::Color(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Color::set(), Color::setB(), Color::setBlack(), Color::setWhite(), and Color::~Color().
Referenced by Color::Color(), Color::g(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Color::set(), Color::setBlack(), Color::setG(), Color::setWhite(), and Color::~Color().
Referenced by Color::Color(), Color::operator!=(), Color::operator*(), Color::operator+(), Color::operator-(), Color::operator==(), Color::r(), Color::set(), Color::setBlack(), Color::setR(), Color::setWhite(), and Color::~Color().
The documentation for this class was generated from the following files: