X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin2_src%2FWM%2Finterface.c;h=af02429a562dc577bb4ed26f26482595fb7a0d81;hb=2b28991acfe9e9014eb14dd47def8e31e4c2b7e4;hp=52030f3b398e9300ba4e58bfaa9fd71d17c4b7dd;hpb=35580b646a841d59323953f4dfaf47e678dd9d64;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin2_src/WM/interface.c b/Usermode/Applications/axwin2_src/WM/interface.c index 52030f3b..af02429a 100644 --- 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) + * + * interface.c + * > Main Overarching UI */ #include "common.h" @@ -13,13 +16,18 @@ tElement *gpInterface_TabBar; tElement *gpInterface_TabContent; // === CODE === +/** + * \brief Initialise the UI + */ void Interface_Init(void) { tElement *area; tElement *btn, *text; + // Calculate sizes giInterface_Width = giScreenWidth/16; + // Set root window to no-border WM_SetFlags(NULL, 0); // -- Create Sidebar -- @@ -39,7 +47,7 @@ void Interface_Init(void) // ---- Plain
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);