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

123456789

/openbsd-current/lib/libcurses/base/
H A Dlib_winch.c48 winch(WINDOW *win)
50 T((T_CALLED("winch(%p)"), (void *) win));
51 if (win != 0) {
52 returnChtype((chtype) CharOf(win->_line[win->_cury].text[win->_curx])
53 | AttrOf(win->_line[win->_cury].text[win->_curx]));
H A Dlib_insdel.c40 ** The routine winsdelln(win, n).
51 winsdelln(WINDOW *win, int n) argument
55 T((T_CALLED("winsdelln(%p,%d)"), (void *) win, n));
57 if (win) {
59 _nc_scroll_window(win, -n, win->_cury, win->_maxy,
60 win->_nc_bkgd);
61 _nc_synchook(win);
H A Dlib_immedok.c49 immedok(WINDOW *win, bool flag) argument
51 T((T_CALLED("immedok(%p,%d)"), (void *) win, flag));
53 if (win)
54 win->_immed = flag;
H A Dlib_clreol.c49 wclrtoeol(WINDOW *win) argument
53 T((T_CALLED("wclrtoeol(%p)"), (void *) win));
55 if (win) {
59 NCURSES_SIZE_T y = win->_cury;
60 NCURSES_SIZE_T x = win->_curx;
66 if (IS_WRAPPED(win) != 0
67 && y < win->_maxy) {
68 win->_flags &= ~_WRAPPED;
75 if (IS_WRAPPED(win)
76 || y > win
[all...]
H A Dlib_mvwin.c51 mvwin(WINDOW *win, int by, int bx) argument
54 SCREEN *sp = _nc_screen_of(win);
57 T((T_CALLED("mvwin(%p,%d,%d)"), (void *) win, by, bx));
59 if (!win || IS_PAD(win))
68 if (IS_SUBWIN(win)) {
70 WINDOW *parent = win->_parent;
77 if ((by - parent->_begy == win->_pary) &&
78 (bx - parent->_begx == win->_parx))
81 WINDOW *clone = dupwin(win);
[all...]
H A Dlib_clrbot.c49 wclrtobot(WINDOW *win) argument
53 T((T_CALLED("wclrtobot(%p)"), (void *) win));
55 if (win) {
57 NCURSES_SIZE_T startx = win->_curx;
58 NCURSES_CH_T blank = win->_nc_bkgd;
61 (long) win->_cury, (long) win->_maxy, (long) win->_maxx));
63 for (y = win->_cury; y <= win
[all...]
H A Dlib_move.c50 wmove(WINDOW *win, int y, int x) argument
52 T((T_CALLED("wmove(%p,%d,%d)"), (void *) win, y, x));
54 if (LEGALYX(win, y, x)) {
55 win->_curx = (NCURSES_SIZE_T) x;
56 win->_cury = (NCURSES_SIZE_T) y;
58 win->_flags &= ~_WRAPPED;
59 win->_flags |= _HASMOVED;
H A Dlib_scrreg.c49 wsetscrreg(WINDOW *win, int top, int bottom) argument
51 T((T_CALLED("wsetscrreg(%p,%d,%d)"), (void *) win, top, bottom));
53 if (win &&
54 top >= 0 && top <= win->_maxy &&
55 bottom >= 0 && bottom <= win->_maxy &&
57 win->_regtop = (NCURSES_SIZE_T) top;
58 win->_regbottom = (NCURSES_SIZE_T) bottom;
H A Dlib_wattroff.c51 wattr_off(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument
53 T((T_CALLED("wattr_off(%p,%s)"), (void *) win, _traceattr(at)));
54 if (win) {
56 _traceattr(WINDOW_ATTRS(win)),
57 GET_WINDOW_PAIR(win)));
61 win->_color = 0;
63 toggle_attr_off(WINDOW_ATTRS(win), at);
H A Dlib_window.c48 _nc_synchook(WINDOW *win) argument
51 if (win->_immed)
52 wrefresh(win);
53 if (win->_sync)
54 wsyncup(win);
58 mvderwin(WINDOW *win, int y, int x) argument
64 T((T_CALLED("mvderwin(%p,%d,%d)"), (void *) win, y, x));
66 if (win != 0
67 && (orig = win->_parent) != 0
69 && (x + getmaxx(win) <
84 syncok(WINDOW *win, bool bf) argument
97 wsyncup(WINDOW *win) argument
129 wsyncdown(WINDOW *win) argument
167 wcursyncup(WINDOW *win) argument
180 dupwin(WINDOW *win) argument
[all...]
H A Dlib_addch.c60 render_char(WINDOW *win, NCURSES_CH_T ch) argument
63 attr_t a = WINDOW_ATTRS(win);
70 ch = win->_nc_bkgd;
71 SetAttr(ch, a | AttrOf(win->_nc_bkgd));
72 if ((pair = GET_WINDOW_PAIR(win)) == 0)
73 pair = GetPair(win->_nc_bkgd);
77 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a);
80 if ((pair = GET_WINDOW_PAIR(win)) == 0)
81 pair = GetPair(win->_nc_bkgd);
89 _tracech_t2(1, CHREF(win
123 newline_forces_scroll(WINDOW *win, NCURSES_SIZE_T *ypos) argument
150 wrap_to_next_line(WINDOW *win) argument
170 fill_cells(WINDOW *win, int count) argument
191 _nc_build_wch(WINDOW *win, ARG_CH_T ch) argument
259 waddch_literal(WINDOW *win, NCURSES_CH_T ch) argument
436 waddch_nosync(WINDOW *win, const NCURSES_CH_T ch) argument
551 _nc_waddch_nosync(WINDOW *win, const NCURSES_CH_T c) argument
566 waddch(WINDOW *win, const chtype ch) argument
585 wechochar(WINDOW *win, const chtype ch) argument
[all...]
H A Dlib_delwin.c51 cannot_delete(WINDOW *win) argument
55 if (IS_PAD(win)) {
60 SCREEN *sp = _nc_screen_of(win);
64 if (&(p->win) == win) {
66 } else if (IS_SUBWIN(&(p->win))
67 && p->win._parent == win) {
77 delwin(WINDOW *win) argument
81 T((T_CALLED("delwin(%p)"), (void *) win));
[all...]
H A Dlib_wattron.c51 wattr_on(WINDOW *win, attr_t at, void *opts GCC_UNUSED) argument
53 T((T_CALLED("wattr_on(%p,%s)"), (void *) win, _traceattr(at)));
54 if (win != 0) {
56 _traceattr(WINDOW_ATTRS(win)),
57 GET_WINDOW_PAIR(win)));
61 win->_color = PairNumber(at);
62 set_extended_pair(opts, win->_color);
65 toggle_attr_on(WINDOW_ATTRS(win), at);
H A Dlib_touch.c54 is_linetouched(WINDOW *win, int line)
56 T((T_CALLED("is_linetouched(%p,%d)"), (void *) win, line));
59 if (!win || (line > win->_maxy) || (line < 0)) {
63 returnCode(win->_line[line].firstchar != _NOCHANGE ? TRUE : FALSE);
67 is_wintouched(WINDOW *win)
69 T((T_CALLED("is_wintouched(%p)"), (void *) win));
71 if (win) {
74 for (i = 0; i <= win->_maxy; i++)
75 if (win
82 wtouchln(WINDOW *win, int y, int n, int changed) argument
[all...]
H A Dlib_getstr.c54 WipeOut(WINDOW *win, int y, int x, char *first, char *last, int echoed) argument
59 int y1 = win->_cury;
60 int x1 = win->_curx;
62 wmove(win, y, x);
63 waddstr(win, first);
64 getyx(win, y, x);
65 while (win->_cury < y1
66 || (win->_cury == y1 && win->_curx < x1))
67 waddch(win, (chtyp
76 wgetnstr_events(WINDOW *win, char *str, int maxlen, EVENTLIST_1st(_nc_eventlist * evl)) argument
216 wgetnstr(WINDOW *win, char *str, int maxlen) argument
[all...]
H A Dlib_delch.c49 wdelch(WINDOW *win) argument
53 T((T_CALLED("wdelch(%p)"), (void *) win));
55 if (win) {
56 NCURSES_CH_T blank = win->_nc_bkgd;
57 struct ldat *line = &(win->_line[win->_cury]);
58 NCURSES_CH_T *end = &(line->text[win->_maxx]);
59 NCURSES_CH_T *temp2 = &(line->text[win->_curx + 1]);
62 CHANGED_TO_EOL(line, win->_curx, win
[all...]
H A Dlib_insch.c56 _nc_insert_ch(SCREEN *sp, WINDOW *win, chtype ch) argument
72 for (count = (tabsize - (win->_curx % tabsize)); count > 0; count--) {
73 if ((code = _nc_insert_ch(sp, win, ' ')) != OK)
81 _nc_waddch_nosync(win, wch);
86 WINDOW_EXT(win, addch_used) == 0 &&
91 if (win->_curx <= win->_maxx) {
92 struct ldat *line = &(win->_line[win->_cury]);
93 NCURSES_CH_T *end = &(line->text[win
150 winsch(WINDOW *win, chtype c) argument
[all...]
H A Dlib_leaveok.c49 leaveok(WINDOW *win, bool flag) argument
51 T((T_CALLED("leaveok(%p,%d)"), (void *) win, flag));
53 if (win) {
54 win->_leaveok = flag;
H A Dlib_scrollok.c49 scrollok(WINDOW *win, bool flag) argument
51 T((T_CALLED("scrollok(%p,%d)"), (void *) win, flag));
53 if (win) {
54 win->_scroll = flag;
/openbsd-current/usr.bin/talk/
H A Ddisplay.c65 display(xwin_t *win, char *text, int size) argument
78 xscroll(win, 0);
83 if (*text == win->cerase) {
84 wmove(win->x_win, win->x_line, max(--win->x_col, 0));
85 getyx(win->x_win, win->x_line, win->x_col);
86 waddch(win
161 readwin(WINDOW *win, int line, int col) argument
178 xscroll(xwin_t *win, int flag) argument
[all...]
/openbsd-current/lib/libcurses/widechar/
H A Dlib_add_wch.c64 render_char(WINDOW *win, cchar_t ch) argument
67 attr_t a = WINDOW_ATTRS(win);
74 ch = win->_nc_bkgd;
75 SetAttr(ch, a | AttrOf(win->_nc_bkgd));
76 if ((pair = GET_WINDOW_PAIR(win)) == 0)
77 pair = GetPair(win->_nc_bkgd);
81 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a);
84 if ((pair = GET_WINDOW_PAIR(win)) == 0)
85 pair = GetPair(win->_nc_bkgd);
93 _tracech_t2(1, CHREF(win
120 newline_forces_scroll(WINDOW *win, NCURSES_SIZE_T *ypos) argument
143 wrap_to_next_line(WINDOW *win) argument
162 fill_cells(WINDOW *win, int count) argument
177 wadd_wch_literal(WINDOW *win, cchar_t ch) argument
308 wadd_wch_nosync(WINDOW *win, cchar_t ch) argument
417 wadd_wch(WINDOW *win, const cchar_t *wch) argument
435 wecho_wchar(WINDOW *win, const cchar_t *wch) argument
[all...]
H A Dlib_ins_wch.c52 _nc_insert_wch(WINDOW *win, const cchar_t *wch) argument
58 code = winsch(win, (chtype) CharOf(CHDEREF(wch)));
63 if (win->_curx <= win->_maxx) {
65 struct ldat *line = &(win->_line[win->_cury]);
66 NCURSES_CH_T *end = &(line->text[win->_curx]);
67 NCURSES_CH_T *temp1 = &(line->text[win->_maxx]);
70 CHANGED_TO_EOL(line, win->_curx, win
86 wins_wch(WINDOW *win, const cchar_t *wch) argument
106 wins_nwstr(WINDOW *win, const wchar_t *wstr, int n) argument
[all...]
H A Dlib_get_wstr.c48 wadd_wint(WINDOW *win, wint_t *src) argument
56 return wadd_wch(win, &tmp);
64 WipeOut(WINDOW *win, int y, int x, wint_t *first, wint_t *last, int echoed) argument
69 int y1 = win->_cury;
70 int x1 = win->_curx;
73 wmove(win, y, x);
75 wadd_wint(win, first + n);
77 getyx(win, y, x);
78 while (win->_cury < y1
79 || (win
89 wgetn_wstr(WINDOW *win, wint_t *str, int maxlen) argument
[all...]
/openbsd-current/lib/libform/
H A Dfrm_win.c41 | Function : int set_form_win(FORM *form,WINDOW *win)
43 | Description : Set the window of the form to win.
49 set_form_win(FORM *form, WINDOW *win) argument
51 T((T_CALLED("set_form_win(%p,%p)"), (void *)form, (void *)win));
60 f->win = win ? win : StdScreen(Get_Form_Screen(f));
63 Normalize_Form(form)->win = win;
87 result = (f->win
[all...]
/openbsd-current/lib/libpanel/
H A Dp_replace.c45 replace_panel(PANEL * pan, WINDOW *win) argument
49 T((T_CALLED("replace_panel(%p,%p)"), (void *)pan, (void *)win));
59 pan->win = win;

Completed in 304 milliseconds

123456789