40 virtual void HScroll(
unsigned total,
unsigned visible,
unsigned start ) {}
42 virtual void VScroll(
unsigned total,
unsigned visible,
unsigned start ) {}
44 virtual void ScrollHead(
NCursesWindow & w,
unsigned ccol ) {}
46 virtual void AdjustPadSize(
wsze & minsze ) {}
66 redirect->ScrollHead( w, ccol );
69 void VSet(
unsigned total,
unsigned visible,
unsigned start )
71 redirect->VScroll( total, visible, start );
74 void HSet(
unsigned total,
unsigned visible,
unsigned start )
76 redirect->HScroll( total, visible, start );
79 virtual void SetPadSize(
wsze & minsze )
81 redirect->AdjustPadSize( minsze );
87 void SendSchrollCB(
NCSchrollCB * to ) { redirect = ( to ? to : this ); }
89 virtual void SendHead() {}
131 virtual int dirtyPad() { dirty =
false;
return setpos( CurPos() ); }
133 virtual int setpos(
const wpos & newpos );
135 int adjpos(
const wpos & offset )
137 return setpos( CurPos() + offset );
140 virtual void updateScrollHint();
164 virtual void resize(
wsze nsze );
165 virtual void wRecoded();
166 virtual void setDirty() { dirty =
true; }
169 virtual int setpos() {
return setpos( CurPos() ); }
171 virtual wpos CurPos()
const {
return srect.Pos; }
173 int ScrlTo(
const wpos & newpos )
175 return setpos( newpos );
178 int ScrlLine(
const int line )
180 return setpos(
wpos( line, srect.Pos.C ) );
183 int ScrlCol(
const int col )
185 return setpos(
wpos( srect.Pos.L, col ) );
188 int ScrlDown(
const int lines = 1 )
193 int ScrlUp(
const int lines = 1 )
198 int ScrlRight(
const int cols = 1 )
203 int ScrlLeft(
const int cols = 1 )
208 virtual bool handleInput( wint_t key );
virtual void directDraw(NCursesWindow &w, const wrect at, unsigned lineno)
Directly draw a table item at a specific location.
int vheight() const
The (virtual) height of the Pad (even if truncated).
static int lines()
Number of lines on terminal, not window.
int height() const
Number of lines in this window.
static int cols()
Number of cols on terminal, not window.
WINDOW * w
the curses WINDOW
bool pageing() const
Whether the Pad is truncated (we're pageing).