summaryrefslogtreecommitdiff
path: root/src/kernel/window.h
blob: 60b81ea2391bd08c6fbd2e8b899204e303824859 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef WINDOW_H
#define WINDOW_H

#include <stdint.h>

#include <winact.h>

struct window;

void paint_bg();

struct window *new_window(uint16_t width, uint16_t height, const void *pixel_buffer);
void del_window(struct window *w);

void resize_window(struct window *w, uint16_t width, uint16_t height);
void reassign_pixel_buffer(struct window *w, const void *pixel_buffer);
void push_window_paint(const struct window *w);
struct window_action next_window_action(struct window *w);
void wait_window_action();

void on_action(struct window_action packet);

#endif