/src/lib/libmenu/ |
menu.h | 78 typedef struct __item ITEM; 86 int visible; /* set if item is visible */ 87 int selected; /* set if item has been selected */ 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 */ 92 int index; /* index number for this item, if attached */ 93 /* The following are the item's neighbours - makes menu 95 ITEM *left; 96 ITEM *right [all...] |
userptr.c | 39 /* the following is defined in item.c */ 40 extern ITEM _menui_default_item; 43 * Set the item user pointer data 46 set_item_userptr(ITEM *param_item, char *userptr) 48 ITEM *item = (param_item != NULL) ? param_item : &_menui_default_item; local in function:set_item_userptr 50 item->userptr = userptr; 56 * Return the item user pointer 59 item_userptr(ITEM *item) [all...] |
item.c | 1 /* $NetBSD: item.c,v 1.12 2012/03/21 05:33:27 matt Exp $ */ 30 __RCSID("$NetBSD: item.c,v 1.12 2012/03/21 05:33:27 matt Exp $"); 40 /* keep default item options for setting in new_item */ 41 ITEM _menui_default_item = { 42 {NULL, 0}, /* item name struct */ 43 {NULL, 0}, /* item description struct */ 45 0, /* is item visible? */ 46 0, /* is item selected? */ 47 0, /* row item is on */ 48 0, /* column item is on * 251 ITEM *item = (param_item != NULL) ? param_item : &_menui_default_item; local in function:set_item_value [all...] |
internals.h | 44 void _menui_draw_item(MENU *menu, int item); 46 int _menui_goto_item(MENU *menu, ITEM *item, int new_top_row);
|
menu.c | 39 16, /* number of item rows that will fit in window */ 54 A_UNDERLINE, /* unselectable menu item */ 58 0, /* widest item in the menu */ 62 0, /* current menu item */ 66 NULL, /* function called when current item changes */ 67 NULL, /* function called when current item changes */ 94 /* max item size may have changed - recalculate. */ 129 /* max item size may have changed - recalculate. */ 223 /* recalculate the item neighbours */ 317 * item is actually selected in the items [all...] |
driver.c | 49 ITEM *drv_new_item; 181 /* don't deselect selected item */ 195 /* turn on selected item */ 206 /* update item in menu */ 255 * show match and the current item has not changed. If 257 * display will not be updated due to the current item
|
internals.c | 45 * to calculate the widest item entry, then work out how many columns 47 * be. Once the layout is determined the neighbours of each item is 48 * calculated and the item structures updated. 70 /* fill in the row and column value of the item */ 86 * Calculate the neighbours for an item in menu. 92 ITEM *item; local in function:_menui_calc_neighbours 96 item = menu->items[item_no]; 100 item->up = item; [all...] |