mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[kandinsky] KDRect::topLeft and bottomRight
Change-Id: I47e726cea81ea5bfb29409c5679c47dc1aae8f13
This commit is contained in:
@@ -26,6 +26,9 @@ public:
|
||||
KDCoordinate bottom() const { return m_y+m_height; }
|
||||
KDCoordinate left() const { return m_x; }
|
||||
|
||||
KDPoint topLeft() const { return KDPoint(left(), top()); }
|
||||
KDPoint bottomRight() const { return KDPoint(right(), bottom()); }
|
||||
|
||||
bool operator ==(const KDRect &other) const {
|
||||
return (m_x == other.m_x && m_y == other.m_y
|
||||
&& m_width == other.m_width && m_height == other.m_height);
|
||||
|
||||
Reference in New Issue
Block a user