Lines Matching defs:menu
8 /* glut_menu2.c implements the little used GLUT menu calls in
46 GLUTmenu *menu = __glutGetMenuByNum(menunum);
51 assert(menu->id == menunum - 1);
52 XDestroySubwindows(__glutDisplay, menu->win);
53 XDestroyWindow(__glutDisplay, menu->win);
55 /* free all menu entries */
56 item = menu->list;
58 assert(item->menu == menu);
64 if (__glutCurrentMenu == menu) {
67 free(menu);
83 /* If changing a submenu trigger to a menu entry, we
85 item->menu->submenus--;
94 __glutWarning("Current menu has no %d item.", num);
98 glutChangeToSubMenu(int num, const char *label, int menu)
110 /* If changing a menu entry to as submenu trigger, we
112 item->menu->submenus++;
115 __glutSetMenuItem(item, label, /* base 0 */ menu - 1, True);
121 __glutWarning("Current menu has no %d item.", num);
135 /* If menu item is removed, the menu's pixwidth may need to
140 /* If this menu item's pixwidth is as wide as the menu's
141 pixwidth, removing this menu item will necessitate
142 shrinking the menu's pixwidth. */
144 /* Continue recalculating menu pixwidth, first skipping
158 /* Patch up menu's item list. */
172 __glutWarning("Current menu has no %d item.", num);
180 if (__glutCurrentWindow->menu[button] > 0) {
184 __glutCurrentWindow->menu[button] = 0;