/** Identifier for a sound channel */
enum Channel {
- LEFT = 0, ///< left
- RIGHT = 1, ///< right
- CENTRE = 2, ///< centre
- LFE = 3, ///< low-frequency effects (sub)
- LS = 4, ///< left surround
- RS = 5 ///< right surround
+ LEFT = 0, ///< left
+ RIGHT = 1, ///< right
+ CENTRE = 2, ///< centre
+ LFE = 3, ///< low-frequency effects (sub)
+ LS = 4, ///< left surround
+ RS = 5, ///< right surround
+ CHANNEL_7 = 6, ///< channel 7; not sure what this should be called
+ CHANNEL_8 = 7 ///< channel 8; not sure what this should be called
};
enum ContentKind
SHADOW
};
+extern std::string effect_to_string (Effect e);
+extern Effect string_to_effect (std::string s);
+
enum VAlign
{
TOP,
BOTTOM
};
+extern std::string valign_to_string (VAlign a);
+extern VAlign string_to_valign (std::string s);
+
enum Eye
{
EYE_LEFT,
int r;
int g;
int b;
+
+ std::string to_argb_string () const;
};
extern bool operator== (Color const & a, Color const & b);
+extern bool operator!= (Color const & a, Color const & b);
extern std::ostream & operator<< (std::ostream & s, Color const & c);
}