mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 10:09:53 +01:00
[escher] Get a View's frame.
Change-Id: I9fbcf2fb8db5f735df5c852762dc8645c0358683
This commit is contained in:
@@ -41,6 +41,7 @@ public:
|
||||
KDPoint pointFromPointInView(View * view, KDPoint point);
|
||||
|
||||
KDRect bounds() const;
|
||||
KDRect frame() const;
|
||||
View * subview(int index);
|
||||
|
||||
virtual KDSize minimalSizeForOptimalDisplay() const;
|
||||
|
||||
@@ -158,6 +158,10 @@ KDRect View::bounds() const {
|
||||
return m_frame.movedTo(KDPointZero);
|
||||
}
|
||||
|
||||
KDRect View::frame() const {
|
||||
return KDRect(m_frame);
|
||||
}
|
||||
|
||||
KDPoint View::absoluteOrigin() const {
|
||||
if (m_superview == nullptr) {
|
||||
assert(this == (View *)window());
|
||||
|
||||
Reference in New Issue
Block a user