finch/libgnt/gntmenu.h

changeset 15991
1efb6bd8ba3f
parent 15886
13ed89c4f01d
child 17586
5beb8d987e84
child 18068
b6554e3c8224
equal deleted inserted replaced
15990:8f3cecb0bf47 15991:1efb6bd8ba3f
14 14
15 #define GNT_MENU_FLAGS(obj) (GNT_MENU(obj)->priv.flags) 15 #define GNT_MENU_FLAGS(obj) (GNT_MENU(obj)->priv.flags)
16 #define GNT_MENU_SET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) |= flags) 16 #define GNT_MENU_SET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) |= flags)
17 #define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags)) 17 #define GNT_MENU_UNSET_FLAGS(obj, flags) (GNT_MENU_FLAGS(obj) &= ~(flags))
18 18
19 typedef struct _GnMenu GntMenu; 19 typedef struct _GntMenu GntMenu;
20 typedef struct _GnMenuPriv GntMenuPriv; 20 typedef struct _GntMenuPriv GntMenuPriv;
21 typedef struct _GnMenuClass GntMenuClass; 21 typedef struct _GntMenuClass GntMenuClass;
22 22
23 #include "gntmenuitem.h" 23 #include "gntmenuitem.h"
24 24
25 /** 25 /**
26 * A toplevel-menu is displayed at the top of the screen, and it spans accross 26 * A toplevel-menu is displayed at the top of the screen, and it spans accross
31 { 31 {
32 GNT_MENU_TOPLEVEL = 1, /* Menu for a toplevel window */ 32 GNT_MENU_TOPLEVEL = 1, /* Menu for a toplevel window */
33 GNT_MENU_POPUP, /* A popup menu */ 33 GNT_MENU_POPUP, /* A popup menu */
34 } GntMenuType; 34 } GntMenuType;
35 35
36 struct _GnMenu 36 struct _GntMenu
37 { 37 {
38 GntTree parent; 38 GntTree parent;
39 GntMenuType type; 39 GntMenuType type;
40 40
41 GList *list; 41 GList *list;
45 * keystrokes can be passed to it. */ 45 * keystrokes can be passed to it. */
46 GntMenu *submenu; 46 GntMenu *submenu;
47 GntMenu *parentmenu; 47 GntMenu *parentmenu;
48 }; 48 };
49 49
50 struct _GnMenuClass 50 struct _GntMenuClass
51 { 51 {
52 GntTreeClass parent; 52 GntTreeClass parent;
53 53
54 void (*gnt_reserved1)(void); 54 void (*gnt_reserved1)(void);
55 void (*gnt_reserved2)(void); 55 void (*gnt_reserved2)(void);

mercurial