MyGUI
3.2.1
|
#include <MyGUI_Colour.h>
Public Member Functions | |
Colour () | |
Colour (float _red, float _green, float _blue, float _alpha=1) | |
Colour (const std::string &_value) | |
Colour & | operator= (Colour const &_value) |
bool | operator== (Colour const &_value) const |
bool | operator!= (Colour const &_value) const |
void | set (float _red, float _green, float _blue, float _alpha=1) |
void | clear () |
std::string | print () const |
Static Public Member Functions | |
static Colour | parse (const std::string &_value) |
static std::ostream & | operatorShiftLeft (std::ostream &_stream, const Colour &_value) |
static std::istream & | operatorShiftRight (std::istream &_stream, Colour &_value) |
Data Fields | |
float | red |
float | green |
float | blue |
float | alpha |
Static Public Attributes | |
static const Colour | Zero = Colour(0, 0, 0, 0) |
static const Colour | Black = Colour(0, 0, 0, 1) |
static const Colour | White = Colour(1, 1, 1, 1) |
static const Colour | Red = Colour(1, 0, 0, 1) |
static const Colour | Green = Colour(0, 1, 0, 1) |
static const Colour | Blue = Colour(0, 0, 1, 1) |
Friends | |
std::ostream & | operator<< (std::ostream &_stream, const Colour &_value) |
std::istream & | operator>> (std::istream &_stream, Colour &_value) |
Definition at line 16 of file MyGUI_Colour.h.
MyGUI::Colour::Colour | ( | ) |
Definition at line 20 of file MyGUI_Colour.cpp.
MyGUI::Colour::Colour | ( | float | _red, |
float | _green, | ||
float | _blue, | ||
float | _alpha = 1 |
||
) |
Definition at line 28 of file MyGUI_Colour.cpp.
|
explicit |
Definition at line 36 of file MyGUI_Colour.cpp.
void MyGUI::Colour::clear | ( | ) |
Definition at line 68 of file MyGUI_Colour.cpp.
bool MyGUI::Colour::operator!= | ( | Colour const & | _value | ) | const |
Definition at line 55 of file MyGUI_Colour.cpp.
Definition at line 41 of file MyGUI_Colour.cpp.
bool MyGUI::Colour::operator== | ( | Colour const & | _value | ) | const |
Definition at line 50 of file MyGUI_Colour.cpp.
|
static |
Definition at line 111 of file MyGUI_Colour.cpp.
|
static |
Definition at line 117 of file MyGUI_Colour.cpp.
|
static |
Definition at line 80 of file MyGUI_Colour.cpp.
std::string MyGUI::Colour::print | ( | ) | const |
Definition at line 73 of file MyGUI_Colour.cpp.
void MyGUI::Colour::set | ( | float | _red, |
float | _green, | ||
float | _blue, | ||
float | _alpha = 1 |
||
) |
Definition at line 60 of file MyGUI_Colour.cpp.
|
friend |
Definition at line 35 of file MyGUI_Colour.h.
|
friend |
Definition at line 40 of file MyGUI_Colour.h.
float MyGUI::Colour::alpha |
Definition at line 52 of file MyGUI_Colour.h.
Definition at line 55 of file MyGUI_Colour.h.
float MyGUI::Colour::blue |
Definition at line 51 of file MyGUI_Colour.h.
Definition at line 59 of file MyGUI_Colour.h.
float MyGUI::Colour::green |
Definition at line 50 of file MyGUI_Colour.h.
Definition at line 58 of file MyGUI_Colour.h.
float MyGUI::Colour::red |
Definition at line 49 of file MyGUI_Colour.h.
Definition at line 57 of file MyGUI_Colour.h.
Definition at line 56 of file MyGUI_Colour.h.
Definition at line 54 of file MyGUI_Colour.h.