43 friend std::ostream & operator<<( std::ostream & str,
const NCPadWidget & obj );
45 NCPadWidget & operator=(
const NCPadWidget & );
46 NCPadWidget(
const NCPadWidget & );
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
93 return wsze( padwin->height(), padwin->width() );
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 );
106 virtual void ScrollHead( NCursesWindow & w,
unsigned ccol );
109 virtual void AdjustPadSize( wsze & minsze );
112 virtual bool handleInput( wint_t key );
116 NCPadWidget( NCWidget * myparent = 0 );
117 NCPadWidget( YWidget * parent );
119 virtual ~NCPadWidget();
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
Screen dimension (screen size) in the order height, width: (H, W)
Definition position.h:154