698b2d491b88c517a66268dde8aab9731c33f983
[tpg/acess2.git] / Usermode / Applications / axwin3_src / Interface / main.c
1 /*
2  * Acess2 GUI v3 User Interface
3  * - By John Hodge (thePowersGang)
4  *
5  * main.c
6  * - Interface core
7  */
8 #include <stdlib.h>
9 #include <axwin3/axwin.h>
10
11 // === GLOBALS ===
12 tHWND   gSidebar;
13
14 // === CODE ===
15 int sidebar_callback(tHWND Window, int Length, void *Data)
16 {
17         return 0;
18 }
19
20 int main(int argc, char *argv[])
21 {
22         // Connect to AxWin3 Server
23         AxWin3_Connect(NULL);
24         
25         // Create sidebar
26         // TODO: Use the widget library instead
27         gSidebar = AxWin3_CreateWindow(NULL, "Widget", 0, 0, NULL, sidebar_callback);
28
29         // TODO: Get screen dimensions somehow
30
31         // Size the window
32         AxWin3_SetWindowPos(gSidebar, 0, 0, 32, 600);
33         
34         // Show!
35         AxWin3_ShowWindow(gSidebar, 1); 
36
37         // Idle loop
38         AxWin3_MainLoop();
39         
40         return 0;
41 }
42

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