summaryrefslogtreecommitdiff
path: root/SharedGraphics/Point.h
diff options
context:
space:
mode:
Diffstat (limited to 'SharedGraphics/Point.h')
-rw-r--r--SharedGraphics/Point.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/SharedGraphics/Point.h b/SharedGraphics/Point.h
index 87680ce22f..b9fa85d994 100644
--- a/SharedGraphics/Point.h
+++ b/SharedGraphics/Point.h
@@ -61,6 +61,8 @@ public:
operator WSAPI_Point() const;
String to_string() const { return String::format("[%d,%d]", x(), y()); }
+ bool is_null() const { return !m_x && !m_y; }
+
private:
int m_x { 0 };
int m_y { 0 };