#ifndef COMET_WINDOW_H #define COMET_WINDOW_H #include #include #include #include "display.h" typedef struct { display_t *display; xcb_drawable_t window; uint32_t cw_mask; xcb_params_cw_t cw_params; cairo_surface_t *surface; cairo_t *cr; int x, y; int width, height; } window_t; void window_init(window_t *window, display_t *display); void window_move(window_t *window, int x, int y); void window_resize(window_t *window, int width, int height); void window_present(window_t *window, cairo_surface_t *surface, int width, int height); void window_close(window_t *window); #endif