Lines Matching refs:nitems
67 int nitems; /* total nitems (all groups * all items) */
100 /* nitems and fault checks */
102 m->nitems = 0;
104 CHECK_ARRAY(groups[i].nitems, groups[i].items);
105 m->nitems += (int)groups[i].nitems;
109 m->pritems = calloc(m->nitems, sizeof (struct privateitem));
116 for (j = 0; j < (int)groups[i].nitems; j++) {
151 for (i = 0; i < m->nitems; i++) {
186 for (i = 0; i < m->nitems; i++) {
235 if (*focusitem < 0 || *focusitem >= (int)groups[*focusgroup].nitems)
304 for (i = 0; i < m->nitems; i++) {
406 if (m->nitems > (int)m->menurows) {
411 if ((m->ypad + (int)m->menurows) < m->nitems)
415 100 * (m->ypad + m->menurows) / m->nitems);
428 (int)m->nitems : (int)m->menurows;
439 m->menurows = (m->nitems > 0) ? 1 : 0; /* widget_checksize() */
478 if (m->ypad > 0 && (m->nitems - m->ypad) < (int)m->menurows)
479 m->ypad = m->nitems - m->menurows;
524 m.pad = newpad(m.nitems, m.line);
527 for (i = 0; i < m.nitems; i++)
529 m.sel = getfirst_with_default(m.nitems, m.pritems, ngroups, groups,
592 next = getnext(m.nitems, m.pritems, -1);
606 next = getprev(m.pritems, m.nitems);
612 next = getnext(m.nitems, m.pritems, m.sel);
616 next = getfastnext(m.menurows, m.nitems, m.pritems, m.sel);
628 i < m.nitems &&
655 next = getnextshortcut(m.nitems, m.pritems, m.sel,
710 int cols, unsigned int menurows, unsigned int nitems,
715 BSDDIALOG_CHECKLIST /* unused */, nitems, items, 0};
717 CHECK_ARRAY(nitems, items); /* efficiency, avoid do_mixedlist() */
726 int cols, unsigned int menurows, unsigned int nitems,
731 BSDDIALOG_CHECKLIST /* unused */, nitems, items, 0};
733 CHECK_ARRAY(nitems, items); /* efficiency, avoid do_mixedlist() */
742 int cols, unsigned int menurows, unsigned int nitems,
747 BSDDIALOG_RADIOLIST /* unused */, nitems, items, 0};
749 CHECK_ARRAY(nitems, items); /* efficiency, avoid do_mixedlist() */