mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:27:35 +00:00
Color: Add equality operators.
This commit is contained in:
parent
56cbe15033
commit
ae598116f4
1 changed files with 10 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue