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

#include <NCTableItem.h>

Inheritance diagram for NCTableCol:

Public Types

enum  STYLE {
  NONE = 0 , PLAIN , DATA , ACTIVEDATA ,
  HINT , SEPARATOR
}

Public Member Functions

 NCTableCol (const NCstring &label="", STYLE st=ACTIVEDATA)
const NClabelLabel () const
virtual void SetLabel (const NClabel &newVal)
virtual void SetLabel (const std::string &newVal)
const NClabelprefix () 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)

Detailed Description

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.

Member Function Documentation

◆ prefix()

const NClabel & NCTableCol::prefix ( ) const
inline

Return the prefix that is drawn (without delimiter) before the label. This can be used for an empty placeholder for tree hierarchy graphics.

◆ prefixAdjusted()

wrect NCTableCol::prefixAdjusted ( const wrect origRect) const

Return a wrect that is adjusted for the size of the prefix, i.e. a little to the right and a little narrower.


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/NCTableItem.h
  • /builddir/build/BUILD/libyui-4.6.2-build/libyui-4.6.2/libyui-ncurses/src/NCTableItem.cc