Home | History | Annotate | Download | only in libmenu

Lines Matching refs:items

40         1,          /* number of columns of items that will fit in window */
41 0, /* number of rows of items we have */
42 0, /* number of columns of items we have */
60 0, /* number of items attached to the menu */
61 NULL, /* items in the menu */
212 * Set the maximum number of rows and columns of items that may be displayed.
222 if (menu->items != NULL)
317 * item is actually selected in the items.
319 if (((opts & O_RADIO) == O_RADIO) && (menu->items != NULL) &&
320 (menu->items[0] != NULL)) {
323 if (menu->items[i]->selected == 1) {
327 menu->items[i]->selected = 0;
334 menu->items[0]->selected = 1;
358 * item is actually selected in the items.
360 if (((opts & O_RADIO) == O_RADIO) && (menu->items != NULL) &&
361 (menu->items[0] != NULL)) {
364 if (menu->items[i]->selected == 1) {
368 menu->items[i]->selected = 0;
374 menu->items[0]->selected = 1;
377 if ((menu->items != NULL) &&
396 if ((menu->items != NULL ) &&
445 new_menu(ITEM **items)
493 /* now attach the items, if any */
494 if (items != NULL) {
495 if(set_menu_items(the_menu, items) < 0) {
528 if (menu->items != NULL) {
529 /* disconnect the items from this menu */
531 menu->items[i]->parent = NULL;
547 if (menu->items == NULL)
568 set_menu_items(MENU *param_menu, ITEM **items)
577 /* count the new items and validate none are connected already */
578 while (items[new_count] != NULL) {
579 if ((items[new_count]->parent != NULL) &&
580 (items[new_count]->parent != menu))
582 if (items[new_count]->selected == 1)
588 * don't allow multiple selected items if menu is radio
595 /* if there were items connected then disconnect them. */
596 if (menu->items != NULL) {
598 menu->items[i]->parent = NULL;
599 menu->items[i]->index = -1;
605 /* connect the new items to the menu */
607 items[i]->parent = menu;
608 items[i]->index = i;
611 menu->items = items;
625 menu->items[0]->selected = 1;
634 * Return the pointer to the menu items array.
640 return _menui_default_menu.items;
642 return menu->items;
646 * Return the count of items connected to the menu
670 if (menu->items == NULL)
681 if (row == menu->items[i]->row) {
721 if (menu->items == NULL)
740 movx = maxmark + (menu->items[menu->cur_item]->col
747 menu->items[menu->cur_item]->row - menu->top_row, movx);