Lines Matching refs:scrollamt

55 in_window(WINDOW *win, int scrollamt, int y)  in in_window()  argument
57 return (y >= scrollamt && y - scrollamt < getmaxy(win)); in in_window()
61 ok_move(WINDOW *win, int scrollamt, int y, int x) in ok_move() argument
63 return in_window(win, scrollamt, y) in ok_move()
64 && (wmove(win, y - scrollamt, x) != ERR); in ok_move()
78 print_item(WINDOW *win, DIALOG_FORMITEM * item, int scrollamt, bool choice) in print_item() argument
83 if (ok_move(win, scrollamt, item->name_y, item->name_x)) { in print_item()
91 item->name_y - scrollamt, in print_item()
96 move_past(win, item->name_y - scrollamt, item->name_x + len); in print_item()
100 if (item->text_len && ok_move(win, scrollamt, item->text_y, item->text_x)) { in print_item()
119 item->text_y - scrollamt, in print_item()
124 move_past(win, item->text_y - scrollamt, item->text_x + len); in print_item()
135 print_form(WINDOW *win, DIALOG_FORMITEM * item, int total, int scrollamt, int choice) in print_form() argument
141 count += print_item(win, item + n, scrollamt, n == choice); in print_form()
229 int *scrollamt) in tab_next() argument
232 int old_scroll = *scrollamt; in tab_next()
253 print_item(win, item + old_choice, *scrollamt, FALSE); in tab_next()
255 if (*scrollamt < lo + 1 - getmaxy(win)) in tab_next()
256 *scrollamt = lo + 1 - getmaxy(win); in tab_next()
257 if (*scrollamt > hi) in tab_next()
258 *scrollamt = hi; in tab_next()
265 if (*scrollamt != old_scroll) { in tab_next()
268 *scrollamt = old_scroll; in tab_next()
272 wscrl(win, *scrollamt - old_scroll); in tab_next()
280 return (old_choice != *choice) || (old_scroll != *scrollamt); in tab_next()
289 scroll_next(WINDOW *win, DIALOG_FORMITEM item[], int stepsize, int *choice, int *scrollamt) in scroll_next() argument
293 int old_scroll = *scrollamt; in scroll_next()
325 print_item(win, item + old_choice, *scrollamt, FALSE); in scroll_next()
327 *scrollamt = *choice; in scroll_next()
328 if (*scrollamt != old_scroll) { in scroll_next()
330 wscrl(win, *scrollamt - old_scroll); in scroll_next()
333 result = (old_choice != *choice) || (old_scroll != *scrollamt); in scroll_next()
507 int scrollamt = 0; in dlg_form() local
614 print_form(form, items, item_no, scrollamt, choice); in dlg_form()
616 scrollamt, in dlg_form()
617 scrollamt, in dlg_form()
618 scrollamt + form_height + 1, in dlg_form()
652 current->text_y - scrollamt, in dlg_form()
734 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
776 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
799 int row = (cell / getmaxx(form)) + scrollamt; in dlg_form()
824 print_item(form, items + choice, scrollamt, FALSE); in dlg_form()
838 new_scroll = scrollamt; in dlg_form()
846 if (scrollamt != new_scroll) { in dlg_form()
847 scrollamt = new_scroll; in dlg_form()
859 if (scrollamt != new_scroll) { in dlg_form()
860 scrollamt = new_scroll; in dlg_form()
875 current->text_y - scrollamt, in dlg_form()