2 * Acess GUI (AxWin) Version 2
3 * By John Hodge (thePowersGang)
10 #define BORDER_EVERYTHING 1
12 #define BOX_BGCOLOUR 0xC0C0C0
13 #define BOX_BORDER 0xA0A0A0
14 #define BUTTON_BGCOLOUR 0xD0D0D0
15 #define BUTTON_BORDER 0xF0F0F0
16 #define TEXT_COLOUR 0x000000
19 void Decorator_RenderWidget(tElement *Element)
21 _SysDebug("Decorator_RenderWidget: (Element={Type:%i,(%i,%i) %ix%i})",
23 Element->CachedX, Element->CachedY,
24 Element->CachedW, Element->CachedH
28 Video_DrawRect(Element->CachedX, Element->CachedY,
29 Element->CachedW, Element->CachedH,
37 case ELETYPE_BOX: break;
39 case ELETYPE_TABBAR: // TODO: Moar
42 Element->CachedX, Element->CachedY,
43 Element->CachedW, Element->CachedH,
47 Element->CachedX+1, Element->CachedY+1,
48 Element->CachedW-2, Element->CachedH-2,
55 Element->CachedX+3, Element->CachedY+3,
56 Element->CachedW-6, Element->CachedH-6,
63 Element->CachedX+1, Element->CachedY+1,
64 Element->CachedW-2, Element->CachedH-2,
68 Element->CachedX, Element->CachedY,
69 Element->CachedW-1, Element->CachedH-1,
76 Element->CachedX+1, Element->CachedY+1,
77 Element->CachedW-2, Element->CachedH-2,
86 Element->CachedX, Element->CachedY,
87 Element->CachedW, Element->CachedH,