X-Git-Url: https://eleni.mutantstargoat.com/git/?p=winnie;a=blobdiff_plain;f=src%2Fwindow.cc;h=46528b753b17ef3c1b7f2435ab53cbe775355551;hp=2a8b6f513aa28e5bf5fcef5ccd14a4b447e12f13;hb=6dc42c0e7292d6d94de640ddd7de3ee5c808e9c2;hpb=4047a2dc058e7e54e4ff95311fb556ae8eeeedb9 diff --git a/src/window.cc b/src/window.cc index 2a8b6f5..46528b7 100644 --- a/src/window.cc +++ b/src/window.cc @@ -7,6 +7,7 @@ Window::Window() { + parent = 0; title = 0; rect.x = rect.y = 0; rect.width = rect.height = 128; @@ -31,6 +32,11 @@ const Rect &Window::get_rect() const return rect; } +const Rect &Window::get_absolute_rect() const +{ + return rect; // TODO implement absolute rectangle thingy +} + bool Window::contains_point(int ptr_x, int ptr_y) { return ptr_x >= rect.x && ptr_x < rect.x + rect.width &&