Searched refs:menu (Results 1 - 25 of 105) sorted by relevance

12345

/freebsd-11-stable/contrib/ncurses/menu/
H A Dm_pad.c38 #include "menu.priv.h"
42 /* Macro to redraw menu if it is posted and changed */
43 #define Refresh_Menu(menu) \
44 if ( (menu) && ((menu)->status & _POSTED) )\
46 _nc_Draw_Menu( menu );\
47 _nc_Show_Menu( menu ); \
52 | Function : int set_menu_pad(MENU* menu, int pad)
62 set_menu_pad(MENU * menu, int pad) argument
64 bool do_refresh = (menu !
89 menu_pad(const MENU * menu) argument
[all...]
H A Dm_item_cur.c38 #include "menu.priv.h"
44 | Function : int set_current_item(MENU *menu, const ITEM *item)
51 set_current_item(MENU * menu, ITEM * item) argument
53 T((T_CALLED("set_current_item(%p,%p)"), (void *)menu, (void *)item));
55 if (menu && item && (item->imenu == menu))
57 if (menu->status & _IN_DRIVER)
60 assert(menu->curitem);
61 if (item != menu->curitem)
63 if (menu
92 current_item(const MENU * menu) argument
[all...]
H A Dm_scale.c38 #include "menu.priv.h"
44 | Function : int scale_menu(const MENU *menu)
47 | subwindow of menu.
50 | E_BAD_ARGUMENT - invalid menu pointer
51 | E_NOT_CONNECTED - no items are connected to menu
54 scale_menu(const MENU * menu, int *rows, int *cols) argument
57 (const void *)menu,
61 if (!menu)
64 if (menu->items && *(menu
[all...]
H A Dm_format.c38 #include "menu.priv.h"
46 | Function : int set_menu_format(MENU *menu, int rows, int cols)
49 | that may be displayed at one time on a menu. If the
50 | menu contains more items than can be displayed at
51 | once, the menu will be scrollable.
56 | E_POSTED - the menu is already posted
59 set_menu_format(MENU * menu, int rows, int cols) argument
63 T((T_CALLED("set_menu_format(%p,%d,%d)"), (void *)menu, rows, cols));
68 if (menu)
70 if (menu
123 menu_format(const MENU * menu, int *rows, int *cols) argument
[all...]
H A Dm_post.c38 #include "menu.priv.h"
44 | Function : void _nc_Post_Item(MENU *menu, ITEM *item)
52 _nc_Post_Item(const MENU * menu, const ITEM * item) argument
62 assert(menu->win);
64 getyx(menu->win, item_y, item_x);
67 - it is a onevalued menu and it is the current item
70 wattron(menu->win, (int)menu->back);
71 if (item->value || (item == menu->curitem))
73 if (menu
200 _nc_Draw_Menu(const MENU * menu) argument
270 post_menu(MENU * menu) argument
342 unpost_menu(MENU * menu) argument
[all...]
H A Dm_item_top.c38 #include "menu.priv.h"
44 | Function : int set_top_row(MENU *menu, int row)
46 | Description : Makes the specified row the top row in the menu
49 | E_BAD_ARGUMENT - not a menu pointer or invalid row
50 | E_NOT_CONNECTED - there are no items for the menu
53 set_top_row(MENU * menu, int row) argument
57 T((T_CALLED("set_top_row(%p,%d)"), (void *)menu, row));
59 if (menu)
61 if (menu->status & _IN_DRIVER)
63 if (menu
95 top_row(const MENU * menu) argument
[all...]
H A Dm_items.c38 #include "menu.priv.h"
44 | Function : int set_menu_items(MENU *menu, ITEM **items)
46 | Description : Sets the item pointer array connected to menu.
49 | E_POSTED - menu is already posted
51 | to another menu.
52 | E_BAD_ARGUMENT - An incorrect menu or item array was
56 set_menu_items(MENU * menu, ITEM ** items) argument
58 T((T_CALLED("set_menu_items(%p,%p)"), (void *)menu, (void *)items));
60 if (!menu || (items && !(*items)))
63 if (menu
88 menu_items(const MENU * menu) argument
104 item_count(const MENU * menu) argument
[all...]
H A Dm_new.c38 #include "menu.priv.h"
46 | Description : Creates a new menu connected to the item pointer
47 | array items and returns a pointer to the new menu.
48 | The new menu is initialized with the values from the
49 | default menu.
57 MENU *menu = typeCalloc(MENU, 1); local
60 if (menu)
62 *menu = _nc_Default_Menu;
63 menu->status = 0;
64 menu
123 free_menu(MENU * menu) argument
[all...]
H A Dm_sub.c38 #include "menu.priv.h"
44 | Function : int set_menu_sub(MENU *menu, WINDOW *win)
46 | Description : Sets the subwindow of the menu.
49 | E_POSTED - menu is already posted
52 set_menu_sub(MENU * menu, WINDOW *win) argument
54 T((T_CALLED("set_menu_sub(%p,%p)"), (void *)menu, (void *)win));
56 if (menu)
58 if (menu->status & _POSTED)
68 SCREEN *sp = _nc_screen_of(menu->usersub);
70 menu
92 menu_sub(const MENU * menu) argument
[all...]
H A Dm_win.c38 #include "menu.priv.h"
44 | Function : int set_menu_win(MENU *menu, WINDOW *win)
46 | Description : Sets the window of the menu.
49 | E_POSTED - menu is already posted
52 set_menu_win(MENU * menu, WINDOW *win) argument
54 T((T_CALLED("set_menu_win(%p,%p)"), (void *)menu, (void *)win));
56 if (menu)
58 if (menu->status & _POSTED)
68 SCREEN *sp = _nc_screen_of(menu->userwin);
70 menu
92 menu_win(const MENU * menu) argument
[all...]
H A Dm_item_vis.c35 * Tell if menu item is visible *
38 #include "menu.priv.h"
47 | subwindow of a posted menu.
55 MENU *menu; local
59 (menu = item->imenu) &&
60 (menu->status & _POSTED) &&
61 ((menu->toprow + menu->arows) > (item->y)) &&
62 (item->y >= menu->toprow))
H A Dm_userptr.c38 #include "menu.priv.h"
44 | Function : int set_menu_userptr(MENU *menu, void *userptr)
46 | Description : Set the pointer that is reserved in any menu to store
52 set_menu_userptr(MENU * menu, void *userptr) argument
54 T((T_CALLED("set_menu_userptr(%p,%p)"), (void *)menu, (void *)userptr));
55 Normalize_Menu(menu)->userptr = userptr;
61 | Function : void *menu_userptr(const MENU *menu)
63 | Description : Return the pointer that is reserved in any menu to
70 menu_userptr(const MENU * menu) argument
72 T((T_CALLED("menu_userptr(%p)"), (const void *)menu));
[all...]
H A Dm_attribs.c38 #include "menu.priv.h"
42 /* Macro to redraw menu if it is posted and changed */
43 #define Refresh_Menu(menu) \
44 if ( (menu) && ((menu)->status & _POSTED) )\
46 _nc_Draw_Menu( menu );\
47 _nc_Show_Menu( menu );\
52 NCURSES_IMPEXP int NCURSES_API set_menu_ ## name (MENU* menu, chtype attr) \
54 T((T_CALLED("set_menu_" #name "(%p,%s)"), (void *) menu, _traceattr(attr))); \
57 if (menu
[all...]
H A Dm_opts.c38 #include "menu.priv.h"
44 | Function : int set_menu_opts(MENU *menu, Menu_Options opts)
46 | Description : Set the options for this menu. If the new settings
47 | end up in a change of the geometry of the menu, it
49 | the menu is already posted.
52 | E_BAD_ARGUMENT - invalid menu options
53 | E_POSTED - menu is already posted
56 set_menu_opts(MENU * menu, Menu_Options opts) argument
58 T((T_CALLED("set_menu_opts(%p,%d)"), (void *)menu, opts));
65 if (menu)
116 menu_opts_off(MENU * menu, Menu_Options opts) argument
149 menu_opts_on(MENU * menu, Menu_Options opts) argument
[all...]
H A Dm_pattern.c38 #include "menu.priv.h"
44 | Function : char *menu_pattern(const MENU *menu)
54 menu_pattern(const MENU * menu) argument
58 T((T_CALLED("menu_pattern(%p)"), (const void *)menu));
59 returnPtr(menu ? (menu->pattern ? menu->pattern : empty) : 0);
64 | Function : int set_menu_pattern(MENU *menu, const char *p)
66 | Description : Set the match pattern for a menu and position to the
70 | E_BAD_ARGUMENT - invalid menu o
76 set_menu_pattern(MENU * menu, const char *p) argument
[all...]
H A Dm_global.c35 * Globally used internal routines and the default menu and item structures *
38 #include "menu.priv.h"
61 (WINDOW *)0, /* Window containing entire menu */
62 (WINDOW *)0, /* Portion of menu displayed */
66 0, /* Total Nr. of items in menu */
68 0, /* Top row of menu */
86 (MENU *)0, /* Pointer to parent menu */
102 | Function : static void ComputeMaximum_NameDesc_Lenths(MENU *menu)
105 | of the items connected to the menu
110 ComputeMaximum_NameDesc_Lengths(MENU * menu) argument
144 ResetConnectionInfo(MENU * menu, ITEM ** items) argument
236 _nc_Disconnect_Items(MENU * menu) argument
291 calculate_actual_width(MENU * menu, bool name) argument
340 _nc_Calculate_Item_Length_and_Width(MENU * menu) argument
379 _nc_Link_Items(MENU * menu) argument
506 _nc_Show_Menu(const MENU * menu) argument
546 _nc_New_TopRow_and_CurrentItem( MENU * menu, int new_toprow, ITEM * new_current_item) argument
[all...]
H A Dm_driver.c38 #include "menu.priv.h"
45 #define Remove_Character_From_Pattern(menu) \
46 (menu)->pattern[--((menu)->pindex)] = '\0'
49 #define Add_Character_To_Pattern(menu,ch) \
50 { (menu)->pattern[((menu)->pindex)++] = (char) (ch);\
51 (menu)->pattern[(menu)->pindex] = '\0'; }
95 | MENU *menu,
118 _nc_Match_Next_Character_In_Item_Name(MENU * menu, int ch, ITEM ** item) argument
212 menu_driver(MENU * menu, int c) argument
[all...]
H A Dm_cursor.c35 * Correctly position a menu's cursor *
38 #include "menu.priv.h"
49 | E_BAD_ARGUMENT - invalid menu
53 _nc_menu_cursor_pos(const MENU * menu, const ITEM * item, int *pY, int *pX) argument
55 if (!menu || !pX || !pY)
60 item = menu->curitem;
63 if (!(menu->status & _POSTED))
66 *pX = item->x * (menu->spc_cols + menu->itemlen);
67 *pY = (item->y - menu
83 pos_menu_cursor(const MENU * menu) argument
[all...]
H A Dm_hook.c38 #include "menu.priv.h"
44 NCURSES_IMPEXP int NCURSES_API set_ ## typ ## _ ## name (MENU *menu, Menu_Hook func )\
46 T((T_CALLED("set_" #typ "_" #name "(%p,%p)"), (void *) menu, func));\
47 (Normalize_Menu(menu) -> typ ## name = func );\
53 NCURSES_IMPEXP Menu_Hook NCURSES_API typ ## _ ## name ( const MENU *menu )\
55 T((T_CALLED(#typ "_" #name "(%p)"), (const void *) menu));\
56 returnMenuHook(Normalize_Menu(menu) -> typ ## name);\
61 | Function : int set_menu_init(MENU *menu, void (*f)(MENU *))
63 | Description : Set user-exit which is called when menu is posted
68 GEN_HOOK_SET_FUNCTION(menu, ini
[all...]
H A Dmenu.priv.h33 /* $Id: menu.priv.h,v 1.24 2012/03/10 23:43:41 tom Exp $ */
36 * Module menu.priv.h *
46 #include "menu.h"
57 /* Normalize menu to default if none was given */
58 #define Normalize_Menu( menu ) ((menu)=(menu)?(menu):&_nc_Default_Menu)
60 #define Get_Menu_Screen( menu ) (menu
[all...]
H A Dm_item_val.c38 #include "menu.priv.h"
48 | it is not connected to a single-valued menu.
49 | If the item is connected to a posted menu, the menu
53 | E_REQUEST_DENIED - not selectable or single valued menu
58 MENU *menu; local
63 menu = item->imenu;
66 (menu && (menu->opt & O_ONEVALUE)))
72 if (menu)
[all...]
H A Dm_item_new.c35 * Create and destroy menu items *
36 * Set and get marker string for menu *
39 #include "menu.priv.h"
160 | E_CONNECTED - item is still connected to a menu
180 | Function : int set_menu_mark( MENU *menu, const char *mark )
183 | item (single-valued menu) or the selected items
184 | (multi-valued menu).
188 | affect the geometry of the menu, which we don't allow
196 set_menu_mark(MENU * menu, const char *mark) argument
200 T((T_CALLED("set_menu_mark(%p,%s)"), (void *)menu, _nc_visbu
268 menu_mark(const MENU * menu) argument
[all...]
/freebsd-11-stable/contrib/dialog/samples/
H A Dmenubox9 --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 Dmenubox-utf811 --menu "Hi, this is a menu box. You can use this to \n\
14 on the screen, the menu will be scrolled. \n\
H A Dmenubox19 --menu "Hi, this is a menu box. You can use this to \n\
12 on the screen, the menu will be scrolled. \n\

Completed in 81 milliseconds

12345