Big rewrite of AxWin to get it to compile and run
[tpg/acess2.git] / Usermode / include / axwin / axwin.h
1 /**
2  * \file axwin.h
3  * \author John Hodge (thePowersGang)
4  * \brief AxWin Core functions
5  */
6 #ifndef _AXWIN_AXWIN_H
7 #define _AXWIN_AXWIN_H
8
9 // === Core Types ===
10 typedef void    *tAxWin_Handle;
11
12 // === Messaging ===
13 #include "messages.h"
14 extern int      AxWin_MessageLoop();
15 extern int      AxWin_SendMessage(tAxWin_Message *Message);
16 extern tAxWin_Message   *AxWin_WaitForMessage(void);
17 extern int      AxWin_HandleMessage(tAxWin_Message *Message);
18
19 // === Window Control ===
20 /**
21  * \brief Window Type
22  * \note Opaque Type
23  */
24 typedef struct sAxWin_Window    tAxWin_Window;
25
26 typedef int     tAxWin_MessageCallback(tAxWin_Message *);
27
28 /**
29  * \brief Window Flags
30  * \{
31  */
32 #define WINFLAG_NOBORDER        0x100
33 /**
34  * \}
35  */
36 extern tAxWin_Window    *AxWin_CreateWindow(
37                 int16_t X, int16_t Y, int16_t W, int16_t H,
38                 uint32_t Flags, tAxWin_MessageCallback *Callback);
39
40 #endif

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