Lines Matching defs:menu
38 #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);
60 if (menu)
62 *menu = _nc_Default_Menu;
63 menu->status = 0;
64 menu->rows = menu->frows;
65 menu->cols = menu->fcols;
68 so we can derive always the SCREEN that this menu is
70 menu->userwin = SP_PARM->_stdscr;
71 menu->usersub = SP_PARM->_stdscr;
75 if (!_nc_Connect_Items(menu, items))
78 free(menu);
79 menu = (MENU *) 0;
86 if (!menu)
89 returnMenu(menu);
96 | Description : Creates a new menu connected to the item pointer
97 | array items and returns a pointer to the new menu.
98 | The new menu is initialized with the values from the
99 | default menu.
113 | Function : int free_menu(MENU *menu)
115 | Description : Disconnects menu from its associated item pointer
116 | array and frees the storage allocated for the menu.
119 | E_BAD_ARGUMENT - Invalid menu pointer passed
123 free_menu(MENU * menu)
125 T((T_CALLED("free_menu(%p)"), (void *)menu));
126 if (!menu)
129 if (menu->status & _POSTED)
132 if (menu->items)
133 _nc_Disconnect_Items(menu);
135 if ((menu->status & _MARK_ALLOCATED) && menu->mark)
136 free(menu->mark);
138 free(menu);