Home | History | Annotate | Download | only in libmenu

Lines Matching refs:MENU

1 /*	$NetBSD: menu.h,v 1.13 2004/03/22 19:01:09 jdc Exp $	*/
55 #define MAX_COMMAND (KEY_MAX + 0x211) /* last menu driver request
59 /* Menu options */
77 typedef struct __menu MENU;
80 typedef void (*Menu_Hook) (MENU *);
88 int row; /* menu row this item is on */
89 int col; /* menu column this item is on */
91 MENU *parent; /* menu this item is bound to */
93 /* The following are the item's neighbours - makes menu
108 MENU_STR mark; /* menu mark string */
109 MENU_STR unmark; /* menu unmark string */
110 OPTIONS opts; /* options for the menu */
114 int posted; /* set if menu is posted */
115 attr_t fore; /* menu foreground */
116 attr_t back; /* menu background */
117 attr_t grey; /* greyed out (nonselectable) menu item */
120 int top_row; /* the row that is at the top of the menu */
122 int col_width; /* width of the menu columns - this is not always
125 ITEM **items; /* items associated with this menu */
128 Menu_Hook menu_init; /* call this when menu is posted */
129 Menu_Hook menu_term; /* call this when menu is unposted */
130 Menu_Hook item_init; /* call this when menu posted & after
132 Menu_Hook item_term; /* call this when menu unposted & just
134 WINDOW *menu_win; /* the menu window */
135 WINDOW *menu_subwin; /* the menu subwindow */
142 int menu_driver(MENU *, int);
143 int scale_menu(MENU *, int *, int *);
144 int set_top_row(MENU *, int);
145 int pos_menu_cursor(MENU *);
146 int top_row(MENU *);
148 int free_menu(MENU *);
149 char menu_back(MENU *);
150 char menu_fore(MENU *);
151 void menu_format(MENU *, int *, int *);
152 char menu_grey(MENU *);
153 Menu_Hook menu_init(MENU *);
154 char *menu_mark(MENU *);
155 OPTIONS menu_opts(MENU *);
156 int menu_opts_off(MENU *, OPTIONS);
157 int menu_opts_on(MENU *, OPTIONS);
158 int menu_pad(MENU *);
159 char *menu_pattern(MENU *);
160 WINDOW *menu_sub(MENU *);
161 Menu_Hook menu_term(MENU *);
162 char *menu_unmark (MENU *);
163 char *menu_userptr(MENU *);
164 WINDOW *menu_win(MENU *);
165 MENU *new_menu(ITEM **);
166 int post_menu(MENU *);
167 int set_menu_back(MENU *, attr_t);
168 int set_menu_fore(MENU *, attr_t);
169 int set_menu_format(MENU *, int, int);
170 int set_menu_grey(MENU *, attr_t);
171 int set_menu_init(MENU *, Menu_Hook);
172 int set_menu_items(MENU *, ITEM **);
173 int set_menu_mark(MENU *, char *);
174 int set_menu_opts(MENU *, OPTIONS);
175 int set_menu_pad(MENU *, int);
176 int set_menu_pattern(MENU *, char *);
177 int set_menu_sub(MENU *, WINDOW *);
178 int set_menu_term(MENU *, Menu_Hook);
179 int set_menu_unmark(MENU *, char *);
180 int set_menu_userptr(MENU *, char *);
181 int set_menu_win(MENU *, WINDOW *);
182 int unpost_menu(MENU *);
184 ITEM *current_item(MENU *);
186 int item_count(MENU *);
189 Menu_Hook item_init(MENU *);
194 int item_selected(MENU *, int **); /* return the item index of selected */
195 Menu_Hook item_term(MENU *);
199 ITEM **menu_items(MENU *);
201 int set_current_item(MENU *, ITEM *);
202 int set_item_init(MENU *, Menu_Hook);
204 int set_item_term(MENU *, Menu_Hook);