Usermode/AxWin3 - Cleaning up and adding client widget support
[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 #include <axwin3/widget.h>
11
12 // === GLOBALS ===
13 tHWND   gSidebar;
14
15 // === CODE ===
16 int sidebar_callback(tHWND Window, int Length, void *Data)
17 {
18         return 0;
19 }
20
21 int main(int argc, char *argv[])
22 {
23         // Connect to AxWin3 Server
24         AxWin3_Connect(NULL);
25         
26         // Create sidebar
27         // TODO: Use the widget library instead
28         // TODO: Get screen dimensions somehow
29         gSidebar = AxWin3_Widget_CreateWindow(NULL, 32, 600, 0);
30
31         AxWin3_MoveWindow(gSidebar, 0, 0);
32         
33         // Show!
34         AxWin3_ShowWindow(gSidebar, 1); 
35
36         // Idle loop
37         AxWin3_MainLoop();
38         
39         return 0;
40 }
41

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