git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added sanity checking to kernel vnsprintf
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin2_src
/
WM
/
interface.c
diff --git
a/Usermode/Applications/axwin2_src/WM/interface.c
b/Usermode/Applications/axwin2_src/WM/interface.c
index
52030f3
..
af02429
100644
(file)
--- a/
Usermode/Applications/axwin2_src/WM/interface.c
+++ b/
Usermode/Applications/axwin2_src/WM/interface.c
@@
-1,6
+1,9
@@
/*
* Acess GUI (AxWin) Version 2
* By John Hodge (thePowersGang)
/*
* Acess GUI (AxWin) Version 2
* By John Hodge (thePowersGang)
+ *
+ * interface.c
+ * > Main Overarching UI
*/
#include "common.h"
*/
#include "common.h"
@@
-13,13
+16,18
@@
tElement *gpInterface_TabBar;
tElement *gpInterface_TabContent;
// === CODE ===
tElement *gpInterface_TabContent;
// === CODE ===
+/**
+ * \brief Initialise the UI
+ */
void Interface_Init(void)
{
tElement *area;
tElement *btn, *text;
void Interface_Init(void)
{
tElement *area;
tElement *btn, *text;
+ // Calculate sizes
giInterface_Width = giScreenWidth/16;
giInterface_Width = giScreenWidth/16;
+ // Set root window to no-border
WM_SetFlags(NULL, 0);
// -- Create Sidebar --
WM_SetFlags(NULL, 0);
// -- Create Sidebar --
@@
-39,7
+47,7
@@
void Interface_Init(void)
// ---- Plain <hr/> style spacer ----
WM_CreateElement(area, ELETYPE_SPACER, 0);
// ---- Plain <hr/> style spacer ----
WM_CreateElement(area, ELETYPE_SPACER, 0);
- // Windows Go Here
+ //
Open
Windows Go Here
// --- Bottom Segment ---
area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL|ELEFLAG_ALIGN_END);
// --- Bottom Segment ---
area = WM_CreateElement(gpInterface_Sidebar, ELETYPE_BOX, ELEFLAG_VERTICAL|ELEFLAG_ALIGN_END);
UCC
git Repository :: git.ucc.asn.au