43 friend std::ostream & operator<<( std::ostream & str,
const NCPadWidget & obj );
69 void startMultidraw() { multidraw =
true; }
71 void stopMultidraw() { multidraw =
false; DrawPad(); }
73 bool inMultidraw()
const {
return multidraw; }
77 virtual const char * location()
const {
return "NCPadWidget"; }
80 unsigned labelWidth()
const {
return label.width(); }
82 virtual void wCreate(
const wrect & newrect );
83 virtual void wDelete();
84 virtual void wRedraw();
85 virtual void wRecoded();
88 wsze defPadSze()
const
96 virtual NCPad * CreatePad();
97 virtual void DrawPad();
100 void AdjustPad(
wsze nsze );
104 virtual void HScroll(
unsigned total,
unsigned visible,
unsigned start );
105 virtual void VScroll(
unsigned total,
unsigned visible,
unsigned start );
109 virtual void AdjustPadSize(
wsze & minsze );
112 virtual bool handleInput( wint_t key );
121 size_t Columns() {
return minPadSze.W; }
123 void setLabel(
const NClabel & nlabel );
Interface for scroll callbacks.
Definition NCPad.h:36
Multi-line string, with optional hotkey, drawable.
Definition NCtext.h:82
C++ class for windows.
Definition ncursesw.h:907
int width() const
Definition ncursesw.h:1077
int height() const
Definition ncursesw.h:1072
A rectangle is defined by its position and size: wpos Pos, wsze Sze.
Definition position.h:194
Screen dimension (screen size) in the order height, width: (H, W)
Definition position.h:154