Lines Matching refs:w
56 __m_cc_ins(WINDOW *w, int y, int x, const cchar_t *cc) in __m_cc_ins() argument
61 if ((width = __m_cc_width(cc)) <= 0 || w->_maxx < x + width) in __m_cc_ins()
64 x = __m_cc_first(w, y, x); in __m_cc_ins()
70 (void) __m_cc_erase(w, y, w->_maxx - width, y, w->_maxx - 1); in __m_cc_ins()
73 (void) memmove(&w->_line[y][x + width], &w->_line[y][x], in __m_cc_ins()
74 (w->_maxx - x - width) * sizeof (**w->_line)); in __m_cc_ins()
77 if (__m_cc_replace(w, y, x, cc, 0) != width) in __m_cc_ins()
81 if (x < w->_first[y]) in __m_cc_ins()
82 w->_first[y] = (short) x; in __m_cc_ins()
83 w->_last[y] = w->_maxx; in __m_cc_ins()
89 x = __m_cc_first(w, y, w->_maxx-1); in __m_cc_ins()
90 if (w->_maxx < x + __m_cc_width(&w->_line[y][x])) in __m_cc_ins()
91 (void) __m_cc_erase(w, y, x, y, w->_maxx-1); in __m_cc_ins()
102 __m_wins_wch(WINDOW *w, int y, int x, const cchar_t *cc, in __m_wins_wch() argument
121 if ((width = __m_cc_ins(w, y, x, &w->_bg)) <= 0) in __m_wins_wch()
126 if (__m_cc_erase(w, y, x, y, w->_maxx - 1) == -1) in __m_wins_wch()
129 if (__m_do_scroll(w, y, x, &y, &x) == ERR) in __m_wins_wch()
134 if ((width = __m_cc_ins(w, y, x, cc)) <= 0) in __m_wins_wch()
150 if ((width = __m_cc_ins(w, y, x, &uc)) < 0) in __m_wins_wch()
160 WSYNC(w); in __m_wins_wch()
162 code = WFLUSH(w); in __m_wins_wch()
174 wins_wch(WINDOW *w, const cchar_t *cc) in wins_wch() argument
178 code = __m_wins_wch(w, w->_cury, w->_curx, cc, NULL, NULL); in wins_wch()