diff options
Diffstat (limited to 'src/kernel/window.h')
-rw-r--r-- | src/kernel/window.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/kernel/window.h b/src/kernel/window.h index a226c11..ebd0496 100644 --- a/src/kernel/window.h +++ b/src/kernel/window.h @@ -9,13 +9,20 @@ struct window; +struct pixel { + uint8_t r; + uint8_t g; + uint8_t b; + uint8_t pad; +} __attribute__ ((__packed__)); + void init_win(); -struct window *new_window(uint16_t width, uint16_t height, const void *pixel_buffer); +struct window *new_window(uint16_t width, uint16_t height, const struct pixel *pixel_buffer); void del_window(struct window *w); -void resize_window(struct window *w, uint16_t width, uint16_t height, const void *pixel_buffer); -void reassign_pixel_buffer(struct window *w, const void *pixel_buffer); +void resize_window(struct window *w, uint16_t width, uint16_t height, const struct pixel *pixel_buffer); +void reassign_pixel_buffer(struct window *w, const struct pixel *pixel_buffer); void push_window_paint(const struct window *w); struct window_action next_window_action(struct window *w); void wait_window_action(); |