- /* GList *tail; */
-
- /* ? */
- gboolean shown;
- gboolean invalid;
- gpointer render_data; /* where the engine can store anything it likes */
-
- struct Menu *parent;
-
- /* waste o' pointers */
- void (*show)( /* some bummu */);
- void (*hide)( /* some bummu */);
- void (*update)( /* some bummu */);
- void (*mouseover)( /* some bummu */);
- void (*selected)( /* some bummu */);
-} Menu;
-
-typedef struct MenuRenderData {
- Window frame;
- Window title;
- Appearance *a_title;
- int title_min_w, title_h;
- Window items;
- Appearance *a_items;
- int item_h;
-} MenuRenderData;
-
-typedef enum MenuEntryRenderType {
- MenuEntryRenderType_None = 0,
- MenuEntryRenderType_Submenu = 1 << 0,
- MenuEntryRenderType_Boolean = 1 << 1,
- MenuEntryRenderType_Separator = 1 << 2,
-
- MenuEntryRenderType_Other = 1 << 7
-} MenuEntryRenderType;
-
-typedef struct {
- char *label;
- Menu *parent;
-
- Action *action;
-
- MenuEntryRenderType render_type;
- gboolean enabled;
- gboolean boolean_value;
- gpointer render_data; /* where the engine can store anything it likes */