33 #include "NCTablePadBase.h"
34 #include "NCTableItem.h"
82 bool setItemByKey(
int key );
84 void AssertMinCols(
unsigned num )
89 void SetSepChar(
const chtype colSepchar )
91 _itemStyle.SetSepChar( colSepchar );
94 void SetSepWidth(
const unsigned sepwidth )
99 unsigned HotCol()
const
101 return _itemStyle.HotCol();
104 void SetHotCol(
int hcol )
106 _itemStyle.SetHotCol( hcol );
142 #endif // NCTablePad_h
static int lines()
Number of lines on terminal, not window.
virtual int DoRedraw()
Redraw the pad.
static int cols()
Number of cols on terminal, not window.
WINDOW * w
the curses WINDOW
virtual bool handleInput(wint_t key)
Handle a keyboard input event.
void AssertMinCols(unsigned num)
Ensure we know width and alignment for at least num columns.
int findIndexById(int id) const
Find the item index in a sorted table.
void SetSepWidth(const unsigned sepWidth)
total width of space between adjacent columns, including the separator character
A rectangle is defined by its position and size: wpos Pos, wsze Sze.
An NCPad for an NCTable or an NCTree.
virtual void directDraw(NCursesWindow &w, const wrect at, unsigned lineno)
Directly draw a table item at a specific location.