• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/dialog/

Lines Matching defs:scrollamt

55 in_window(WINDOW *win, int scrollamt, int y)
57 return (y >= scrollamt && y - scrollamt < getmaxy(win));
61 ok_move(WINDOW *win, int scrollamt, int y, int x)
63 return in_window(win, scrollamt, y)
64 && (wmove(win, y - scrollamt, x) != ERR);
78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice)
83 if (ok_move(win, scrollamt, item->name_y, item->name_x)) {
91 item->name_y - scrollamt,
96 move_past(win, item->name_y - scrollamt, item->name_x + len);
100 if (item->text_len && ok_move(win, scrollamt, item->text_y, item->text_x)) {
119 item->text_y - scrollamt,
124 move_past(win, item->text_y - scrollamt, item->text_x + len);
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice)
141 count += print_item(win, item + n, scrollamt, n == choice);
228 int *scrollamt)
231 int old_scroll = *scrollamt;
252 print_item(win, item + old_choice, *scrollamt, FALSE);
254 if (*scrollamt < lo + 1 - getmaxy(win))
255 *scrollamt = lo + 1 - getmaxy(win);
256 if (*scrollamt > hi)
257 *scrollamt = hi;
264 if (*scrollamt != old_scroll) {
267 *scrollamt = old_scroll;
271 wscrl(win, *scrollamt - old_scroll);
279 return (old_choice != *choice) || (old_scroll != *scrollamt);
288 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt)
292 int old_scroll = *scrollamt;
323 print_item(win, item + old_choice, *scrollamt, FALSE);
325 *scrollamt = *choice;
326 if (*scrollamt != old_scroll) {
328 wscrl(win, *scrollamt - old_scroll);
331 result = (old_choice != *choice) || (old_scroll != *scrollamt);
501 int scrollamt = 0;
594 print_form(form, items, item_no, scrollamt, choice);
596 scrollamt,
597 scrollamt,
598 scrollamt + form_height + 1,
632 current->text_y - scrollamt,
712 print_item(form, items + choice, scrollamt, FALSE);
754 print_item(form, items + choice, scrollamt, FALSE);
777 int row = (cell / getmaxx(form)) + scrollamt;
802 print_item(form, items + choice, scrollamt, FALSE);
816 new_scroll = scrollamt;
824 if (scrollamt != new_scroll) {
825 scrollamt = new_scroll;
837 if (scrollamt != new_scroll) {
838 scrollamt = new_scroll;
853 current->text_y - scrollamt,