Make Widget::screen_rect() const.

Because I can.
This commit is contained in:
Jared Boone 2016-05-08 14:59:26 -07:00
parent ab73d6155e
commit dc2944d5e9
2 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ Size Widget::size() const {
return parent_rect.size;
}
Rect Widget::screen_rect() {
Rect Widget::screen_rect() const {
return parent() ? (parent_rect + parent()->screen_pos()) : parent_rect;
}

View File

@ -69,7 +69,7 @@ public:
Point screen_pos();
Size size() const;
Rect screen_rect();
Rect screen_rect() const;
virtual void set_parent_rect(const Rect new_parent_rect);
Widget* parent() const;