A simple color class (float RGBA). More...
#include <gui_color.hpp>
Public Types | |
typedef float | chanel |
Public Member Functions | |
color () | |
color (chanel nr, chanel ng, chanel nb, chanel na=1.0f) | |
bool | operator== (const color &c) const |
bool | operator!= (const color &c) const |
void | operator+= (const color &c) |
void | operator-= (const color &c) |
void | operator*= (const color &c) |
void | operator*= (float f) |
Public Attributes | |
chanel | r |
chanel | g |
chanel | b |
chanel | a |
Static Public Attributes | |
static const color | EMPTY |
static const color | WHITE |
static const color | BLACK |
static const color | RED |
static const color | GREEN |
static const color | BLUE |
static const color | GREY |
A simple color class (float RGBA).
Definition at line 9 of file gui_color.hpp.
typedef float gui::color::chanel |
Definition at line 13 of file gui_color.hpp.
gui::color::color | ( | ) |
Definition at line 15 of file gui_color.cpp.
Definition at line 19 of file gui_color.cpp.
bool gui::color::operator!= | ( | const color & | c | ) | const |
Definition at line 29 of file gui_color.cpp.
void gui::color::operator*= | ( | float | f | ) |
Definition at line 49 of file gui_color.cpp.
void gui::color::operator*= | ( | const color & | c | ) |
Definition at line 44 of file gui_color.cpp.
void gui::color::operator+= | ( | const color & | c | ) |
Definition at line 34 of file gui_color.cpp.
void gui::color::operator-= | ( | const color & | c | ) |
Definition at line 39 of file gui_color.cpp.
bool gui::color::operator== | ( | const color & | c | ) | const |
Definition at line 24 of file gui_color.cpp.
Definition at line 26 of file gui_color.hpp.
Definition at line 26 of file gui_color.hpp.
const color gui::color::BLACK [static] |
Definition at line 30 of file gui_color.hpp.
const color gui::color::BLUE [static] |
Definition at line 33 of file gui_color.hpp.
const color gui::color::EMPTY [static] |
Definition at line 28 of file gui_color.hpp.
Definition at line 26 of file gui_color.hpp.
const color gui::color::GREEN [static] |
Definition at line 32 of file gui_color.hpp.
const color gui::color::GREY [static] |
Definition at line 34 of file gui_color.hpp.
Definition at line 26 of file gui_color.hpp.
const color gui::color::RED [static] |
Definition at line 31 of file gui_color.hpp.
const color gui::color::WHITE [static] |
Definition at line 29 of file gui_color.hpp.