• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.9.5/ncurses-42/ncurses/menu/

Lines Matching refs:item

35 * Globally used internal routines and the default menu and item structures *
55 1, /* length of one item */
67 (ITEM *)0, /* Current item */
139 | the item array that indicates a connection
146 ITEM **item;
149 for (item = items; *item; item++)
151 (*item)->index = 0;
152 (*item)->imenu = (MENU *) 0;
166 | Description : Connect the items in the item array to the menu.
176 ITEM **item;
181 for (item = items; *item; item++)
183 if ((*item)->imenu)
185 /* if a item is already connected, reject connection */
189 if (!(*item))
190 /* we reached the end, so there was no connected item */
192 for (item = items; *item; item++)
196 (*item)->value = FALSE;
198 (*item)->index = ItemCount++;
199 (*item)->imenu = menu;
231 | Description : Disconnect the menus item array from the menu
244 | Function : int _nc_Calculate_Text_Width(const TEXT * item)
251 _nc_Calculate_Text_Width(const TEXT * item /*FIXME: limit length */ )
254 int result = item->length;
256 T((T_CALLED("_nc_menu_text_width(%p)"), item));
257 if (result != 0 && item->str != 0)
259 int count = mbstowcs(0, item->str, 0);
268 mbstowcs(temp, item->str, (unsigned)count);
282 return item->length;
334 | Description : Calculate the length of an item and the width of the
362 T(("_nc_CalculateItem_Length_and_Width columns %d, item %d, width %d",
372 | Description : Statically calculate for every item its four neighbors.
384 ITEM *item;
399 item = menu->items[i];
403 item->left = (col) ?
412 item->right = ((col < (Number_Of_Columns - 1)) &&
422 item->up = (row) ? menu->items[i - Number_Of_Columns] :
428 item->down = ((i + Number_Of_Columns) < Number_Of_Items)
434 item->x = col;
435 item->y = row;
449 item = menu->items[i = (col * Number_Of_Rows + row)];
453 item->left = (col) ?
460 item->right = ((i + Number_Of_Rows) < Number_Of_Items)
467 item->up = (row) ?
475 item->down = (row < (Number_Of_Rows - 1))
485 item->x = col;
486 item->y = row;
540 | top row and the given item becomes the new current
541 | item.