• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/ncurses/menu/

Lines Matching defs:menu

38 #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)
58 T((T_CALLED("set_menu_opts(%p,%d)"), (void *)menu, opts));
65 if (menu)
67 if (menu->status & _POSTED)
70 if ((opts & O_ROWMAJOR) != (menu->opt & O_ROWMAJOR))
73 if (menu->items && menu->items[0])
75 menu->toprow = 0;
76 menu->curitem = menu->items[0];
77 assert(menu->curitem);
78 set_menu_format(menu, menu->frows, menu->fcols);
82 menu->opt = opts;
88 if (((item = menu->items) != (ITEM **) 0))
94 _nc_Calculate_Item_Length_and_Width(menu);
104 | Function : int menu_opts_off(MENU *menu, Menu_Options opts)
106 | Description : Switch off the options for this menu. If the new settings
107 | end up in a change of the geometry of the menu, it
109 | the menu is already posted.
113 | E_POSTED - menu is already posted
116 menu_opts_off(MENU * menu, Menu_Options opts)
118 MENU *cmenu = menu; /* use a copy because set_menu_opts must detect
120 NULL menu itself to adjust its behavior */
122 T((T_CALLED("menu_opts_off(%p,%d)"), (void *)menu, opts));
131 returnCode(set_menu_opts(menu, opts));
137 | Function : int menu_opts_on(MENU *menu, Menu_Options opts)
139 | Description : Switch on the options for this menu. If the new settings
140 | end up in a change of the geometry of the menu, it
142 | the menu is already posted.
145 | E_BAD_ARGUMENT - invalid menu options
146 | E_POSTED - menu is already posted
149 menu_opts_on(MENU * menu, Menu_Options opts)
151 MENU *cmenu = menu; /* use a copy because set_menu_opts must detect
153 NULL menu itself to adjust its behavior */
155 T((T_CALLED("menu_opts_on(%p,%d)"), (void *)menu, opts));
164 returnCode(set_menu_opts(menu, opts));
170 | Function : Menu_Options menu_opts(const MENU *menu)
172 | Description : Return the options for this menu.
177 menu_opts(const MENU * menu)
179 T((T_CALLED("menu_opts(%p)"), (const void *)menu));
180 returnMenuOpts(ALL_MENU_OPTS & Normalize_Menu(menu)->opt);