return rect;
}
+bool Window::contains_point(int ptr_x, int ptr_y)
+{
+ return ptr_x >= rect.x && ptr_x < rect.x + rect.width &&
+ ptr_y >= rect.y && ptr_y < rect.y + rect.height;
+}
+
void Window::move(int x, int y)
{
invalidate(); // moved, should redraw, MUST BE CALLED FIRST