Lines Matching defs:menurows

66 	unsigned int menurows;    /* real menurows after menu_size_position() */
248 getfastnext(int menurows, int npritems, struct privateitem *pritems, int abs)
253 i = menurows;
258 } while (abs != a && abs < start + menurows && i > 0);
264 getfastprev(int menurows, struct privateitem *pritems, int abs)
269 i = menurows;
274 } while (abs != a && abs > start - menurows && i > 0);
406 if (m->nitems > (int)m->menurows) {
411 if ((m->ypad + (int)m->menurows) < m->nitems)
415 100 * (m->ypad + m->menurows) / m->nitems);
427 hmenu = (int)(m->menurows == BSDDIALOG_AUTOSIZE) ?
428 (int)m->nitems : (int)m->menurows;
437 /* avoid menurows overflow and menurows becomes "at most menurows" */
439 m->menurows = (m->nitems > 0) ? 1 : 0; /* widget_checksize() */
441 m->menurows = MIN(d->h - BORDERS - htext - HBUTTONS, hmenu) - 2;
448 2 /* border box */ + MIN(m->menurows, 1), 0) != 0)
463 m->menurows = m->apimenurows;
470 TEXTPAD(d, 2/*bmenu*/ + m->menurows + HBUTTONS);
475 if ((int)(m->ypad + m->menurows) <= m->sel)
476 m->ypad = m->sel - m->menurows + 1;
478 if (m->ypad > 0 && (m->nitems - m->ypad) < (int)m->menurows)
479 m->ypad = m->nitems - m->menurows;
481 update_box(d->conf, m->box, d->y + d->h - 5 - m->menurows, d->x + 2,
482 m->menurows+2, d->w-4, LOWERED);
486 m->ys = d->y + d->h - 5 - m->menurows + 1;
503 unsigned int menurows, enum menumode mode, unsigned int ngroups,
534 m.apimenurows = menurows;
602 next = getfastprev(m.menurows, m.pritems, m.sel);
616 next = getfastnext(m.menurows, m.nitems, m.pritems, m.sel);
666 if ((int)(m.ypad + m.menurows) <= m.sel)
667 m.ypad = m.sel - m.menurows + 1;
697 int cols, unsigned int menurows, unsigned int ngroups,
702 retval = do_mixedlist(conf, text, rows, cols, menurows, MIXEDLISTMODE,
710 int cols, unsigned int menurows, unsigned int nitems,
718 retval = do_mixedlist(conf, text, rows, cols, menurows, CHECKLISTMODE,
726 int cols, unsigned int menurows, unsigned int nitems,
734 retval = do_mixedlist(conf, text, rows, cols, menurows, MENUMODE, 1,
742 int cols, unsigned int menurows, unsigned int nitems,
750 retval = do_mixedlist(conf, text, rows, cols, menurows, RADIOLISTMODE,