#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 |
virtual void | setPrefix (const NClabel &newVal) |
virtual void | setPrefix (const std::string &newVal) |
int | prefixWidth () const |
wrect | prefixAdjusted (const wrect origRect) const |
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.
|
inline |
Return the prefix that is drawn (without delimiter) before the label. This can be used for an empty placeholder for tree hierarchy graphics.
Return a wrect that is adjusted for the size of the prefix, i.e. a little to the right and a little narrower.