More work on axwin, and slight changes in othe places
[tpg/acess2.git] / Usermode / Applications / axwin2_src / WM / common.h
1 /*
2  * Acess GUI (AxWin) Version 2
3  * By John Hodge (thePowersGang)
4  */
5 #ifndef _COMMON_H_
6 #define _COMMON_H_
7
8 #include <stdlib.h>
9 #include <stdio.h>
10 #include <stdint.h>
11
12 #include "wm.h"
13 #include "image.h"
14 //#include "font.h"
15
16 // === GLOBALS ===
17 extern char     *gsTerminalDevice;
18 extern char     *gsMouseDevice;
19
20 extern int      giScreenWidth;
21 extern int      giScreenHeight;
22 extern uint32_t *gpScreenBuffer;
23
24 extern int      giTerminalFD;
25 extern int      giMouseFD;
26
27 // === Functions ===
28 extern void     memset32(void *ptr, uint32_t val, size_t count);
29 // --- Video ---
30 extern void     Video_Update(void);
31 extern void     Video_FillRect(short X, short Y, short W, short H, uint32_t Color);
32 extern void     Video_DrawRect(short X, short Y, short W, short H, uint32_t Color);
33 extern void     Video_DrawText(short X, short Y, short W, short H, void *Font, int Point, uint32_t Color, char *Text);
34 // --- Debug Hack ---
35 extern void     _SysDebug(const char *Format, ...);
36 #endif

UCC git Repository :: git.ucc.asn.au