+Rect Window::get_absolute_rect() const
+{
+ if(!parent) {
+ return rect;
+ }
+
+ Rect absolute_rect;
+ absolute_rect = parent->get_absolute_rect();
+
+ absolute_rect.x += rect.x;
+ absolute_rect.y += rect.y;
+ absolute_rect.width = rect.width;
+ absolute_rect.height = rect.height;
+
+ return absolute_rect;
+}
+