#include <glib.h>
#include <glib-object.h>
#include "gntmenu.h"
Include dependency graph for gntmenuitem.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | ||||
| struct | _GntMenuItemPriv | |||
| struct | _GntMenuItem | |||
| struct | _GntMenuItemClass | |||
Defines | ||||
| #define | GNT_TYPE_MENU_ITEM (gnt_menuitem_get_gtype()) | |||
| #define | GNT_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GNT_TYPE_MENU_ITEM, GntMenuItem)) | |||
| #define | GNT_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GNT_TYPE_MENU_ITEM, GntMenuItemClass)) | |||
| #define | GNT_IS_MENU_ITEM(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GNT_TYPE_MENU_ITEM)) | |||
| #define | GNT_IS_MENU_ITEM_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), GNT_TYPE_MENU_ITEM)) | |||
| #define | GNT_MENU_ITEM_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), GNT_TYPE_MENU_ITEM, GntMenuItemClass)) | |||
| #define | GNT_MENU_ITEM_FLAGS(obj) (GNT_MENU_ITEM(obj)->priv.flags) | |||
| #define | GNT_MENU_ITEM_SET_FLAGS(obj, flags) (GNT_MENU_ITEM_FLAGS(obj) |= flags) | |||
| #define | GNT_MENU_ITEM_UNSET_FLAGS(obj, flags) (GNT_MENU_ITEM_FLAGS(obj) &= ~(flags)) | |||
Typedefs | ||||
| typedef _GntMenuItem | GntMenuItem | |||
| typedef _GntMenuItemPriv | GntMenuItemPriv | |||
| typedef _GntMenuItemClass | GntMenuItemClass | |||
| typedef void(*) | GntMenuItemCallback (GntMenuItem *item, gpointer data) | |||
Functions | ||||
| G_BEGIN_DECLS GType | gnt_menuitem_get_gtype (void) | |||
| ||||
| GntMenuItem * | gnt_menuitem_new (const char *text) | |||
| ||||
| void | gnt_menuitem_set_callback (GntMenuItem *item, GntMenuItemCallback callback, gpointer data) | |||
| ||||
| void | gnt_menuitem_set_submenu (GntMenuItem *item, GntMenu *menu) | |||
| ||||
| void | gnt_menuitem_set_trigger (GntMenuItem *item, char trigger) | |||
| Set a trigger key for the item. | ||||
| char | gnt_menuitem_get_trigger (GntMenuItem *item) | |||
| Get the trigger key for a menuitem. | ||||
Definition in file gntmenuitem.h.
| char gnt_menuitem_get_trigger | ( | GntMenuItem * | item | ) |
Get the trigger key for a menuitem.
| item | The menuitem |
| GntMenuItem* gnt_menuitem_new | ( | const char * | text | ) |
| text |
| void gnt_menuitem_set_callback | ( | GntMenuItem * | item, | |
| GntMenuItemCallback | callback, | |||
| gpointer | data | |||
| ) |
| item |
| callback | ||
| data |
| void gnt_menuitem_set_submenu | ( | GntMenuItem * | item, | |
| GntMenu * | menu | |||
| ) |
| item |
| menu |
| void gnt_menuitem_set_trigger | ( | GntMenuItem * | item, | |
| char | trigger | |||
| ) |
Set a trigger key for the item.
| item | The menuitem | |
| trigger | The key that will trigger the item when the parent manu is visible |