#ifndef WINDOW_H #define WINDOW_H #include "composite_widget.h" #include typedef struct { composite_widget_vtable_t base; } window_vtable_t; typedef struct { composite_widget_t base; bool dragging; } window_t; void window_init( window_t *window, widget_t *parent, const int x, const int y, const int w, const int h, const vga_color_t background_color ); void window_draw( void *obj, graphics_context_t *context ); void window_on_mouse_down( void *obj, const int x, const int y ); void window_on_mouse_up( void *obj, const int x, const int y ); void window_on_mouse_move( void *obj, const int old_x, const int old_y, const int x, const int y ); #endif // WINDOW_H