2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
5 * renderer_widget_decorator.c
10 #include <renderer_widget.h>
12 #include "./colours.h"
15 void Widget_Decorator_RenderWidget(tWindow *Window, tElement *Element)
17 // _SysDebug("Widget_Decorator_RenderWidget: (Element={Type:%i,(%i,%i) %ix%i})",
19 // Element->CachedX, Element->CachedY,
20 // Element->CachedW, Element->CachedH
26 case ELETYPE_BOX: break; // Box is a meta-element
28 case ELETYPE_TABBAR: // Tab Bar
31 Element->CachedX, Element->CachedY,
32 Element->CachedW, Element->CachedH,
37 Element->CachedX+1, Element->CachedY+1,
38 Element->CachedW-2, Element->CachedH-2,
43 case ELETYPE_TOOLBAR: // Tool Bar
46 Element->CachedX, Element->CachedY,
47 Element->CachedW, Element->CachedH,
52 Element->CachedX+1, Element->CachedY+1,
53 Element->CachedW-2, Element->CachedH-2,
58 case ELETYPE_SPACER: // Spacer (subtle line)
61 Element->CachedX+3, Element->CachedY+3,
62 Element->CachedW-6, Element->CachedH-6,
67 case ELETYPE_BUTTON: // Button
70 // Text input field / Text Box
71 case ELETYPE_TEXTINPUT:
82 _SysDebug(" ERROR: Unknown type %i", Element->Type);