#define DEFAULT_ELEMENTS_PER_APP 128
typedef struct sAxWin_Element tElement;
+typedef struct sMenuItem tMenuItem;
+typedef struct sWindow tWindow;
typedef struct sApplication tApplication;
struct sAxWin_Element
uint32_t Flags;
- short FixedWith; //!< Fixed Long Size attribute (height)
+ short FixedWith; //!< Fixed lengthways Size attribute (height)
short FixedCross; //!< Fixed Cross Size attribute (width)
char *Text;
char DebugName[];
};
+struct sMenuItem
+{
+ tMenuItem *Next;
+ int Flags;
+ int ID; //!< ID number sent to application
+ const char *Label;
+ const char *Right;
+ tMenuItem *FirstChild;
+};
+
+struct sWindow
+{
+ int X, Y, W, H;
+ void *Icon;
+
+ tApplication *App;
+
+ tWindow *OrderNext; // Render order
+
+ tMenuItem *Menus;
+
+ tElement RootElement;
+};
+
struct sApplication
{
tApplication *Next;
int MaxElementIndex; //!< Number of entries in \a EleIndex
tElement **EleIndex; //!< Array of pointers to elements owned by this application
- tElement MetaElement; //!< Windows child off this
+ tElement MetaElement; //!< Tabs child off this
};
// === FUNCTIONS ===