Searched refs:win (Results 1 - 25 of 207) sorted by relevance

123456789

/freebsd-head/contrib/ncurses/ncurses/base/
H A Dlib_winch.c46 winch(WINDOW *win)
48 T((T_CALLED("winch(%p)"), (void *) win));
49 if (win != 0) {
50 returnChtype((chtype) CharOf(win->_line[win->_cury].text[win->_curx])
51 | AttrOf(win->_line[win->_cury].text[win->_curx]));
H A Dlib_insdel.c38 ** The routine winsdelln(win, n).
49 winsdelln(WINDOW *win, int n) argument
53 T((T_CALLED("winsdelln(%p,%d)"), (void *) win, n));
55 if (win) {
57 _nc_scroll_window(win, -n, win->_cury, win->_maxy,
58 win->_nc_bkgd);
59 _nc_synchook(win);
H A Dlib_clreol.c47 wclrtoeol(WINDOW *win) argument
51 T((T_CALLED("wclrtoeol(%p)"), (void *) win));
53 if (win) {
57 NCURSES_SIZE_T y = win->_cury;
58 NCURSES_SIZE_T x = win->_curx;
64 if ((win->_flags & _WRAPPED) != 0
65 && y < win->_maxy) {
66 win->_flags &= ~_WRAPPED;
73 if ((win->_flags & _WRAPPED) != 0
74 || y > win
[all...]
H A Dlib_immedok.c47 immedok(WINDOW *win, bool flag) argument
49 T((T_CALLED("immedok(%p,%d)"), (void *) win, flag));
51 if (win)
52 win->_immed = flag;
H A Dlib_delwin.c49 cannot_delete(WINDOW *win) argument
54 SCREEN *sp = _nc_screen_of(win);
58 if (&(p->win) == win) {
60 } else if ((p->win._flags & _SUBWIN) != 0
61 && p->win._parent == win) {
70 delwin(WINDOW *win) argument
74 T((T_CALLED("delwin(%p)"), (void *) win));
77 if (win
[all...]
H A Dlib_mvwin.c49 mvwin(WINDOW *win, int by, int bx) argument
52 SCREEN *sp = _nc_screen_of(win);
55 T((T_CALLED("mvwin(%p,%d,%d)"), (void *) win, by, bx));
57 if (!win || (win->_flags & _ISPAD))
66 if (win->_flags & _SUBWIN) {
68 WINDOW *parent = win->_parent;
75 if ((by - parent->_begy == win->_pary) &&
76 (bx - parent->_begx == win->_parx))
79 WINDOW *clone = dupwin(win);
[all...]
H A Dlib_clrbot.c47 wclrtobot(WINDOW *win) argument
51 T((T_CALLED("wclrtobot(%p)"), (void *) win));
53 if (win) {
55 NCURSES_SIZE_T startx = win->_curx;
56 NCURSES_CH_T blank = win->_nc_bkgd;
59 (long) win->_cury, (long) win->_maxy, (long) win->_maxx));
61 for (y = win->_cury; y <= win
[all...]
H A Dlib_move.c48 wmove(WINDOW *win, int y, int x) argument
50 T((T_CALLED("wmove(%p,%d,%d)"), (void *) win, y, x));
52 if (LEGALYX(win, y, x)) {
53 win->_curx = (NCURSES_SIZE_T) x;
54 win->_cury = (NCURSES_SIZE_T) y;
56 win->_flags &= ~_WRAPPED;
57 win->_flags |= _HASMOVED;
H A Dlib_scrreg.c47 wsetscrreg(WINDOW *win, int top, int bottom) argument
49 T((T_CALLED("wsetscrreg(%p,%d,%d)"), (void *) win, top, bottom));
51 if (win &&
52 top >= 0 && top <= win->_maxy &&
53 bottom >= 0 && bottom <= win->_maxy &&
55 win->_regtop = (NCURSES_SIZE_T) top;
56 win->_regbottom = (NCURSES_SIZE_T) bottom;
H A Dlib_wattroff.c49 wattr_off(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument
51 T((T_CALLED("wattr_off(%p,%s)"), (void *) win, _traceattr(at)));
52 if (win) {
54 _traceattr(WINDOW_ATTRS(win)),
55 GET_WINDOW_PAIR(win)));
59 win->_color = 0;
61 toggle_attr_off(WINDOW_ATTRS(win), at);
H A Dlib_wattron.c49 wattr_on(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument
51 T((T_CALLED("wattr_on(%p,%s)"), (void *) win, _traceattr(at)));
52 if (win != 0) {
54 _traceattr(WINDOW_ATTRS(win)),
55 GET_WINDOW_PAIR(win)));
59 win->_color = PairNumber(at);
61 toggle_attr_on(WINDOW_ATTRS(win), at);
H A Dlib_window.c46 _nc_synchook(WINDOW *win) argument
49 if (win->_immed)
50 wrefresh(win);
51 if (win->_sync)
52 wsyncup(win);
56 mvderwin(WINDOW *win, int y, int x) argument
62 T((T_CALLED("mvderwin(%p,%d,%d)"), (void *) win, y, x));
64 if (win != 0
65 && (orig = win->_parent) != 0
67 && (x + getmaxx(win) <
82 syncok(WINDOW *win, bool bf) argument
95 wsyncup(WINDOW *win) argument
127 wsyncdown(WINDOW *win) argument
165 wcursyncup(WINDOW *win) argument
178 dupwin(WINDOW *win) argument
[all...]
H A Dlib_addch.c58 render_char(WINDOW *win, NCURSES_CH_T ch) argument
61 attr_t a = WINDOW_ATTRS(win);
68 ch = win->_nc_bkgd;
69 SetAttr(ch, a | AttrOf(win->_nc_bkgd));
70 if ((pair = GET_WINDOW_PAIR(win)) == 0)
71 pair = GetPair(win->_nc_bkgd);
75 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a);
78 if ((pair = GET_WINDOW_PAIR(win)) == 0)
79 pair = GetPair(win->_nc_bkgd);
87 _tracech_t2(1, CHREF(win
121 newline_forces_scroll(WINDOW *win, NCURSES_SIZE_T *ypos) argument
148 wrap_to_next_line(WINDOW *win) argument
168 fill_cells(WINDOW *win, int count) argument
189 _nc_build_wch(WINDOW *win, ARG_CH_T ch) argument
243 waddch_literal(WINDOW *win, NCURSES_CH_T ch) argument
411 waddch_nosync(WINDOW *win, const NCURSES_CH_T ch) argument
526 _nc_waddch_nosync(WINDOW *win, const NCURSES_CH_T c) argument
541 waddch(WINDOW *win, const chtype ch) argument
560 wechochar(WINDOW *win, const chtype ch) argument
[all...]
H A Dlib_touch.c52 is_linetouched(WINDOW *win, int line)
54 T((T_CALLED("is_linetouched(%p,%d)"), (void *) win, line));
57 if (!win || (line > win->_maxy) || (line < 0)) {
61 returnCode(win->_line[line].firstchar != _NOCHANGE ? TRUE : FALSE);
65 is_wintouched(WINDOW *win)
67 T((T_CALLED("is_wintouched(%p)"), (void *) win));
69 if (win) {
72 for (i = 0; i <= win->_maxy; i++)
73 if (win
80 wtouchln(WINDOW *win, int y, int n, int changed) argument
[all...]
H A Dlib_getstr.c51 WipeOut(WINDOW *win, int y, int x, char *first, char *last, int echoed) argument
56 int y1 = win->_cury;
57 int x1 = win->_curx;
59 wmove(win, y, x);
60 waddstr(win, first);
61 getyx(win, y, x);
62 while (win->_cury < y1
63 || (win->_cury == y1 && win->_curx < x1))
64 waddch(win, (chtyp
73 wgetnstr_events(WINDOW *win, char *str, int maxlen, EVENTLIST_1st(_nc_eventlist * evl)) argument
220 wgetnstr(WINDOW *win, char *str, int maxlen) argument
[all...]
H A Dlib_delch.c47 wdelch(WINDOW *win) argument
51 T((T_CALLED("wdelch(%p)"), (void *) win));
53 if (win) {
54 NCURSES_CH_T blank = win->_nc_bkgd;
55 struct ldat *line = &(win->_line[win->_cury]);
56 NCURSES_CH_T *end = &(line->text[win->_maxx]);
57 NCURSES_CH_T *temp2 = &(line->text[win->_curx + 1]);
60 CHANGED_TO_EOL(line, win->_curx, win
[all...]
H A Dlib_insch.c54 _nc_insert_ch(SCREEN *sp, WINDOW *win, chtype ch) argument
70 for (count = (tabsize - (win->_curx % tabsize)); count > 0; count--) {
71 if ((code = _nc_insert_ch(sp, win, ' ')) != OK)
79 _nc_waddch_nosync(win, wch);
84 WINDOW_EXT(win, addch_used) == 0 &&
89 if (win->_curx <= win->_maxx) {
90 struct ldat *line = &(win->_line[win->_cury]);
91 NCURSES_CH_T *end = &(line->text[win
148 winsch(WINDOW *win, chtype c) argument
[all...]
H A Dlib_clear.c47 wclear(WINDOW *win) argument
51 T((T_CALLED("wclear(%p)"), (void *) win));
53 if ((code = werase(win)) != ERR)
54 win->_clear = TRUE;
H A Dlib_clearok.c47 clearok(WINDOW *win, bool flag) argument
49 T((T_CALLED("clearok(%p,%d)"), (void *) win, flag));
51 if (win) {
52 win->_clear = flag;
H A Dlib_erase.c48 werase(WINDOW *win) argument
54 T((T_CALLED("werase(%p)"), (void *) win));
56 if (win) {
60 blank = win->_nc_bkgd;
61 for (y = 0; y <= win->_maxy; y++) {
64 start = win->_line[y].text;
65 end = &start[win->_maxx];
74 int x = (win->_parent != 0) ? (win->_begx) : 0;
88 win
[all...]
/freebsd-head/usr.bin/talk/
H A Ddisplay.c91 display(xwin_t *win, wchar_t *wc) argument
98 if (*wc == win->kill)
100 else if (*wc == win->cerase)
102 else if (*wc == win->werase)
108 wadd_wch(win->x_win, makecchar(L'\n'));
109 getyx(win->x_win, win->x_line, win->x_col);
110 wrefresh(win->x_win);
114 if (win
202 readwin(WINDOW *win, int line, int col) argument
[all...]
/freebsd-head/contrib/ncurses/ncurses/widechar/
H A Dlib_add_wch.c62 render_char(WINDOW *win, cchar_t ch) argument
65 attr_t a = WINDOW_ATTRS(win);
72 ch = win->_nc_bkgd;
73 SetAttr(ch, a | AttrOf(win->_nc_bkgd));
74 if ((pair = GET_WINDOW_PAIR(win)) == 0)
75 pair = GetPair(win->_nc_bkgd);
79 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a);
82 if ((pair = GET_WINDOW_PAIR(win)) == 0)
83 pair = GetPair(win->_nc_bkgd);
91 _tracech_t2(1, CHREF(win
118 newline_forces_scroll(WINDOW *win, NCURSES_SIZE_T *ypos) argument
141 wrap_to_next_line(WINDOW *win) argument
160 fill_cells(WINDOW *win, int count) argument
175 wadd_wch_literal(WINDOW *win, cchar_t ch) argument
300 wadd_wch_nosync(WINDOW *win, cchar_t ch) argument
409 wadd_wch(WINDOW *win, const cchar_t *wch) argument
427 wecho_wchar(WINDOW *win, const cchar_t *wch) argument
[all...]
H A Dlib_ins_wch.c50 _nc_insert_wch(WINDOW *win, const cchar_t *wch) argument
56 code = winsch(win, (chtype) CharOf(CHDEREF(wch)));
61 if (win->_curx <= win->_maxx) {
63 struct ldat *line = &(win->_line[win->_cury]);
64 NCURSES_CH_T *end = &(line->text[win->_curx]);
65 NCURSES_CH_T *temp1 = &(line->text[win->_maxx]);
68 CHANGED_TO_EOL(line, win->_curx, win
84 wins_wch(WINDOW *win, const cchar_t *wch) argument
104 wins_nwstr(WINDOW *win, const wchar_t *wstr, int n) argument
[all...]
H A Dlib_get_wstr.c46 wadd_wint(WINDOW *win, wint_t *src) argument
54 return wadd_wch(win, &tmp);
62 WipeOut(WINDOW *win, int y, int x, wint_t *first, wint_t *last, int echoed) argument
67 int y1 = win->_cury;
68 int x1 = win->_curx;
71 wmove(win, y, x);
73 wadd_wint(win, first + n);
75 getyx(win, y, x);
76 while (win->_cury < y1
77 || (win
87 wgetn_wstr(WINDOW *win, wint_t *str, int maxlen) argument
[all...]
/freebsd-head/contrib/ncurses/form/
H A Dfrm_win.c40 | Function : int set_form_win(FORM *form,WINDOW *win)
42 | Description : Set the window of the form to win.
48 set_form_win(FORM *form, WINDOW *win) argument
50 T((T_CALLED("set_form_win(%p,%p)"), (void *)form, (void *)win));
59 f->win = win ? win : StdScreen(Get_Form_Screen(f));
62 Normalize_Form(form)->win = win;
86 result = (f->win
[all...]

Completed in 68 milliseconds

123456789