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;
26 uint32_t ID; //!< Application provided ID number
27 tElement *ListNext; //!< Next element in bucket
33 tElement *NextSibling;
35 // User modifiable attributes
36 short PaddingL, PaddingR;
37 short PaddingT, PaddingB;
42 short FixedWith; //!< Fixed lengthways Size attribute (height)
43 short FixedCross; //!< Fixed Cross Size attribute (width)
45 tColour BackgroundColour;
49 // -- Attributes maitained by the element code
50 // Not touched by the user
51 short MinW; //!< Minimum long size
52 short MinH; //!< Minimum cross size
53 void *Data; //!< Per-type data
56 short CachedX, CachedY;
57 short CachedW, CachedH;
63 tElement *FocusedElement;
65 int TableSize; //!< Number of entries, anything over will wrap
66 tElement *ElementTable[]; //!< Hash table essentially