Color: Add equality operators.

This commit is contained in:
Andreas Kling 2019-06-14 19:10:43 +02:00
parent 56cbe15033
commit ae598116f4
Notes: sideshowbarker 2024-07-19 13:36:22 +09:00

View file

@ -102,6 +102,16 @@ public:
RGBA32 value() const { return m_value; }
bool operator==(const Color& other) const
{
return m_value == other.m_value;
}
bool operator!=(const Color& other) const
{
return m_value != other.m_value;
}
String to_string() const;
private: