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 );
129 #endif // NCPadWidget_h
Screen dimension (screen size) in the order height, width: (H, W)
Multi-line string, with optional hotkey, drawable.
Interface for scroll callbacks.
int width() const
Number of columns in this window.
A virtual window with a real viewport (which is NCursesWindow) and a scrolling mechanism.
int height() const
Number of lines in this window.
A rectangle is defined by its position and size: wpos Pos, wsze Sze.