Many changes:
[Marmot.git] / window.c
blobe123cb89aabcac3e360581c172a7b1c468fa233a
1 /*
2 * window.c --
4 * Implementation of the windowing interface.
5 */
8 typedef uint64 Window;
10 typedef struct {
11 Color bg;
12 Color fg;
13 uint64 width;
14 uint64 height;
15 uint8 *fb;
16 uint64 fbWidth;
17 uint64 fbHeight;
18 char *title;
19 unsigned int hasFocus:1;
20 unsigned int drawBorder:1;
21 } WParam;
26 Window
27 Window_Create(WParam *wp)
29 if (wp->bg == COLOR_DEFAULT) {
30 wp->bg = COLOR_WINDOW_BACKGROUND;
32 if (wp->fg == COLOR_DEFAULT) {
33 wp->fg = COLOR_BLACK;