libyui-ncurses  2.57.2
NCTableTag Class Reference

A column (one cell) used as a selection marker: [ ]/[x] or ( )/(x). More...

#include <NCTableItem.h>

Inheritance diagram for NCTableTag:
Collaboration diagram for NCTableTag:

Public Member Functions

 NCTableTag (YItem *item, bool sel=false, bool singleSel=false)
 Constructor. More...
 
virtual void SetLabel (const NClabel &)
 
virtual void DrawAt (NCursesWindow &w, const wrect at, NCTableStyle &tableStyle, NCTableLine::STATE linestate, unsigned colidx) const
 
virtual bool Selected () const
 
virtual void SetSelected (bool sel)
 
virtual bool SingleSelection () const
 
YItem * origItem () const
 
- Public Member Functions inherited from NCTableCol
 NCTableCol (const NCstring &label="", STYLE st=ACTIVEDATA)
 
const NClabelLabel () const
 
virtual void SetLabel (const std::string &newVal)
 
const NClabelprefix () 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
 
void stripHotkey ()
 
bool hasHotkey () const
 
unsigned char hotkey () const
 

Additional Inherited Members

- Public Types inherited from NCTableCol
enum  STYLE {
  NONE = 0, PLAIN, DATA, ACTIVEDATA,
  HINT, SEPARATOR
}
 
- Protected Member Functions inherited from NCTableCol
chtype setBkgd (NCursesWindow &w, NCTableStyle &tableStyle, NCTableLine::STATE linestate, STYLE colstyle) const
 

Detailed Description

A column (one cell) used as a selection marker: [ ]/[x] or ( )/(x).

Definition at line 646 of file NCTableItem.h.

Constructor & Destructor Documentation

◆ NCTableTag()

NCTableTag::NCTableTag ( YItem *  item,
bool  sel = false,
bool  singleSel = false 
)
inline

Constructor.

Parameters
item(must not be nullptr, not owned)
selcurrently selected, draw an x inside
singleSelif true draw this in a radio-button style (x); if false draw this in a checkbox style [x]

Definition at line 658 of file NCTableItem.h.


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