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; // Box is a meta-element
39 case ELETYPE_TABBAR: // Tab Bar
41 Element->CachedX, Element->CachedY,
42 Element->CachedW, Element->CachedH,
46 Element->CachedX+1, Element->CachedY+1,
47 Element->CachedW-2, Element->CachedH-2,
52 case ELETYPE_TOOLBAR: // Tool Bar
54 Element->CachedX, Element->CachedY,
55 Element->CachedW, Element->CachedH,
59 Element->CachedX+1, Element->CachedY+1,
60 Element->CachedW-2, Element->CachedH-2,
65 case ELETYPE_SPACER: // Spacer (subtle line)
67 Element->CachedX+3, Element->CachedY+3,
68 Element->CachedW-6, Element->CachedH-6,
73 case ELETYPE_BUTTON: // Button
75 Element->CachedX+1, Element->CachedY+1,
76 Element->CachedW-2, Element->CachedH-2,
80 Element->CachedX, Element->CachedY,
81 Element->CachedW-1, Element->CachedH-1,
88 Element->CachedX+1, Element->CachedY+1,
89 Element->CachedW-2, Element->CachedH-2,
98 Element->CachedX, Element->CachedY,
99 Element->CachedW, Element->CachedH,
105 _SysDebug(" ERROR: Unknown type %i", Element->Type);