7 #ifndef MYGUI_COLOUR_H_
8 #define MYGUI_COLOUR_H_
20 Colour(
float _red,
float _green,
float _blue,
float _alpha = 1);
22 explicit Colour(
const std::string& _value);
28 void set(
float _red,
float _green,
float _blue,
float _alpha = 1);
32 std::string print()
const;
34 static Colour parse(
const std::string& _value);
36 friend std::ostream& operator << (std::ostream& _stream,
const Colour& _value)
38 return operatorShiftLeft(_stream, _value);
41 friend std::istream& operator >> (std::istream& _stream,
Colour& _value)
43 return operatorShiftRight(_stream, _value);
46 static std::ostream& operatorShiftLeft(std::ostream& _stream,
const Colour& _value);
47 static std::istream& operatorShiftRight(std::istream& _stream,
Colour& _value);
65 #endif // MYGUI_COLOUR_H_