Data Structures | |
struct | _menu_options |
struct | _menu |
struct | _menuitem |
struct | _mbmemu |
Defines | |
#define | MBMENU_FG_COL (1<<1) |
#define | MBMENU_BG_COL (1<<2) |
#define | MBMENU_HL_COL (1<<3) |
#define | MBMENU_BD_COL (1<<4) |
#define | MBMENU_FONT (1<<5) |
#define | MBMENU_BD_SZ (1<<6) |
#define | MBMENU_ICON_SZ (1<<7) |
#define | MBMENU_ICON_FN (1<<8) |
#define | MBMENU_ICON_FOLDER_FN (1<<9) |
#define | MBMENU_TRANS (1<<10) |
#define | MBMENU_BG_FN (1<<11) |
#define | MBMENU_BEVEL (1<<12) |
Typedefs | |
typedef _menu | MBMenuMenu |
Opaque type for a menu. | |
typedef _menuitem | MBMenuItem |
Opaque type for a menu item. | |
typedef _mbmemu | MBMenu |
Opaque type for a 'top level' menu. | |
typedef void(* | MBMenuActivateCB )(MBMenuItem *item) |
Callback for an activated menu item. | |
Enumerations | |
enum | MBMenuColorElement |
enum | MBMenuItemAddFlags |
enum | |
Functions | |
MBMenu * | mb_menu_new (Display *dpy, int screen) |
Creates a new toplevel mbmenu instance. | |
Bool | mb_menu_set_font (MBMenu *mbmenu, char *font_desc) |
Sets the font used by the referenced menu. | |
Bool | mb_menu_set_default_icons (MBMenu *mbmenu, char *folder, char *app) |
Sets the default icons to be uses when not supplied by an individual item. | |
void | mb_menu_set_icon_size (MBMenu *mbmenu, int size) |
Sets the icon dimention in pixels used by the referenced menu instance. | |
void | mb_menu_set_col (MBMenu *mbmenu, MBMenuColorElement element, char *col_spec) |
Sets the font used by the referenced menu instance. | |
void | mb_menu_set_trans (MBMenu *mbmenu, int trans) |
Sets the menu's transparency level. | |
MBMenuMenu * | mb_menu_get_root_menu (MBMenu *mbmenu) |
Gets the top level MBMenu menu. | |
Bool | mb_menu_get_root_menu_size (MBMenu *mbmenu, int *width, int *height) |
Gets the top level MBMenu menu size. | |
void | mb_menu_add_seperator_to_menu (MBMenu *mbmenu, MBMenuMenu *menu, int flags) |
Adds a seperator to a menu. | |
MBMenuMenu * | mb_menu_add_path (MBMenu *mbmenu, char *path, char *icon_path, int flags) |
Adds single or multiple new menus to an mbmenu instance. | |
void | mb_menu_remove_menu (MBMenu *mbmenu, MBMenuMenu *menu) |
Removes a menu and all of its sub menus. | |
void | mb_menu_free (MBMenu *mbmenu) |
Free's a mbmenu toplevel instance. | |
Bool | mb_menu_is_active (MBMenu *mbmenu) |
Checks to see if specified menu intance is active ( ie popped up ). | |
void | mb_menu_activate (MBMenu *mbmenu, int x, int y) |
Checks to see if specified menu intance is active ( ie popped up ). | |
void | mb_menu_deactivate (MBMenu *mbmenu) |
Deactivates ( hides ) a mbmenu instance. | |
void | mb_menu_handle_xevent (MBMenu *mbmenu, XEvent *xevent) |
Processes an X Event. | |
MBMenuItem * | mb_menu_new_item (MBMenu *mbmenu, MBMenuMenu *menu, char *title, MBMenuActivateCB activate_callback, void *user_data, MBMenuItemAddFlags flags) |
Adds a new menu item to a menu. | |
void | mb_menu_item_icon_set (MBMenu *mbmenu, MBMenuItem *item, MBPixbufImage *img) |
Adds a new menu item to a menu. | |
void * | mb_menu_item_get_user_data (MBMenuItem *item) |
Gets any user data attatched to a menu item. | |
void | mb_menu_item_remove (MBMenu *mbmenu, MBMenuMenu *menu, MBMenuItem *item) |
Removes a menu item. | |
void | mb_menu_dump (MBMenu *mbmenu, MBMenuMenu *menu) |
Dumps an mbmenu menu structure to stdout. |
NOTE: Its planned that one day in the future this will be superceded by matchbox-tk.
|
Used to set various menu elements colours |
|
Used to specify how an item is added to a menu |
|
Checks to see if specified menu intance is active ( ie popped up ).
|
|
Adds single or multiple new menus to an mbmenu instance.
|
|
Adds a seperator to a menu.
|
|
Deactivates ( hides ) a mbmenu instance.
|
|
Dumps an mbmenu menu structure to stdout.
|
|
Free's a mbmenu toplevel instance.
|
|
Gets the top level MBMenu menu. This menu is automatically created on initialisation
|
|
Gets the top level MBMenu menu size.
|
|
Processes an X Event.
|
|
Checks to see if specified menu intance is active ( ie popped up ).
|
|
Gets any user data attatched to a menu item.
|
|
Adds a new menu item to a menu.
|
|
Removes a menu item.
|
|
Creates a new toplevel mbmenu instance.
|
|
Adds a new menu item to a menu.
|
|
Removes a menu and all of its sub menus.
|
|
Sets the font used by the referenced menu instance.
|
|
Sets the default icons to be uses when not supplied by an individual item.
|
|
Sets the font used by the referenced menu.
|
|
Sets the icon dimention in pixels used by the referenced menu instance. If set to zero, icons will not be used by the menu.
|
|
Sets the menu's transparency level. The Transparency is a HACK!, use at your own risk, its unsupported.
|