diff options
Diffstat (limited to 'Widgets/Point.h')
-rw-r--r-- | Widgets/Point.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Widgets/Point.h b/Widgets/Point.h index 99fd6db1bd..895bfa4441 100644 --- a/Widgets/Point.h +++ b/Widgets/Point.h @@ -1,11 +1,13 @@ #pragma once class Rect; +struct GUI_Point; class Point { public: Point() { } Point(int x, int y) : m_x(x) , m_y(y) { } + Point(const GUI_Point&); int x() const { return m_x; } int y() const { return m_y; } @@ -37,6 +39,8 @@ public: return !(*this == other); } + operator GUI_Point() const; + private: int m_x { 0 }; int m_y { 0 }; |