Home | History | Annotate | Download | only in libcurses

Lines Matching refs:wcval

52 getcchar(const cchar_t *wcval, wchar_t *wch, attr_t *attrs,
61 wp = wmemchr(wcval->vals, L'\0', CCHARW_MAX);
62 len = wp ? wp - wcval->vals : CCHARW_MAX;
71 *attrs = wcval->attributes;
73 *color_pair = PAIR_NUMBER(wcval->attributes);
76 wmemcpy(wch, wcval->vals, len);
87 setcchar(cchar_t *wcval, const wchar_t *wch, const attr_t attrs,
111 memset(wcval, 0, sizeof(*wcval));
113 wcval->attributes = attrs & ~__COLOR;
115 wcval->attributes |= COLOR_PAIR(color_pair);
116 wcval->elements = len;
117 memcpy(&wcval->vals, wch, len * sizeof(wchar_t));