[kandinsky] KDRect::topLeft and bottomRight

Change-Id: I47e726cea81ea5bfb29409c5679c47dc1aae8f13
This commit is contained in:
Romain Goyet
2017-08-04 17:26:15 +02:00
parent 19cf3a4958
commit 614b623a2b

View File

@@ -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);