libyui-ncurses
Loading...
Searching...
No Matches
NClabel Class Reference

Multi-line string, with optional hotkey, drawable. More...

#include <NCtext.h>

Inheritance diagram for NClabel:
Collaboration diagram for NClabel:

Public Member Functions

void stripHotkey ()
 NClabel (const NCstring &nstr="")
size_t width () const
unsigned height () const
wsze size () const
const std::list< NCstring > & getText () const
void drawAt (NCursesWindow &w, chtype style, chtype hotstyle, const wrect &dim, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, chtype style, chtype hotstyle, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, chtype style, chtype hotstyle, const wpos &pos, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, chtype style, chtype hotstyle, const wpos &pos, const wsze &sze, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, const NCstyle::StItem &istyle, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, const NCstyle::StItem &istyle, const wpos &pos, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, const NCstyle::StItem &istyle, const wpos &pos, const wsze &sze, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
void drawAt (NCursesWindow &w, const NCstyle::StItem &istyle, const wrect &dim, const NC::ADJUST adjust=NC::TOPLEFT, bool fillup=true) const
bool hasHotkey () const
wchar_t hotkey () const
std::wstring::size_type hotpos () const

Protected Member Functions

virtual void lset (const NCstring &ntext)
Protected Member Functions inherited from NCtext
void lbrset (const NCstring &ntext, size_t columns)
 NCtext (const NCstring &nstr="")
 NCtext (const NCstring &nstr, size_t columns)
unsigned Lines () const
size_t Columns () const
void append (const NCstring &line)
const std::list< NCstring > & Text () const
const NCstringoperator[] (std::wstring::size_type idx) const
const_iterator begin () const
const_iterator end () const

Protected Attributes

std::wstring::size_type hotline
Protected Attributes inherited from NCtext
std::list< NCstringmtext

Friends

std::ostream & operator<< (std::ostream &str, const NClabel &obj)

Additional Inherited Members

Protected Types inherited from NCtext
typedef std::list< NCstring >::iterator iterator
typedef std::list< NCstring >::const_iterator const_iterator

Detailed Description

Multi-line string, with optional hotkey, drawable.

Member Function Documentation

◆ lset()

virtual void NClabel::lset ( const NCstring & ntext)
inlineprotectedvirtual

Reimplemented from NCtext.


The documentation for this class was generated from the following files:
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCtext.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCtext.cc