os: Add == and != operators to Genode::Color

This commit is contained in:
Norman Feske 2015-09-17 18:45:53 +02:00 committed by Christian Helmuth
parent dce6e14e3e
commit 32a227ce77
1 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,12 @@ struct Genode::Color
: r(red), g(green), b(blue), a(alpha) { }
Color(): r(0), g(0), b(0), a(0) { }
bool operator == (Color const &other) const {
return other.r == r && other.g == g && other.b == b; }
bool operator != (Color const &other) const {
return !operator == (other); }
};