summaryrefslogtreecommitdiff
path: root/userland/windowserver/ws.h
blob: c4daf7b691e4196eb4e0362244d820452b366516 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#ifndef WS_H
#define WS_H
#include <stddef.h>
#include <stdint.h>

typedef struct {
  int bitmap_fd;
  uint32_t *bitmap_ptr;
  int x;
  int y;
  int sx;
  int sy;
} WINDOW;

typedef struct {
  int fd;
  WINDOW *w;
} CLIENT;

typedef struct {
  int vga_fd;
  uint8_t *back_buffer;
  uint8_t *true_buffer;
  size_t size;
  uint8_t border_size;
  uint8_t border_color;
  uint8_t wallpaper_color;
  CLIENT **clients;
} DISPLAY;
#endif