mirror of
https://github.com/genodelabs/genode.git
synced 2025-03-23 04:25:21 +00:00
os: Add == and != operators to Genode::Color
This commit is contained in:
parent
dce6e14e3e
commit
32a227ce77
@ -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); }
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user