Lines Matching defs:scroll
213 int choice, scroll, curr, max;
215 choice = scroll = curr = max = 0;
216 return dmenuOpen(menu, &choice, &scroll, &curr, &max, buttons);
303 /* Set the default item for a menu by index and scroll to it. */
305 dmenuSetDefaultIndex(DMenu *menu, int *choice, int *scroll, int *curr, int *max)
317 *scroll = MIN(nitem - height, *choice);
318 *choice = *choice - *scroll;
321 *scroll = 0;
324 /* Set the default menu item that matches any field and scroll to it. */
327 int *choice, int *scroll, int *curr, int *max)
331 dmenuSetDefaultIndex(menu, choice, scroll, curr, max);
336 *choice = *scroll = *curr = *max = 0;
343 dmenuOpen(DMenu *menu, int *choice, int *scroll, int *curr, int *max, Boolean buttons)
366 (char *)(uintptr_t)buttons, choice, scroll);