/src/lib/libmenu/ |
menu.h | 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 [all...] |
internals.h | 29 #include <menu.h> 44 void _menui_draw_item(MENU *menu, int item); 45 int _menui_draw_menu(MENU *menu); 46 int _menui_goto_item(MENU *menu, ITEM *item, int new_top_row); 47 int _menui_match_pattern(MENU *menu, int c, int direction , 49 int _menui_match_items(MENU *menu, int direction, int *item_matched) [all...] |
attributes.c | 32 #include <menu.h> 34 /* defined in menu.c - the default menu struct */ 35 extern MENU _menui_default_menu; 38 * Set the menu foreground attribute 41 set_menu_fore(MENU *menu, attr_t attr) 43 if (menu == NULL) 46 menu->fore = attr; 51 * Return the menu foreground attribut [all...] |
userptr.c | 32 #include <menu.h> 36 /* the following is defined in menu.c */ 37 extern MENU _menui_default_menu; 68 * Return the user pointer for the given menu 71 menu_userptr(MENU *menu) 73 if (menu == NULL) 76 return menu->userptr; 80 * Set the user pointer for the given menu 83 set_menu_userptr(MENU *param_menu, char *userptr 85 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_userptr [all...] |
menu.c | 1 /* $NetBSD: menu.c,v 1.18 2012/12/30 12:27:09 blymn Exp $ */ 30 __RCSID("$NetBSD: menu.c,v 1.18 2012/12/30 12:27:09 blymn Exp $"); 33 #include <menu.h> 38 MENU _menui_default_menu = { 47 O_ONEVALUE, /* menu options */ 51 0, /* is the menu posted? */ 52 A_REVERSE, /* menu foreground */ 53 A_NORMAL, /* menu background */ 54 A_UNDERLINE, /* unselectable menu item */ 57 0, /* top row of menu */ 81 MENU *menu = m; local in function:set_menu_mark 117 MENU *menu = m; local in function:set_menu_unmark 217 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_format 235 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_format 310 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_opts 351 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_opts_on 391 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:menu_opts_off 423 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_pattern 545 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:scale_menu 570 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_menu_items 664 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_top_row 719 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:top_row [all...] |
item.c | 32 #include <menu.h> 37 /* the following is defined in menu.c - it is the default menu struct */ 38 extern MENU _menui_default_menu; 50 NULL, /* parent menu item is bound to */ 51 -1, /* index number if item attached to a menu */ 97 * Set the application defined function called when the menu is posted or 101 set_item_init(MENU *menu, Menu_Hook func) 103 if (menu == NULL 360 MENU *menu = (param_menu != NULL) ? param_menu : &_menui_default_menu; local in function:set_current_item [all...] |
post.c | 32 #include <menu.h> 37 * Post the menu to the screen. Call any defined init routines and then 38 * draw the menu on the screen. 41 post_menu(MENU *menu) 45 if (menu == NULL) 47 if (menu->posted == 1) 49 if (menu->in_init == 1) 51 if (menu->items == NULL) 53 if (*menu->items == NULL [all...] |
internals.c | 32 #include <menu.h> 40 _menui_calc_neighbours(MENU *menu, int item_no); 41 static void _menui_redraw_menu(MENU *menu, int old_top_row, int old_cur_item); 44 * Link all the menu items together to speed up navigation. We need 51 _menui_stitch_items(MENU *menu) 55 row_major = ((menu->opts & O_ROWMAJOR) == O_ROWMAJOR); 57 if (menu->posted == 1 [all...] |
driver.c | 32 #include <menu.h> 38 * The guts of the menu library. This function processes the character 46 menu_driver(MENU *menu, int c) 53 if (menu == NULL) 55 if (menu->posted == 0) 57 if (menu->items == NULL) 59 if (*menu->items == NULL) 61 if (menu->in_init == 1) 65 if (menu->items[menu->cur_item] == NULL [all...] |
/src/usr.bin/menuc/ |
parse.y | 55 %token <i_value> X Y W H NO BOX SUB HELP MENU NEXT EXIT ACTION ENDWIN OPTION 106 menu_def : MENU NAME 109 yyerror ("Menu %s defined twice", $2); 152 | NO SUB MENU { cur_menu->info->mopt &= ~MC_SUBMENU; } 153 | SUB MENU { cur_menu->info->mopt |= MC_SUBMENU; } 184 elem : NEXT MENU NAME 186 if (cur_optn->menu != OPT_NOMENU) 187 yyerror ("Double sub/next menu definition"); 189 cur_optn->menu = t->menu_no; 192 | SUB MENU NAM [all...] |
scan.l | 36 /* scan.l: scanner description for menu compiler. */ 79 menu { return MENU; }
|
/src/sys/external/gpl2/dts/dist/arch/arm/boot/dts/ |
ste-ux500-samsung-skomer.dts | 98 button-menu { 100 label = "MENU"; 555 "GPIO204_AF23", /* MENU */
|
am335x-evm.dts | 87 linux,keymap = <0x0000008b /* MENU */
|
/src/sys/arch/hpcmips/stand/pbsdboot/ |
pbsdboot.rc | 106 // Menu
109 IDR_MAINFRAME MENU PRELOAD DISCARDABLE
|
/src/sys/arch/x68k/stand/boot_ufs/ |
boot.S | 215 | BOOT MENU Ver.2.22: 221 | no information in d2 -- probably from BOOT MENU
|
/src/sys/external/isc/libsodium/dist/m4/ |
libtool.m4 | 8084 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
|