navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
menu.h
Go to the documentation of this file.
1 
20 #ifndef NAVIT_MENU_H
21 #define NAVIT_MENU_H
22 
23 enum menu_type {
27 };
28 
29 struct container;
30 struct menu;
31 struct callback;
32 
33 struct menu_methods {
34  struct menu_priv *(*add)(struct menu_priv *menu, struct menu_methods *meth, char *name, enum menu_type type, struct callback *cb);
35  void (*set_toggle)(struct menu_priv *menu, int active);
37  void (*popup)(struct menu_priv *menu);
38 };
39 
40 struct menu {
41  struct menu_priv *priv;
43 };
44 
45 /* prototypes */
46 struct menu *menu_add(struct menu *menu, char *name, enum menu_type type, struct callback *cb);
47 void menu_popup(struct menu *menu);
48 /* end of prototypes */
49 #endif
struct attr active
Definition: speech.c:82
struct menu_priv * priv
Definition: menu.h:41
struct menu_methods meth
Definition: menu.h:42
Definition: menu.h:33
void(* popup)(struct menu_priv *menu)
Definition: menu.h:37
Definition: callback.c:26
void(* set_toggle)(struct menu_priv *menu, int active)
Definition: menu.h:35
typedef int(WINAPI *FP_SetStretchBltMode)(HDC dc
char type[3]
Definition: garmin_img.c:130
char name[0]
Definition: street.c:559
Definition: menu.h:40
Definition: graphics_win32.h:46
int(* get_toggle)(struct menu_priv *menu)
Definition: menu.h:36