Lines Matching refs:win
239 void attr_clear(WINDOW * win, int height, int width, chtype attr)
243 wattrset(win, attr);
245 wmove(win, i, 0);
247 waddch(win, ' ');
249 touchwin(win);
314 void print_autowrap(WINDOW * win, const char *prompt, int width, int y, int x)
333 wmove(win, y, (width - prompt_len) / 2);
334 waddstr(win, tempstr);
358 wmove(win, cur_y, cur_x);
359 waddstr(win, word);
360 getyx(win, cur_y, cur_x);
376 void print_button(WINDOW * win, const char *label, int y, int x, int selected)
380 wmove(win, y, x);
381 wattrset(win, selected ? dlg.button_active.atr
383 waddstr(win, "<");
386 wattrset(win, selected ? dlg.button_label_active.atr
389 waddch(win, ' ');
390 wattrset(win, selected ? dlg.button_key_active.atr
392 waddch(win, label[0]);
393 wattrset(win, selected ? dlg.button_label_active.atr
395 waddstr(win, (char *)label + 1);
396 wattrset(win, selected ? dlg.button_active.atr
398 waddstr(win, ">");
399 wmove(win, y, x + temp + 1);
406 draw_box(WINDOW * win, int y, int x, int height, int width,
411 wattrset(win, 0);
413 wmove(win, y + i, x);
416 waddch(win, border | ACS_ULCORNER);
418 waddch(win, border | ACS_LLCORNER);
420 waddch(win, box | ACS_URCORNER);
422 waddch(win, box | ACS_LRCORNER);
424 waddch(win, border | ACS_HLINE);
426 waddch(win, box | ACS_HLINE);
428 waddch(win, border | ACS_VLINE);
430 waddch(win, box | ACS_VLINE);
432 waddch(win, box | ' ');
440 void draw_shadow(WINDOW * win, int y, int x, int height, int width)
445 wattrset(win, dlg.shadow.atr);
446 wmove(win, y + height, x + 2);
448 waddch(win, winch(win) & A_CHARTEXT);
450 wmove(win, i, x + width);
451 waddch(win, winch(win) & A_CHARTEXT);
452 waddch(win, winch(win) & A_CHARTEXT);
454 wnoutrefresh(win);
489 int on_key_esc(WINDOW *win)
495 nodelay(win, TRUE);
496 keypad(win, FALSE);
497 key = wgetch(win);
498 key2 = wgetch(win);
500 key3 = wgetch(win);
502 nodelay(win, FALSE);
503 keypad(win, TRUE);