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

Public Member Functions

 wchstring (const std::basic_string< wchtype > &s)
 
 wchstring (const std::wstring &s)
 Create a new wchstring with empty attribute information. More...
 
 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. More...
 
int width () const
 Return the number of columns occupied by this string. More...
 

Constructor & Destructor Documentation

◆ wchstring()

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

Create a new wchstring with empty attribute information.

Member Function Documentation

◆ apply_style()

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 cwidget::clipbox(), and wchstring().

◆ width()

int cwidget::wchstring::width ( ) const

Return the number of columns occupied by this string.

Referenced by cwidget::dropbox(), cwidget::flowbox(), cwidget::chstring::operator=(), cwidget::widgets::button::paint(), and cwidget::style_fragment().


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