cwidget  0.5.16
Public Member Functions | List of all members
cwidget::wchstring Class Reference
Inheritance diagram for cwidget::wchstring:
basic_string

Public Member Functions

 wchstring (const std::basic_string< wchtype > &s)
 wchstring (const std::wstring &s)
 Create a new wchstring with empty attribute information.
 wchstring (const std::wstring &s, const style &st)
 Create a new wchstring from the given wide string with the given attributes.
 wchstring (const wchstring &s)
 wchstring (const wchstring &s, const style &st)
 Apply the given style to the given chstring, and set ourselves to the result.
 wchstring (const wchstring &s, size_t loc, size_t n=npos)
 wchstring (size_t n, wchtype c)
 wchstring (size_t n, wchar_t c, attr_t a)
void apply_style (const style &st)
 Change the attributes of this string by using the given style.
int width () const
 Return the number of columns occupied by this string.

Constructor & Destructor Documentation

cwidget::wchstring::wchstring ( const std::wstring &  s)

Create a new wchstring with empty attribute information.

Member Function Documentation

void cwidget::wchstring::apply_style ( const style st)

Change the attributes of this string by using the given style.

References cwidget::style::apply_to().

Referenced by wchstring().

int cwidget::wchstring::width ( ) const

Return the number of columns occupied by this string.

Referenced by cwidget::widgets::button::paint().


The documentation for this class was generated from the following files: