Home
last modified time | relevance | path

Searched refs:win (Results 1 – 25 of 277) sorted by relevance

12345678910>>...12

/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_addch.c58 render_char(WINDOW *win, NCURSES_CH_T ch) in render_char() argument
61 attr_t a = WINDOW_ATTRS(win); in render_char()
68 ch = win->_nc_bkgd; in render_char()
69 SetAttr(ch, a | AttrOf(win->_nc_bkgd)); in render_char()
70 if ((pair = GET_WINDOW_PAIR(win)) == 0) in render_char()
71 pair = GetPair(win->_nc_bkgd); in render_char()
75 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a); in render_char()
78 if ((pair = GET_WINDOW_PAIR(win)) == 0) in render_char()
79 pair = GetPair(win->_nc_bkgd); in render_char()
87 _tracech_t2(1, CHREF(win->_nc_bkgd)), in render_char()
[all …]
H A Dlib_window.c46 _nc_synchook(WINDOW *win) in NCURSES_EXPORT()
49 if (win->_immed) in NCURSES_EXPORT()
50 wrefresh(win); in NCURSES_EXPORT()
51 if (win->_sync) in NCURSES_EXPORT()
52 wsyncup(win); in NCURSES_EXPORT()
56 mvderwin(WINDOW *win, int y, int x) in mvderwin() argument
62 T((T_CALLED("mvderwin(%p,%d,%d)"), (void *) win, y, x)); in mvderwin()
64 if (win != 0 in mvderwin()
65 && (orig = win->_parent) != 0 in mvderwin()
67 && (x + getmaxx(win) <= getmaxx(orig)) in mvderwin()
[all …]
H A Dlib_newwin.c49 #define window_is(name) ((sp)->_##name == win)
57 if (win == name) \
62 remove_window_from_screen(WINDOW *win) in remove_window_from_screen() argument
67 if ((sp = _nc_screen_of(win)) != 0) { in remove_window_from_screen()
93 _nc_freewin(WINDOW *win) in _nc_freewin() argument
97 SCREEN *sp = _nc_screen_of(win); /* pretend this is parameter */ in _nc_freewin()
100 T((T_CALLED("_nc_freewin(%p)"), (void *) win)); in _nc_freewin()
102 if (win != 0) { in _nc_freewin()
110 if (&(p->win) == win) { in _nc_freewin()
111 remove_window_from_screen(win); in _nc_freewin()
[all …]
H A Dwresize.c65 WINDOW *tst = &(wp->win); in repair_subwindows()
108 wresize(WINDOW *win, int ToLines, int ToCols) in wresize() argument
115 T((T_CALLED("wresize(%p,%d,%d)"), (void *) win, ToLines, ToCols)); in wresize()
116 if (win) { in wresize()
118 (long) win->_begy, (long) win->_begx, in wresize()
119 (long) win->_maxy, (long) win->_maxx, in wresize()
120 (long) win->_regtop, (long) win->_regbottom)); in wresize()
122 _tracedump("...before", win); in wresize()
128 if (!win || --ToLines < 0 || --ToCols < 0) in wresize()
131 size_x = win->_maxx; in wresize()
[all …]
H A Dlib_getstr.c52 WipeOut(WINDOW *win, int y, int x, char *first, char *last, int echoed) in WipeOut() argument
57 int y1 = win->_cury; in WipeOut()
58 int x1 = win->_curx; in WipeOut()
60 wmove(win, y, x); in WipeOut()
61 waddstr(win, first); in WipeOut()
62 getyx(win, y, x); in WipeOut()
63 while (win->_cury < y1 in WipeOut()
64 || (win->_cury == y1 && win->_curx < x1)) in WipeOut()
65 waddch(win, (chtype) ' '); in WipeOut()
67 wmove(win, y, x); in WipeOut()
[all …]
H A Dlib_scroll.c50 _nc_scroll_window(WINDOW *win, in NCURSES_EXPORT()
59 size_t to_copy = (sizeof(NCURSES_CH_T) * (size_t) (win->_maxx + 1)); in NCURSES_EXPORT()
62 (void *) win, n, (long) top, (long) bottom)); in NCURSES_EXPORT()
66 || bottom > win->_maxy) { in NCURSES_EXPORT()
82 #define TopLimit(n) ((n) <= win->_maxy && (n) <= bottom) in NCURSES_EXPORT()
89 memcpy(win->_line[line].text, in NCURSES_EXPORT()
90 win->_line[line + n].text, in NCURSES_EXPORT()
92 if_USE_SCROLL_HINTS(win->_line[line].oldindex = in NCURSES_EXPORT()
93 win->_line[line + n].oldindex); in NCURSES_EXPORT()
97 for (j = 0; j <= win->_maxx; j++) in NCURSES_EXPORT()
[all …]
H A Dlib_pad.c51 WINDOW *win; in NCURSES_EXPORT() local
60 win = NCURSES_SP_NAME(_nc_makenew) (NCURSES_SP_ARGx l, c, 0, 0, _ISPAD); in NCURSES_EXPORT()
61 if (win == NULL) in NCURSES_EXPORT()
65 if_USE_SCROLL_HINTS(win->_line[i].oldindex = _NEWINDEX); in NCURSES_EXPORT()
66 if ((win->_line[i].text = typeCalloc(NCURSES_CH_T, ((size_t) c))) == 0) { in NCURSES_EXPORT()
67 (void) _nc_freewin(win); in NCURSES_EXPORT()
70 for (ptr = win->_line[i].text; ptr < win->_line[i].text + c; ptr++) in NCURSES_EXPORT()
74 returnWin(win); in NCURSES_EXPORT()
88 WINDOW *win = (WINDOW *) 0; in subpad() local
94 || ((win = derwin(orig, l, c, begy, begx)) == NULL)) in subpad()
[all …]
H A Dlib_refresh.c49 wrefresh(WINDOW *win) in NCURSES_EXPORT()
53 SCREEN *SP_PARM = _nc_screen_of(win); in NCURSES_EXPORT()
56 T((T_CALLED("wrefresh(%p)"), (void *) win)); in NCURSES_EXPORT()
58 if (win == 0) { in NCURSES_EXPORT()
60 } else if (win == CurScreen(SP_PARM)) { in NCURSES_EXPORT()
63 } else if ((code = wnoutrefresh(win)) == OK) { in NCURSES_EXPORT()
64 if (win->_clear) in NCURSES_EXPORT()
73 win->_clear = FALSE; in NCURSES_EXPORT()
79 wnoutrefresh(WINDOW *win) in wnoutrefresh() argument
90 SCREEN *SP_PARM = _nc_screen_of(win); in wnoutrefresh()
[all …]
H A Dlib_insch.c54 _nc_insert_ch(SCREEN *sp, WINDOW *win, chtype ch) in NCURSES_EXPORT()
70 for (count = (tabsize - (win->_curx % tabsize)); count > 0; count--) { in NCURSES_EXPORT()
71 if ((code = _nc_insert_ch(sp, win, ' ')) != OK) in NCURSES_EXPORT()
79 _nc_waddch_nosync(win, wch); in NCURSES_EXPORT()
84 WINDOW_EXT(win, addch_used) == 0 && in NCURSES_EXPORT()
89 if (win->_curx <= win->_maxx) { in NCURSES_EXPORT()
90 struct ldat *line = &(win->_line[win->_cury]); in NCURSES_EXPORT()
91 NCURSES_CH_T *end = &(line->text[win->_curx]); in NCURSES_EXPORT()
92 NCURSES_CH_T *temp1 = &(line->text[win->_maxx]); in NCURSES_EXPORT()
97 CHANGED_TO_EOL(line, win->_curx, win->_maxx); in NCURSES_EXPORT()
[all …]
H A Dlib_mvwin.c49 mvwin(WINDOW *win, int by, int bx) in NCURSES_EXPORT()
52 SCREEN *sp = _nc_screen_of(win); in NCURSES_EXPORT()
55 T((T_CALLED("mvwin(%p,%d,%d)"), (void *) win, by, bx)); in NCURSES_EXPORT()
57 if (!win || IS_PAD(win)) in NCURSES_EXPORT()
66 if (IS_SUBWIN(win)) { in NCURSES_EXPORT()
68 WINDOW *parent = win->_parent; in NCURSES_EXPORT()
75 if ((by - parent->_begy == win->_pary) && in NCURSES_EXPORT()
76 (bx - parent->_begx == win->_parx)) in NCURSES_EXPORT()
79 WINDOW *clone = dupwin(win); in NCURSES_EXPORT()
83 werase(win); /* Erase the original place */ in NCURSES_EXPORT()
[all …]
H A Dlib_addstr.c51 waddnstr(WINDOW *win, const char *astr, int n) in NCURSES_EXPORT()
56 T((T_CALLED("waddnstr(%p,%s,%d)"), (void *) win, _nc_visbufn(astr, n), n)); in NCURSES_EXPORT()
58 if (win && (str != 0) && (n != 0)) { in NCURSES_EXPORT()
62 ("... current %s", _traceattr(WINDOW_ATTRS(win)))); in NCURSES_EXPORT()
73 if (_nc_waddch_nosync(win, ch) == ERR) { in NCURSES_EXPORT()
78 _nc_synchook(win); in NCURSES_EXPORT()
85 waddchnstr(WINDOW *win, const chtype *astr, int n) in waddchnstr() argument
92 T((T_CALLED("waddchnstr(%p,%p,%d)"), (void *) win, (const void *) astr, n)); in waddchnstr()
94 if (!win || !astr) in waddchnstr()
97 y = win->_cury; in waddchnstr()
[all …]
H A Dlib_bkgd.c52 wbkgrndset(WINDOW *win, const ARG_CH_T ch) in wbkgrndset() argument
54 T((T_CALLED("wbkgrndset(%p,%s)"), (void *) win, _tracech_t(ch))); in wbkgrndset()
56 if (win) { in wbkgrndset()
57 attr_t off = AttrOf(win->_nc_bkgd); in wbkgrndset()
60 toggle_attr_off(WINDOW_ATTRS(win), off); in wbkgrndset()
61 toggle_attr_on(WINDOW_ATTRS(win), on); in wbkgrndset()
67 if (GetPair(win->_nc_bkgd) != 0) in wbkgrndset()
68 SET_WINDOW_PAIR(win, 0); in wbkgrndset()
70 SET_WINDOW_PAIR(win, pair); in wbkgrndset()
75 SetChar(win->_nc_bkgd, BLANK_TEXT, AttrOf(CHDEREF(ch))); in wbkgrndset()
[all …]
H A Dlib_delwin.c49 cannot_delete(WINDOW *win) in cannot_delete() argument
53 if (IS_PAD(win)) { in cannot_delete()
58 SCREEN *sp = _nc_screen_of(win); in cannot_delete()
62 if (&(p->win) == win) { in cannot_delete()
64 } else if (IS_SUBWIN(&(p->win)) in cannot_delete()
65 && p->win._parent == win) { in cannot_delete()
75 delwin(WINDOW *win) in delwin() argument
79 T((T_CALLED("delwin(%p)"), (void *) win)); in delwin()
82 if (win == 0 in delwin()
83 || cannot_delete(win)) { in delwin()
[all …]
H A Dlib_box.c50 _my_render(WINDOW *win, chtype ch) in _my_render() argument
54 wch = _nc_render(win, wch); in _my_render()
58 #define RENDER_WITH_DEFAULT(ch,def) w ## ch = _my_render(win, (ch == 0) ? def : ch)
60 #define RENDER_WITH_DEFAULT(ch,def) w ## ch = _nc_render(win, (ch == 0) ? def : ch)
64 wborder(WINDOW *win, in wborder() argument
75 (void *) win, in wborder()
85 if (!win) in wborder()
107 endx = win->_maxx; in wborder()
108 endy = win->_maxy; in wborder()
111 SetChar2(win->_line[0].text[i], wts); in wborder()
[all …]
H A Dresizeterm.c87 (void *) &(wp->win), in show_window_sizes()
88 (long) wp->win._maxy + 1, in show_window_sizes()
89 (long) wp->win._maxx + 1, in show_window_sizes()
90 (long) wp->win._begy, in show_window_sizes()
91 (long) wp->win._begx); in show_window_sizes()
123 ripped_window(WINDOW *win) in ripped_window() argument
128 if (win != 0) { in ripped_window()
130 SCREEN *sp = _nc_screen_of(win); in ripped_window()
133 if (rop->win == win && rop->line != 0) { in ripped_window()
147 ripped_bottom(WINDOW *win) in ripped_bottom() argument
[all …]
H A Dlib_touch.c52 is_linetouched(WINDOW *win, int line) in NCURSES_EXPORT()
54 T((T_CALLED("is_linetouched(%p,%d)"), (void *) win, line)); in NCURSES_EXPORT()
57 if (!win || (line > win->_maxy) || (line < 0)) { in NCURSES_EXPORT()
61 returnCode(win->_line[line].firstchar != _NOCHANGE ? TRUE : FALSE); in NCURSES_EXPORT()
65 is_wintouched(WINDOW *win) in is_wintouched() argument
67 T((T_CALLED("is_wintouched(%p)"), (void *) win)); in is_wintouched()
69 if (win) { in is_wintouched()
72 for (i = 0; i <= win->_maxy; i++) in is_wintouched()
73 if (win->_line[i].firstchar != _NOCHANGE) in is_wintouched()
80 wtouchln(WINDOW *win, int y, int n, int changed) in wtouchln() argument
[all …]
/freebsd/contrib/ncurses/ncurses/widechar/
H A Dlib_add_wch.c62 render_char(WINDOW *win, cchar_t ch) in render_char() argument
65 attr_t a = WINDOW_ATTRS(win); in render_char()
72 ch = win->_nc_bkgd; in render_char()
73 SetAttr(ch, a | AttrOf(win->_nc_bkgd)); in render_char()
74 if ((pair = GET_WINDOW_PAIR(win)) == 0) in render_char()
75 pair = GetPair(win->_nc_bkgd); in render_char()
79 a |= AttrOf(win->_nc_bkgd) & COLOR_MASK(a); in render_char()
82 if ((pair = GET_WINDOW_PAIR(win)) == 0) in render_char()
83 pair = GetPair(win->_nc_bkgd); in render_char()
91 _tracech_t2(1, CHREF(win->_nc_bkgd)), in render_char()
[all …]
H A Dlib_get_wstr.c46 wadd_wint(WINDOW *win, wint_t *src) in wadd_wint() argument
54 return wadd_wch(win, &tmp); in wadd_wint()
62 WipeOut(WINDOW *win, int y, int x, wint_t *first, wint_t *last, int echoed) in WipeOut() argument
67 int y1 = win->_cury; in WipeOut()
68 int x1 = win->_curx; in WipeOut()
71 wmove(win, y, x); in WipeOut()
73 wadd_wint(win, first + n); in WipeOut()
75 getyx(win, y, x); in WipeOut()
76 while (win->_cury < y1 in WipeOut()
77 || (win->_cury == y1 && win->_curx < x1)) in WipeOut()
[all …]
H A Dlib_ins_wch.c50 _nc_insert_wch(WINDOW *win, const cchar_t *wch) in NCURSES_EXPORT()
56 code = winsch(win, (chtype) CharOf(CHDEREF(wch))); in NCURSES_EXPORT()
61 if (win->_curx <= win->_maxx) { in NCURSES_EXPORT()
63 struct ldat *line = &(win->_line[win->_cury]); in NCURSES_EXPORT()
64 NCURSES_CH_T *end = &(line->text[win->_curx]); in NCURSES_EXPORT()
65 NCURSES_CH_T *temp1 = &(line->text[win->_maxx]); in NCURSES_EXPORT()
68 CHANGED_TO_EOL(line, win->_curx, win->_maxx); in NCURSES_EXPORT()
72 *temp1 = _nc_render(win, *wch); in NCURSES_EXPORT()
77 win->_curx = (NCURSES_SIZE_T) (win->_curx + cells); in NCURSES_EXPORT()
84 wins_wch(WINDOW *win, const cchar_t *wch) in wins_wch() argument
[all …]
/freebsd/usr.bin/talk/
H A Ddisplay.c85 display(xwin_t *win, wchar_t *wc) in display() argument
92 if (*wc == win->kill) in display()
94 else if (*wc == win->cerase) in display()
96 else if (*wc == win->werase) in display()
102 wadd_wch(win->x_win, makecchar(L'\n')); in display()
103 getyx(win->x_win, win->x_line, win->x_col); in display()
104 wrefresh(win->x_win); in display()
108 if (win == &my_win) { in display()
123 wmove(win->x_win, win->x_line, max(--win->x_col, 0)); in display()
124 getyx(win->x_win, win->x_line, win->x_col); in display()
[all …]
/freebsd/contrib/dialog/
H A Darrows.c34 #define add_acs(win, code) wadd_wch(win, W ## code) argument
36 #define add_acs(win, code) waddch(win, dlg_boxchar(code)) argument
71 dlg_draw_helpline(WINDOW *win, bool decorations) in dlg_draw_helpline() argument
77 && (bottom = getmaxy(win) - 1) > 0) { in dlg_draw_helpline()
81 int avail = (getmaxx(win) - other - 2); in dlg_draw_helpline()
87 getyx(win, cur_y, cur_x); in dlg_draw_helpline()
89 (void) wmove(win, bottom, other + (avail - limit) / 2); in dlg_draw_helpline()
90 waddch(win, '['); in dlg_draw_helpline()
91 dlg_print_text(win, dialog_vars.help_line, cols, &attr); in dlg_draw_helpline()
92 waddch(win, ']'); in dlg_draw_helpline()
[all …]
/freebsd/contrib/ncurses/menu/
H A Dm_post.c62 assert(menu->win); in MENU_EXPORT()
64 getyx(menu->win, item_y, item_x); in MENU_EXPORT()
70 wattron(menu->win, (int)menu->back); in MENU_EXPORT()
82 wattron(menu->win, (int)menu->fore); in MENU_EXPORT()
85 waddstr(menu->win, menu->mark); in MENU_EXPORT()
88 wattron(menu->win, (int)menu->fore); in MENU_EXPORT()
95 waddch(menu->win, ch); in MENU_EXPORT()
96 wattroff(menu->win, (int)menu->back); in MENU_EXPORT()
104 wattron(menu->win, (int)menu->grey); in MENU_EXPORT()
111 wattron(menu->win, (int)menu->fore); in MENU_EXPORT()
[all …]
/freebsd/sys/dev/exca/
H A Dexca.c176 exca_do_mem_map(struct exca_softc *sc, int win) in exca_do_mem_map() argument
184 map = &mem_map_index[win]; in exca_do_mem_map()
185 mem = &sc->mem[win]; in exca_do_mem_map()
228 printf("exca_do_mem_map win %d: %#02x%#02x %#02x%#02x " in exca_do_mem_map()
230 win, r1, r2, r3, r4, r5, r6, r7, in exca_do_mem_map()
248 int win; in exca_mem_map() local
250 for (win = 0; win < EXCA_MEM_WINS; win++) { in exca_mem_map()
251 if ((sc->memalloc & (1 << win)) in exca_mem_map()
318 int win; exca_mem_findmap() local
341 int win; exca_mem_set_flags() local
376 int win; exca_mem_unmap_res() local
395 int win; exca_mem_set_offset() local
453 exca_do_io_map(struct exca_softc * sc,int win) exca_do_io_map() argument
488 int win; exca_io_map() local
536 int win; exca_io_findmap() local
551 int win; exca_io_unmap_res() local
600 int win; exca_reset() local
[all...]
/freebsd/contrib/netbsd-tests/lib/libcurses/slave/
H A Dcurses_commands.c808 WINDOW *win; in cmd_waddbytes() local
814 if (sscanf(args[0], "%p", &win) == 0) { in cmd_waddbytes()
827 report_return(waddbytes(win, args[1], count)); in cmd_waddbytes()
834 WINDOW *win; in cmd_waddstr() local
839 if (sscanf(args[0], "%p", &win) == 0) { in cmd_waddstr()
846 report_return(waddstr(win, args[1])); in cmd_waddstr()
1335 WINDOW *win; in cmd_mvwaddbytes() local
1340 if (sscanf(args[0], "%p", &win) == 0) { in cmd_mvwaddbytes()
1365 report_return(mvwaddbytes(win, y, x, args[3], count)); in cmd_mvwaddbytes()
1373 WINDOW *win; in cmd_mvwaddch() local
[all …]
/freebsd/sys/arm/nvidia/drm2/
H A Dtegra_dc.c143 dc_parse_drm_format(struct tegra_fb *fb, struct dc_window *win) in dc_parse_drm_format() argument
223 if (win == NULL) in dc_parse_drm_format()
226 win->surface_kind = in dc_parse_drm_format()
228 win->block_height = fb->block_height; in dc_parse_drm_format()
231 win->transpose_xy = false; in dc_parse_drm_format()
232 win->flip_x = false; in dc_parse_drm_format()
233 win->flip_y = false; in dc_parse_drm_format()
237 win->transpose_xy = true; in dc_parse_drm_format()
238 win->flip_x = false; in dc_parse_drm_format()
239 win->flip_y = true; in dc_parse_drm_format()
[all …]

12345678910>>...12