2 * Acess GUI (AxWin) Version 2
3 * By John Hodge (thePowersGang)
8 int giInterface_Width = 0;
9 tElement *gpInterface_Sidebar;
10 tElement *gpInterface_MainArea;
11 tElement *gpInterface_HeaderBar;
12 tElement *gpInterface_TabBar;
13 tElement *gpInterface_TabContent;
16 void Interface_Init(void)
21 giInterface_Width = giScreenWidth/16;
26 gpInterface_Sidebar = WM_CreateElement(NULL, ELETYPE_TOOLBAR, ELEFLAG_VERTICAL);
27 WM_SetSize( gpInterface_Sidebar, giInterface_Width );
28 // Create Main Area and regions within
29 gpInterface_MainArea = WM_CreateElement(NULL, ELETYPE_BOX, ELEFLAG_VERTICAL);
30 gpInterface_HeaderBar = WM_CreateElement(gpInterface_MainArea, ELETYPE_BOX, 0);
31 gpInterface_TabBar = WM_CreateElement(gpInterface_MainArea, ELETYPE_TABBAR, 0);
32 gpInterface_TabContent = WM_CreateElement(gpInterface_MainArea, ELETYPE_BOX, 0);
34 // Main segment of the "taskbar"
35 area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL);
37 btn = WM_CreateElement(area, ELETYPE_BUTTON, ELEFLAG_NOEXPAND);
38 WM_SetSize(btn, giInterface_Width);
39 //text = WM_CreateElement(btn, ELETYPE_IMAGE, ELEFLAG_SCALE);
40 //WM_SetText(text, "asset://LogoSmall.sif");
41 text = WM_CreateElement(btn, ELETYPE_TEXT, 0);
42 WM_SetText(text, "Acess");
44 // Plain <hr/> style spacer
45 WM_CreateElement(area, ELETYPE_SPACER, 0);
50 area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL|ELEFLAG_ALIGN_END);
52 // Plain <hr/> style spacer
53 WM_CreateElement(area, ELETYPE_SPACER, 0);
56 text = WM_CreateElement(area, ELETYPE_TEXT, ELEFLAG_WRAP);
57 WM_SetText(text, "AxWin 1.0");
60 void Interface_Update(void)
62 giInterface_Width = giScreenWidth/16;
63 WM_SetSize( gpInterface_Sidebar, giInterface_Width );
66 void Interface_Render(void)
71 giInterface_Width, giScreenHeight,