summaryrefslogtreecommitdiff
path: root/userland/windowserver/ws.h
blob: 864fc5305e0edce961e0ba2c05ed9dc1c38a81e0 (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
31
32
#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;
  int wallpaper_fd;
  uint8_t *wallpaper_buffer;
  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