10 rect.width = rect.height = 128;
11 memset(&callbacks, 0, sizeof callbacks);
20 const Rect &Window::get_rect() const
25 void Window::move(int x, int y)
27 invalidate(); // moved, should redraw, MUST BE CALLED FIRST
32 void Window::resize(int x, int y)
34 invalidate(); // resized, should redraw, MUST BE CALLED FIRST
39 void Window::set_title(const char *s)
43 title = new char[strlen(s) + 1];
47 const char *Window::get_title() const
52 void Window::invalidate()
55 wm->invalidate_region(rect);
60 callbacks.display(this);
64 unsigned char *Window::get_win_start_on_fb()
66 unsigned char *fb = get_framebuffer();
67 return fb + get_color_depth() * (get_screen_size().x * rect.y + rect.x) / 8;
70 int Window::get_scanline_width()
72 return get_screen_size().x;