[simulator] Kill Cocoa and Console, move Qt4 one level up
[wikipediardware.git] / gui-lib / guilib.h
blob5aa80213f10397024ff212f21c1f55655a26f7c8
1 #ifndef GUILIB_H
2 #define GUILIB_H
4 /* to be provided by the hardware implementation */
5 extern unsigned char *framebuffer;
6 extern void fb_refresh();
8 unsigned int guilib_framebuffer_width(void);
9 unsigned int guilib_framebuffer_height(void);
10 unsigned int guilib_framebuffer_size(void);
12 /* implemented by guilib */
13 void guilib_init(void);
15 /* generic pixel value accessors
16 * the get method is only needed by the simulators */
17 void guilib_set_pixel(int x, int y, int v);
18 int guilib_get_pixel(int x, int y);
19 void guilib_invert(int start, int lines);
20 void guilib_clear(void);
22 /* functions for graphics context management */
23 void guilib_fb_lock(void);
24 void guilib_fb_unlock(void);
26 struct guilib_image {
27 unsigned int width;
28 unsigned int height;
29 char data[];
32 void guilib_blit_image(const struct guilib_image *img, int x, int y);
34 #endif /* GUILIB_H */