7 #ifndef __MYGUI_COLOUR_H__
8 #define __MYGUI_COLOUR_H__
20 Colour(
float _red,
float _green,
float _blue,
float _alpha = 1);
21 explicit Colour(
const std::string& _value);
27 void set(
float _red,
float _green,
float _blue,
float _alpha = 1);
31 std::string print()
const;
33 static Colour parse(
const std::string& _value);
35 friend std::ostream& operator << (std::ostream& _stream,
const Colour& _value)
37 return operatorShiftLeft(_stream, _value);
40 friend std::istream& operator >> (std::istream& _stream,
Colour& _value)
42 return operatorShiftRight(_stream, _value);
45 static std::ostream& operatorShiftLeft(std::ostream& _stream,
const Colour& _value);
46 static std::istream& operatorShiftRight(std::istream& _stream,
Colour& _value);
64 #endif // __MYGUI_COLOUR_H__