mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-23 15:50:49 +01:00
[expression_editor/poincare] Move Up in an ExpressionLayout.
Change-Id: I75fd91233729afd4eb77d8e9d53c102a632643ea
This commit is contained in:
@@ -105,6 +105,14 @@ bool KDRect::contains(KDPoint p) const {
|
||||
return (p.x() >= x() && p.x() <= right() && p.y() >= y() && p.y() <= bottom());
|
||||
}
|
||||
|
||||
bool KDRect::isAbove(KDPoint p) const {
|
||||
return (p.y() >= y());
|
||||
}
|
||||
|
||||
bool KDRect::isUnder(KDPoint p) const {
|
||||
return (p.y() <= bottom());
|
||||
}
|
||||
|
||||
KDRect KDRect::translatedBy(KDPoint p) const {
|
||||
return KDRect(x() + p.x(), y() + p.y(), width(), height());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user