Lines Matching refs:width
25 static void print_page(WINDOW * win, int height, int width);
26 static void print_line(WINDOW * win, int row, int width);
28 static void print_position(WINDOW * win, int height, int width);
37 int dialog_textbox(const char *title, const char *file, int height, int width) in dialog_textbox() argument
77 x = (COLS - width) / 2; in dialog_textbox()
80 draw_shadow(stdscr, y, x, height, width); in dialog_textbox()
82 dialog = newwin(height, width, y, x); in dialog_textbox()
86 text = subwin(dialog, height - 4, width - 2, y + 1, x + 1); in dialog_textbox()
93 draw_box(dialog, 0, 0, height, width, dialog_attr, border_attr); in dialog_textbox()
97 for (i = 0; i < width - 2; i++) in dialog_textbox()
103 print_title(dialog, title, width); in dialog_textbox()
105 print_button(dialog, " Exit ", height - 2, width / 2 - 4, TRUE); in dialog_textbox()
110 attr_clear(text, height - 4, width - 2, dialog_attr); in dialog_textbox()
111 print_page(text, height - 4, width - 2); in dialog_textbox()
112 print_position(dialog, height, width); in dialog_textbox()
153 print_page(text, height - 4, width - 2); in dialog_textbox()
154 print_position(dialog, height, width); in dialog_textbox()
185 print_page(text, height - 4, width - 2); in dialog_textbox()
186 print_position(dialog, height, width); in dialog_textbox()
209 print_line(text, 0, width - 2); in dialog_textbox()
220 print_position(dialog, height, width); in dialog_textbox()
231 print_page(text, height - 4, width - 2); in dialog_textbox()
232 print_position(dialog, height, width); in dialog_textbox()
244 print_line(text, height - 5, width - 2); in dialog_textbox()
246 print_position(dialog, height, width); in dialog_textbox()
257 print_page(text, height - 4, width - 2); in dialog_textbox()
258 print_position(dialog, height, width); in dialog_textbox()
275 print_page(text, height - 4, width - 2); in dialog_textbox()
287 print_page(text, height - 4, width - 2); in dialog_textbox()
417 static void print_page(WINDOW * win, int height, int width) in print_page() argument
423 print_line(win, i, width); in print_page()
435 static void print_line(WINDOW * win, int row, int width) in print_line() argument
443 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line()
452 for (i = 0; i < width - x; i++) in print_line()
516 static void print_position(WINDOW * win, int height, int width) in print_position() argument
529 wmove(win, height - 3, width - 9); in print_position()