2 * Acess2 Window Manager v3
3 * - By John Hodge (thePowersGang)
8 #ifndef _RENDERER_WIDGET_H_
9 #define _RENDERER_WIDGET_H_
11 #include <wm_renderer.h>
12 #include <axwin3/widget.h>
14 #include <widget_messages.h>
17 typedef struct sWidgetWin tWidgetWin;
18 typedef struct sAxWin_Element tElement;
23 enum eElementTypes Type;
25 uint32_t ID; //!< Application provided ID number
26 tElement *ListNext; //!< Next element in bucket
32 tElement *NextSibling;
34 // User modifiable attributes
35 short PaddingL, PaddingR;
36 short PaddingT, PaddingB;
41 short FixedWith; //!< Fixed lengthways Size attribute (height)
42 short FixedCross; //!< Fixed Cross Size attribute (width)
44 tColour BackgroundColour;
48 // -- Attributes maitained by the element code
49 // Not touched by the user
50 short MinWith; //!< Minimum long size
51 short MinCross; //!< Minimum cross size
52 void *Data; //!< Per-type data
55 short CachedX, CachedY;
56 short CachedW, CachedH;
62 int TableSize; //!< Number of entries, anything over will wrap
63 tElement *ElementTable[]; //!< Hash table essentially
67 extern void Widget_Decorator_RenderWidget(tWindow *Window, tElement *Element);