summaryrefslogtreecommitdiff
path: root/Libraries/LibGfx/Rect.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-02-11 11:27:13 +0100
committerAndreas Kling <kling@serenityos.org>2020-02-11 11:53:38 +0100
commit3f58f0e87ca5fbecfd5b14446fe6f3f9ac8750b8 (patch)
tree29864a9f1f036a943e0964ef98e33120a921096f /Libraries/LibGfx/Rect.h
parentf4fa7589591878f1df8902f466f1fc6ea0e31e4a (diff)
downloadserenity-3f58f0e87ca5fbecfd5b14446fe6f3f9ac8750b8.zip
LibGfx: Add Rect::operator!=(Rect)
Diffstat (limited to 'Libraries/LibGfx/Rect.h')
-rw-r--r--Libraries/LibGfx/Rect.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Libraries/LibGfx/Rect.h b/Libraries/LibGfx/Rect.h
index 2fa67c3c31..103df2b8ec 100644
--- a/Libraries/LibGfx/Rect.h
+++ b/Libraries/LibGfx/Rect.h
@@ -264,6 +264,11 @@ public:
&& m_size == other.m_size;
}
+ bool operator!=(const Rect& other) const
+ {
+ return !(*this == other);
+ }
+
void intersect(const Rect&);
static Rect from_two_points(const Point& a, const Point& b)