Usermode/axwin3 - Copying parts of AxWin2 over to get it compiling
[tpg/acess2.git] / Usermode / Applications / axwin3_src / WM / include / wm.h
1 /*
2  * Acess2 Window Manager v3 (axwin3)
3  * - By John Hodge (thePowersGang)
4  *
5  * include/wm.h
6  * - Window management functions
7  */
8 #ifndef _WM_H_
9 #define _WM_H_
10
11 // === CONSTANTS ===
12 /**
13  * \brief Window Flags
14  * \{
15  */
16 #define WINFLAG_SHOW            0x00000001
17 #define WINFLAG_RENDER_MASK     0x00FFFF00
18 #define WINFLAG_USR_MASK        0xFF000000
19 /**
20  * \}
21  */
22
23 // === TYPES ===
24 typedef struct sWindow  tWindow;
25 typedef struct sWMRenderer      tWMRenderer;
26 typedef uint32_t        tColour;
27
28 // === FUNCTIONS ===
29 // --- Management
30 extern tWindow  *WM_CreateWindow(tWindow *Parent, int X, int Y, int W, int H, int Flags, tWMRenderer *Handler);
31 extern int      WM_Reposition(tWindow *Window, int X, int Y, int W, int H);
32 extern int      WM_SetFlags(tWindow *Window, int Flags);
33 extern int      WM_SendMessage(tWindow *Window, int MessageID, int Length, void *Data);
34 // --- Rendering
35 extern void     Render_DrawFilledRect(tWindow *Window, tColour Colour, int X, int Y, int W, int H);
36
37 #endif
38

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