mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-06-25 23:30:40 -04:00
Make Widget::screen_rect() const.
Because I can.
This commit is contained in:
parent
ab73d6155e
commit
dc2944d5e9
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ Size Widget::size() const {
|
||||||
return parent_rect.size;
|
return parent_rect.size;
|
||||||
}
|
}
|
||||||
|
|
||||||
Rect Widget::screen_rect() {
|
Rect Widget::screen_rect() const {
|
||||||
return parent() ? (parent_rect + parent()->screen_pos()) : parent_rect;
|
return parent() ? (parent_rect + parent()->screen_pos()) : parent_rect;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -69,7 +69,7 @@ public:
|
||||||
|
|
||||||
Point screen_pos();
|
Point screen_pos();
|
||||||
Size size() const;
|
Size size() const;
|
||||||
Rect screen_rect();
|
Rect screen_rect() const;
|
||||||
virtual void set_parent_rect(const Rect new_parent_rect);
|
virtual void set_parent_rect(const Rect new_parent_rect);
|
||||||
|
|
||||||
Widget* parent() const;
|
Widget* parent() const;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue