- char *label;
- char *name;
-
- GList *entries;
-
- gboolean shown;
- gboolean invalid;
-
- struct Menu *parent;
-
- struct Menu *open_submenu;
-
- /* place a menu on screen */
- menu_controller_show show;
- void (*hide)( /* some bummu */);
-
- /* render a menu */
- menu_controller_update update;
- menu_controller_mouseover mouseover;
- void (*selected)( /* some bummu */);
-
-
- /* render stuff */
- ObClient *client;
- Window frame;
- Window title;
- RrAppearance *a_title;
- int title_min_w, title_h;
- Window items;
- RrAppearance *a_items;
- int bullet_w;
- int item_h;
- Point location;
- Size size;
- guint xin_area; /* index of the xinerama head/area */
-
- /* plugin stuff */
- char *plugin;
- void *plugin_data;
-} Menu;
-
-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 MenuEntry {
- char *label;
- Menu *parent;
-
- Action *action;
-
- MenuEntryRenderType render_type;
- gboolean hilite;
- gboolean enabled;
- gboolean boolean_value;