Lines Matching refs:item

97 |                           ITEM **item)
100 | at an item with three different classes of characters:
102 | the current pattern and the next item matching
104 | - NUL; the pattern stays as it is and the next item
107 | item matching the pattern is searched
109 | The item parameter contains on call a pointer to
110 | the item where the search starts. On return - if
112 | matching item.
114 | Return Values : E_OK - an item matching the pattern was found
119 (MENU * menu, int ch, ITEM ** item)
125 (void *)menu, ch, (void *)item));
127 assert(menu && item && *item);
128 idx = (*item)->index;
138 /* we artificially position one item back, because in the do...while
139 loop we start with the next item. This means, that with a new
140 pattern search we always start the scan with the actual item. If
142 one after or before the actual item. */
173 if (!((idx == (*item)->index) && passed))
175 *item = menu->items[idx];
178 /* This point is reached, if we fully cycled through the item list
179 and the only match we found is the starting item. With a NEXT_PATTERN
183 item we will find it in the first attempt (passed==FALSE) and we
184 will never cycle through the whole item array.
215 if (!item->dir)\
218 item = item->dir
221 ITEM *item;
234 item = menu->curitem;
237 assert(item);
272 if (my_top_row == 0 || !(item->up))
277 item = item->up;
283 if ((my_top_row + menu->arows >= menu->rows) || !(item->down))
293 item = item->down;
307 while (rdiff-- > 0 && item != 0 && item->down != 0)
308 item = item->down;
320 while (rdiff-- > 0 && item != 0 && item->up != 0)
321 item = item->up;
327 item = menu->items[0];
332 item = menu->items[menu->nitems - 1];
337 if ((item->index + 1) >= menu->nitems)
342 item = menu->items[0];
345 item = menu->items[item->index + 1];
350 if (item->index <= 0)
355 item = menu->items[menu->nitems - 1];
358 item = menu->items[item->index - 1];
401 result = _nc_Match_Next_Character_In_Item_Name(menu, 0, &item);
404 if ((item->index + 1) < menu->nitems)
405 item = menu->items[item->index + 1];
411 item = menu->items[0];
420 result = _nc_Match_Next_Character_In_Item_Name(menu, BS, &item);
423 if (item->index)
424 item = menu->items[item->index - 1];
430 item = menu->items[menu->nitems - 1];
444 result = _nc_Match_Next_Character_In_Item_Name(menu, c, &item);
490 { /* Inside the area we try to find the hit item */
507 item = menu->items[i];
514 { /* We found an item, now we can handle the click.
516 * to the clicked item. A double click toggles
517 * the item.
523 item);
540 if (item == 0)
546 /* Adjust the top row if it turns out that the current item unfortunately
548 if (item->y < my_top_row)
549 my_top_row = item->y;
550 else if (item->y >= (my_top_row + menu->arows))
551 my_top_row = item->y - menu->arows + 1;
553 _nc_New_TopRow_and_CurrentItem(menu, my_top_row, item);