/freebsd-current/contrib/ncurses/menu/ |
H A D | m_pad.c | 39 #include "menu.priv.h" 43 /* Macro to redraw menu if it is posted and changed */ 44 #define Refresh_Menu(menu) \ 45 if ( (menu) && ((menu)->status & _POSTED) )\ 47 _nc_Draw_Menu( menu );\ 48 _nc_Show_Menu( menu ); \ 53 | Function : int set_menu_pad(MENU* menu, int pad) 63 set_menu_pad(MENU *menu, int pad) argument 65 bool do_refresh = (menu ! 90 menu_pad(const MENU *menu) argument [all...] |
H A D | m_item_cur.c | 39 #include "menu.priv.h" 45 | Function : int set_current_item(MENU *menu, const ITEM *item) 52 set_current_item(MENU *menu, ITEM *item) argument 54 T((T_CALLED("set_current_item(%p,%p)"), (void *)menu, (void *)item)); 56 if (menu && item && (item->imenu == menu)) 58 if (menu->status & _IN_DRIVER) 61 assert(menu->curitem); 62 if (item != menu->curitem) 64 if (menu 93 current_item(const MENU *menu) argument [all...] |
H A D | m_scale.c | 39 #include "menu.priv.h" 45 | Function : int scale_menu(const MENU *menu) 48 | subwindow of menu. 51 | E_BAD_ARGUMENT - invalid menu pointer 52 | E_NOT_CONNECTED - no items are connected to menu 55 scale_menu(const MENU *menu, int *rows, int *cols) argument 58 (const void *)menu, 62 if (!menu) 65 if (menu->items && *(menu [all...] |
H A D | m_format.c | 39 #include "menu.priv.h" 47 | Function : int set_menu_format(MENU *menu, int rows, int cols) 50 | that may be displayed at one time on a menu. If the 51 | menu contains more items than can be displayed at 52 | once, the menu will be scrollable. 57 | E_POSTED - the menu is already posted 60 set_menu_format(MENU *menu, int rows, int cols) argument 64 T((T_CALLED("set_menu_format(%p,%d,%d)"), (void *)menu, rows, cols)); 69 if (menu) 71 if (menu 124 menu_format(const MENU *menu, int *rows, int *cols) argument [all...] |
H A D | m_new.c | 39 #include "menu.priv.h" 47 | Description : Creates a new menu connected to the item pointer 48 | array items and returns a pointer to the new menu. 49 | The new menu is initialized with the values from the 50 | default menu. 58 MENU *menu = typeCalloc(MENU, 1); local 61 if (menu) 63 T((T_CREATE("menu %p"), (void *)menu)); 64 *menu 125 free_menu(MENU *menu) argument [all...] |
H A D | m_post.c | 39 #include "menu.priv.h" 45 | Function : void _nc_Post_Item(MENU *menu, ITEM *item) 53 _nc_Post_Item(const MENU *menu, const ITEM *item) argument 63 assert(menu->win); 65 getyx(menu->win, item_y, item_x); 68 - it is a onevalued menu and it is the current item 71 wattron(menu->win, (int)menu->back); 72 if (item->value || (item == menu->curitem)) 74 if (menu 201 _nc_Draw_Menu(const MENU *menu) argument 271 post_menu(MENU *menu) argument 343 unpost_menu(MENU *menu) argument [all...] |
H A D | m_item_top.c | 39 #include "menu.priv.h" 45 | Function : int set_top_row(MENU *menu, int row) 47 | Description : Makes the specified row the top row in the menu 50 | E_BAD_ARGUMENT - not a menu pointer or invalid row 51 | E_NOT_CONNECTED - there are no items for the menu 54 set_top_row(MENU *menu, int row) argument 58 T((T_CALLED("set_top_row(%p,%d)"), (void *)menu, row)); 60 if (menu) 62 if (menu->status & _IN_DRIVER) 64 if (menu 96 top_row(const MENU *menu) argument [all...] |
H A D | m_items.c | 39 #include "menu.priv.h" 45 | Function : int set_menu_items(MENU *menu, ITEM **items) 47 | Description : Sets the item pointer array connected to menu. 50 | E_POSTED - menu is already posted 52 | to another menu. 53 | E_BAD_ARGUMENT - An incorrect menu or item array was 57 set_menu_items(MENU *menu, ITEM **items) argument 59 T((T_CALLED("set_menu_items(%p,%p)"), (void *)menu, (void *)items)); 61 if (!menu || (items && !(*items))) 64 if (menu 89 menu_items(const MENU *menu) argument 105 item_count(const MENU *menu) argument [all...] |
H A D | m_sub.c | 39 #include "menu.priv.h" 45 | Function : int set_menu_sub(MENU *menu, WINDOW *win) 47 | Description : Sets the subwindow of the menu. 50 | E_POSTED - menu is already posted 53 set_menu_sub(MENU *menu, WINDOW *win) argument 55 T((T_CALLED("set_menu_sub(%p,%p)"), (void *)menu, (void *)win)); 57 if (menu) 59 if (menu->status & _POSTED) 69 SCREEN *sp = _nc_screen_of(menu->usersub); 71 menu 93 menu_sub(const MENU *menu) argument [all...] |
H A D | m_win.c | 39 #include "menu.priv.h" 45 | Function : int set_menu_win(MENU *menu, WINDOW *win) 47 | Description : Sets the window of the menu. 50 | E_POSTED - menu is already posted 53 set_menu_win(MENU *menu, WINDOW *win) argument 55 T((T_CALLED("set_menu_win(%p,%p)"), (void *)menu, (void *)win)); 57 if (menu) 59 if (menu->status & _POSTED) 69 SCREEN *sp = _nc_screen_of(menu->userwin); 71 menu 93 menu_win(const MENU *menu) argument [all...] |
H A D | m_userptr.c | 39 #include "menu.priv.h" 45 | Function : int set_menu_userptr(MENU *menu, void *userptr) 47 | Description : Set the pointer that is reserved in any menu to store 53 set_menu_userptr(MENU *menu, void *userptr) argument 55 T((T_CALLED("set_menu_userptr(%p,%p)"), (void *)menu, (void *)userptr)); 56 Normalize_Menu(menu)->userptr = userptr; 62 | Function : void *menu_userptr(const MENU *menu) 64 | Description : Return the pointer that is reserved in any menu to 71 menu_userptr(const MENU *menu) argument 73 T((T_CALLED("menu_userptr(%p)"), (const void *)menu)); [all...] |
H A D | m_item_vis.c | 36 * Tell if menu item is visible * 39 #include "menu.priv.h" 48 | subwindow of a posted menu. 56 MENU *menu; local 60 (menu = item->imenu) && 61 (menu->status & _POSTED) && 62 ((menu->toprow + menu->arows) > (item->y)) && 63 (item->y >= menu->toprow))
|
H A D | m_attribs.c | 39 #include "menu.priv.h" 43 /* Macro to redraw menu if it is posted and changed */ 44 #define Refresh_Menu(menu) \ 45 if ( (menu) && ((menu)->status & _POSTED) )\ 47 _nc_Draw_Menu( menu );\ 48 _nc_Show_Menu( menu );\ 53 MENU_EXPORT(int) NCURSES_API set_menu_ ## name (MENU* menu, chtype attr) \ 55 T((T_CALLED("set_menu_" #name "(%p,%s)"), (void *) menu, _traceattr(attr))); \ 58 if (menu [all...] |
H A D | m_opts.c | 39 #include "menu.priv.h" 45 | Function : int set_menu_opts(MENU *menu, Menu_Options opts) 47 | Description : Set the options for this menu. If the new settings 48 | end up in a change of the geometry of the menu, it 50 | the menu is already posted. 53 | E_BAD_ARGUMENT - invalid menu options 54 | E_POSTED - menu is already posted 57 set_menu_opts(MENU *menu, Menu_Options opts) argument 59 T((T_CALLED("set_menu_opts(%p,%d)"), (void *)menu, opts)); 66 if (menu) 117 menu_opts_off(MENU *menu, Menu_Options opts) argument 150 menu_opts_on(MENU *menu, Menu_Options opts) argument [all...] |
H A D | m_pattern.c | 39 #include "menu.priv.h" 45 | Function : char *menu_pattern(const MENU *menu) 55 menu_pattern(const MENU *menu) argument 59 T((T_CALLED("menu_pattern(%p)"), (const void *)menu)); 60 returnPtr(menu ? (menu->pattern ? menu->pattern : empty) : 0); 65 | Function : int set_menu_pattern(MENU *menu, const char *p) 67 | Description : Set the match pattern for a menu and position to the 71 | E_BAD_ARGUMENT - invalid menu o 77 set_menu_pattern(MENU *menu, const char *p) argument [all...] |
H A D | m_global.c | 36 * Globally used internal routines and the default menu and item structures * 39 #include "menu.priv.h" 62 (WINDOW *)0, /* Window containing entire menu */ 63 (WINDOW *)0, /* Portion of menu displayed */ 67 0, /* Total Nr. of items in menu */ 69 0, /* Top row of menu */ 87 (MENU *)0, /* Pointer to parent menu */ 103 | Function : static void ComputeMaximum_NameDesc_Lenths(MENU *menu) 106 | of the items connected to the menu 111 ComputeMaximum_NameDesc_Lengths(MENU *menu) argument 145 ResetConnectionInfo(MENU *menu, ITEM **items) argument 237 _nc_Disconnect_Items(MENU *menu) argument 292 calculate_actual_width(MENU *menu, bool name) argument 341 _nc_Calculate_Item_Length_and_Width(MENU *menu) argument 380 _nc_Link_Items(MENU *menu) argument 507 _nc_Show_Menu(const MENU *menu) argument 547 _nc_New_TopRow_and_CurrentItem( MENU *menu, int new_toprow, ITEM *new_current_item) argument [all...] |
H A D | m_driver.c | 39 #include "menu.priv.h" 46 #define Remove_Character_From_Pattern(menu) \ 47 (menu)->pattern[--((menu)->pindex)] = '\0' 50 #define Add_Character_To_Pattern(menu,ch) \ 51 { (menu)->pattern[((menu)->pindex)++] = (char) (ch);\ 52 (menu)->pattern[(menu)->pindex] = '\0'; } 96 | MENU *menu, 119 _nc_Match_Next_Character_In_Item_Name(MENU *menu, int ch, ITEM **item) argument 213 menu_driver(MENU *menu, int c) argument [all...] |
H A D | m_cursor.c | 36 * Correctly position a menu's cursor * 39 #include "menu.priv.h" 50 | E_BAD_ARGUMENT - invalid menu 54 _nc_menu_cursor_pos(const MENU *menu, const ITEM *item, int *pY, int *pX) argument 56 if (!menu || !pX || !pY) 61 item = menu->curitem; 64 if (!(menu->status & _POSTED)) 67 *pX = item->x * (menu->spc_cols + menu->itemlen); 68 *pY = (item->y - menu 84 pos_menu_cursor(const MENU *menu) argument [all...] |
H A D | m_hook.c | 39 #include "menu.priv.h" 45 MENU_EXPORT(int) NCURSES_API set_ ## typ ## _ ## name (MENU *menu, Menu_Hook func )\ 48 T((T_CALLED("set_" #typ "_" #name "(%p,%s)"), (void *) menu, TR_FUNC_ARG(0, func)));\ 49 (Normalize_Menu(menu) -> typ ## name = func );\ 55 MENU_EXPORT(Menu_Hook) NCURSES_API typ ## _ ## name ( const MENU *menu )\ 57 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) menu));\ 58 returnMenuHook(Normalize_Menu(menu) -> typ ## name);\ 63 | Function : int set_menu_init(MENU *menu, void (*f)(MENU *)) 65 | Description : Set user-exit which is called when menu is posted 70 GEN_HOOK_SET_FUNCTION(menu, ini [all...] |
H A D | menu.priv.h | 34 /* $Id: menu.priv.h,v 1.29 2020/05/24 01:40:20 anonymous.maarten Exp $ */ 37 * Module menu.priv.h * 50 #include "menu.h" 61 /* Normalize menu to default if none was given */ 62 #define Normalize_Menu( menu ) ((menu)=(menu)?(menu):&_nc_Default_Menu) 64 #define Get_Menu_Screen( menu ) (menu [all...] |
H A D | m_item_val.c | 39 #include "menu.priv.h" 49 | it is not connected to a single-valued menu. 50 | If the item is connected to a posted menu, the menu 54 | E_REQUEST_DENIED - not selectable or single valued menu 59 MENU *menu; local 64 menu = item->imenu; 67 (menu && (menu->opt & O_ONEVALUE))) 73 if (menu) [all...] |
H A D | m_item_new.c | 36 * Create and destroy menu items * 37 * Set and get marker string for menu * 40 #include "menu.priv.h" 163 | E_CONNECTED - item is still connected to a menu 183 | Function : int set_menu_mark( MENU *menu, const char *mark ) 186 | item (single-valued menu) or the selected items 187 | (multi-valued menu). 191 | affect the geometry of the menu, which we don't allow 199 set_menu_mark(MENU *menu, const char *mark) argument 203 T((T_CALLED("set_menu_mark(%p,%s)"), (void *)menu, _nc_visbu 271 menu_mark(const MENU *menu) argument [all...] |
/freebsd-current/contrib/dialog/samples/ |
H A D | menubox | 9 --menu "Hi, this is a menu box. You can use this to \n\ 12 on the screen, the menu will be scrolled. \n\
|
H A D | menubox5 | 9 --menu "Hi, this is a menu box. You can use this to \n\ 12 on the screen, the menu will be scrolled. \n\
|
H A D | menubox6 | 10 --menu "Hi, this is a \Zumenu\Zn box. You can use this to \n\ 13 on the screen, the menu will be scrolled. \n\
|