Color: Add equality operators.
This commit is contained in:
parent
56cbe15033
commit
ae598116f4
Notes:
sideshowbarker
2024-07-19 13:36:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ae598116f49
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
Reference in a new issue