cwidget
0.5.17
|
A structure that amalgamates a wchar_t together with attributes. More...
#include <curses++.h>
Public Member Functions | |
wchtype (const wchar_t &_ch, const attr_t &_attrs) | |
bool | operator== (const wchtype &other) const |
bool | operator!= (const wchtype &other) const |
bool | operator< (const wchtype &other) const |
bool | operator<= (const wchtype &other) const |
bool | operator> (const wchtype &other) const |
bool | operator>= (const wchtype &other) const |
Public Attributes | |
wchar_t | ch |
The character value associated with this string. More... | |
attr_t | attrs |
The text attributes (including color) associated with this character. | |
A structure that amalgamates a wchar_t together with attributes.
This is similar to cchar_t, but has the advantage of having well-defined properties and behavior; the routines to manipulate cchar_t's are vaguely documented and a lot of their behavior has to be guessed at or inferred from source code. I don't trust interfaces where I have to guess at their behavior, and I think that I won't lose too much efficiency by doing things this way.
wchar_t cwidget::wchtype::ch |
The character value associated with this string.
This code presently assumes that wchar_t is large enough to hold any single Unicode (UCS-4) character, which is ok for GNU but might not port everywhere.
Referenced by cwidget::style::apply_to().