|
libyui-ncurses
2.57.2
|
One cell in an NCTableLine with a label and a cell-specific style. More...
#include <NCTableItem.h>

Public Types | |
| enum | STYLE { NONE = 0, PLAIN, DATA, ACTIVEDATA, HINT, SEPARATOR } |
Public Member Functions | |
| NCTableCol (const NCstring &label="", STYLE st=ACTIVEDATA) | |
| const NClabel & | Label () const |
| virtual void | SetLabel (const NClabel &newVal) |
| virtual void | SetLabel (const std::string &newVal) |
| const NClabel & | prefix () const |
| Return the prefix that is drawn (without delimiter) before the label. More... | |
| virtual void | setPrefix (const NClabel &newVal) |
| virtual void | setPrefix (const std::string &newVal) |
| int | prefixWidth () const |
| wrect | prefixAdjusted (const wrect origRect) const |
| Return a wrect that is adjusted for the size of the prefix, i.e. More... | |
| virtual wsze | Size () const |
| virtual void | DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, NCTableLine::STATE linestate, unsigned colidx) const |
| void | stripHotkey () |
| bool | hasHotkey () const |
| unsigned char | hotkey () const |
Protected Member Functions | |
| chtype | setBkgd (NCursesWindow &w, NCTableStyle &tableStyle, NCTableLine::STATE linestate, STYLE colstyle) const |
Friends | |
| std::ostream & | operator<< (std::ostream &str, const NCTableCol &obj) |
One cell in an NCTableLine with a label and a cell-specific style.
'Col' in this context means just this one cell, not the entire column in the table.
The style (NCTableCol::STYLE) is just color information, don't confuse with table sizing+alignment info, NCTableStyle.
Definition at line 421 of file NCTableItem.h.
|
inline |
Return the prefix that is drawn (without delimiter) before the label.
This can be used for an empty placeholder for tree hierarchy graphics.
Definition at line 451 of file NCTableItem.h.
Return a wrect that is adjusted for the size of the prefix, i.e.
a little to the right and a little narrower.
Definition at line 640 of file NCTableItem.cc.