30#include <ncursesw/curses.h>
31#ifndef NCURSES_CXX_IMPEXP
32#define NCURSES_CXX_IMPEXP NCURSES_EXPORT_GENERAL_IMPORT
34#include <ncursesw/etip.h>
48#define UNDEF(name) CUR_ ##name
51inline int UNDEF( addch )( chtype ch ) {
return addch( ch ); }
54#define addch UNDEF(addch)
58inline int UNDEF( add_wch )( cchar_t * cch ) {
return add_wch( cch ); }
61#define add_wch UNDEF(add_wch)
65inline int UNDEF( echochar )( chtype ch ) {
return echochar( ch ); }
68#define echochar UNDEF(echochar)
72inline int UNDEF( insdelln )(
int n ) {
return insdelln( n ); }
75#define insdelln UNDEF(insdelln)
80inline int UNDEF( addstr )(
const char * str ) {
return addstr( (
char *) str ); }
83#define addstr UNDEF(addstr)
88inline int UNDEF( addwstr )(
const wchar_t * str ) {
return addwstr( (
wchar_t *) str ); }
91#define addwstr UNDEF(addwstr)
95inline int UNDEF( attron )( chtype at ) {
return attron( at ); }
98#define attron UNDEF(attron)
102inline int UNDEF( attroff )( chtype at ) {
return attroff( at ); }
105#define attroff UNDEF(attroff)
109inline chtype UNDEF( attrset )( chtype at ) {
return attrset( at ); }
112#define attrset UNDEF(attrset)
116inline int UNDEF( border )( chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br )
117{
return border( ls, rs, ts, bs, tl, tr, bl, br ); }
120#define border UNDEF(border)
124inline int UNDEF( box )( WINDOW *win,
int v,
int h ) {
return box( win, v, h ); }
127#define box UNDEF(box)
131inline int UNDEF( mvwhline )( WINDOW *win,
int y,
int x, chtype c,
int n )
133 return mvwhline( win, y, x, c, n );
137#define mvwhline UNDEF(mvwhline)
141inline int UNDEF( mvwvline )( WINDOW *win,
int y,
int x, chtype c,
int n )
143 return mvwvline( win, y, x, c, n );
147#define mvwvline UNDEF(mvwvline)
151inline int UNDEF( clear )() {
return clear(); }
154#define clear UNDEF(clear)
158inline int UNDEF( clearok )( WINDOW* win,
bool bf ) {
return clearok( win, bf ); }
161#define clearok UNDEF(clearok)
163extern "C" int clearok( WINDOW*,
bool );
167inline int UNDEF( clrtobot )() {
return clrtobot(); }
170#define clrtobot UNDEF(clrtobot)
174inline int UNDEF( clrtoeol )() {
return clrtoeol(); }
177#define clrtoeol UNDEF(clrtoeol)
181inline int UNDEF( delch )() {
return delch(); }
184#define delch UNDEF(delch)
188inline int UNDEF( deleteln )() {
return deleteln(); }
191#define deleteln UNDEF(deleteln)
195inline int UNDEF( erase )() {
return erase(); }
198#define erase UNDEF(erase)
202inline int UNDEF( flushok )( WINDOW* _win,
bool _bf )
204 return flushok( _win, _bf );
208#define flushok UNDEF(flushok)
214inline int UNDEF( getch )() {
return getch(); }
217#define getch UNDEF(getch)
221inline int UNDEF( getstr )(
char *_str ) {
return getstr( _str ); }
224#define getstr UNDEF(getstr)
228inline int UNDEF( instr )(
char *_str ) {
return instr( _str ); }
231#define instr UNDEF(instr)
235inline int UNDEF( innstr )(
char *_str,
int n ) {
return innstr( _str, n ); }
238#define innstr UNDEF(innstr)
242inline int UNDEF( mvwinnstr )( WINDOW *win,
int y,
int x,
char *_str,
int n )
244 return mvwinnstr( win, y, x, _str, n );
248#define mvwinnstr UNDEF(mvwinnstr)
252inline int UNDEF( mvinnstr )(
int y,
int x,
char *_str,
int n )
254 return mvinnstr( y, x, _str, n );
258#define mvinnstr UNDEF(mvinnstr)
262inline int UNDEF( winsstr )( WINDOW *w,
const char *_str )
264 return winsstr( w, _str );
268#define winsstr UNDEF(winsstr)
272inline int UNDEF( mvwinsstr )( WINDOW *w,
int y,
int x,
const char *_str )
274 return mvwinsstr( w, y, x, _str );
278#define mvwinsstr UNDEF(mvwinsstr)
282inline int UNDEF( insstr )(
const char *_str )
284 return insstr( _str );
288#define insstr UNDEF(insstr)
292inline int UNDEF( mvinsstr )(
int y,
int x,
const char *_str )
294 return mvinsstr( y, x, _str );
298#define mvinsstr UNDEF(mvinsstr)
302inline int UNDEF( insnstr )(
const char *_str,
int n )
304 return insnstr( _str, n );
308#define insnstr UNDEF(insnstr)
312inline int UNDEF( mvwinsnstr )( WINDOW *w,
int y,
int x,
const char *_str,
int n )
314 return mvwinsnstr( w, y, x, _str, n );
318#define mvwinsnstr UNDEF(mvwinsnstr)
322inline int UNDEF( mvinsnstr )(
int y,
int x,
const char *_str,
int n )
324 return mvinsnstr( y, x, _str, n );
328#define mvinsnstr UNDEF(mvinsnstr)
332inline int UNDEF( getnstr )(
char *_str,
int n ) {
return getnstr( _str, n ); }
335#define getnstr UNDEF(getnstr)
339inline void UNDEF( getyx )(
const WINDOW* win,
int& y,
int& x )
345#define getyx UNDEF(getyx)
349inline void UNDEF( getbegyx )( WINDOW* win,
int& y,
int& x ) { getbegyx( win, y, x ); }
352#define getbegyx UNDEF(getbegyx)
356inline void UNDEF( getmaxyx )( WINDOW* win,
int& y,
int& x ) { getmaxyx( win, y, x ); }
359#define getmaxyx UNDEF(getmaxyx)
363inline int UNDEF( hline )( chtype ch,
int n ) {
return hline( ch, n ); }
366#define hline UNDEF(hline)
370inline chtype UNDEF( inch )() {
return inch(); }
373#define inch UNDEF(inch)
377inline int UNDEF( in_wch )( cchar_t * cch ) {
return in_wch( cch ); }
380#define in_wch UNDEF(in_wch)
384inline int UNDEF( insch )(
char c ) {
return insch( c ); }
387#define insch UNDEF(insch)
391inline int UNDEF( ins_wch )(
const cchar_t *c ) {
return ins_wch( c ); }
394#define ins_wch UNDEF(ins_wch)
398inline int UNDEF( mvwins_wch )( WINDOW *w,
int y,
int x,
const cchar_t *cchar ) {
return mvwins_wch( w, y, x, cchar ); }
401#define mvwins_wch UNDEF(mvwins_wch)
405inline int UNDEF( insertln )() {
return insertln(); }
408#define insertln UNDEF(insertln)
412inline int UNDEF( leaveok )( WINDOW* win,
bool bf ) {
return leaveok( win, bf ); }
415#define leaveok UNDEF(leaveok)
417extern "C" int leaveok( WINDOW* win,
bool bf );
421inline int UNDEF( move )(
int x,
int y ) {
return move( x, y ); }
424#define move UNDEF(move)
428inline int UNDEF( refresh )() {
return refresh(); }
431#define refresh UNDEF(refresh)
435inline int UNDEF( redrawwin )( WINDOW *win ) {
return redrawwin( win ); }
438#define redrawwin UNDEF(redrawwin)
442inline int UNDEF( scrl )(
int l ) {
return scrl( l ); }
445#define scrl UNDEF(scrl)
449inline int UNDEF( scroll )( WINDOW *win ) {
return scroll( win ); }
452#define scroll UNDEF(scroll)
456inline int UNDEF( scrollok )( WINDOW* win,
bool bf ) {
return scrollok( win, bf ); }
459#define scrollok UNDEF(scrollok)
461#if defined(__NCURSES_H)
462extern "C" int scrollok( WINDOW*,
bool );
464extern "C" int scrollok( WINDOW*,
char );
469inline int UNDEF( setscrreg )(
int t,
int b ) {
return setscrreg( t, b ); }
472#define setscrreg UNDEF(setscrreg)
476inline int UNDEF( standend )() {
return standend(); }
479#define standend UNDEF(standend)
483inline int UNDEF( standout )() {
return standout(); }
486#define standout UNDEF(standout)
490inline WINDOW *UNDEF( subpad )( WINDOW *p,
int l,
int c,
int y,
int x )
491{
return derwin( p, l, c, y, x ); }
494#define subpad UNDEF(subpad)
498#if NCURSES_VERSION_MAJOR < 5
499inline int UNDEF( timeout )(
int delay ) {
return timeout( delay ); }
502inline void UNDEF( timeout )(
int delay ) { timeout( delay ); }
506#define timeout UNDEF(timeout)
510inline int UNDEF( touchline )( WINDOW *win,
int s,
int c )
511{
return touchline( win, s, c ); }
514#define touchline UNDEF(touchline)
518inline int UNDEF( touchwin )( WINDOW *win ) {
return touchwin( win ); }
521#define touchwin UNDEF(touchwin)
525inline int UNDEF( untouchwin )( WINDOW *win ) {
return untouchwin( win ); }
528#define untouchwin UNDEF(untouchwin)
532inline int UNDEF( vline )( chtype ch,
int n ) {
return vline( ch, n ); }
535#define vline UNDEF(vline)
539inline int UNDEF( waddstr )( WINDOW *win,
char *str ) {
return waddstr( win, str ); }
542#define waddstr UNDEF(waddstr)
546inline int UNDEF( waddwstr )( WINDOW *win,
wchar_t *str ) {
return waddwstr( win, str ); }
549#define waddwstr UNDEF(waddwstr)
553inline int UNDEF( mvwaddwstr )( WINDOW *win,
int y,
int x,
wchar_t *str )
554{
return mvwaddwstr( win, y, x, str ); }
557#define mvwaddwstr UNDEF(mvwaddwstr)
561inline int UNDEF( waddchstr )( WINDOW *win, chtype *at ) {
return waddchstr( win, at ); }
564#define waddchstr UNDEF(waddchstr)
568inline int UNDEF( wstandend )( WINDOW *win ) {
return wstandend( win ); }
571#define wstandend UNDEF(wstandend)
575inline int UNDEF( wstandout )( WINDOW *win ) {
return wstandout( win ); }
578#define wstandout UNDEF(wstandout)
583inline int UNDEF( wattroff )( WINDOW *win,
int att ) {
return wattroff( win, att ); }
586#define wattroff UNDEF(wattroff)
590inline int UNDEF( chgat )(
int n, attr_t attr,
short color,
const void *opts )
592 return chgat( n, attr, color, opts );
596#define chgat UNDEF(chgat)
600inline int UNDEF( mvchgat )(
int y,
int x,
int n,
601 attr_t attr,
short color,
const void *opts )
603 return mvchgat( y, x, n, attr, color, opts );
607#define mvchgat UNDEF(mvchgat)
611inline int UNDEF( mvwchgat )( WINDOW *win,
int y,
int x,
int n,
612 attr_t attr,
short color,
const void *opts )
614 return mvwchgat( win, y, x, n, attr, color, opts );
618#define mvwchgat UNDEF(mvwchgat)
622inline int UNDEF( wattrset )( WINDOW *win,
int att ) {
return wattrset( win, att ); }
625#define wattrset UNDEF(wattrset)
629inline chtype UNDEF( winch )(
const WINDOW* win ) {
return winch( win ); }
632#define winch UNDEF(winch)
636inline int UNDEF( mvwaddch )( WINDOW *win,
int y,
int x,
const chtype ch )
637{
return mvwaddch( win, y, x, ch ); }
640#define mvwaddch UNDEF(mvwaddch)
644inline int UNDEF( mvwaddchnstr )( WINDOW *win,
int y,
int x, chtype *str,
int n )
645{
return mvwaddchnstr( win, y, x, str, n ); }
648#define mvwaddchnstr UNDEF(mvwaddchnstr)
652inline int UNDEF( mvwaddchstr )( WINDOW *win,
int y,
int x, chtype *str )
653{
return mvwaddchstr( win, y, x, str ); }
656#define mvwaddchstr UNDEF(mvwaddchstr)
660inline int UNDEF( addnstr )(
const char *str,
int n )
661{
return addnstr( (
char *) str, n ); }
664#define addnstr UNDEF(addnstr)
668inline int UNDEF( addnwstr )(
const wchar_t *str,
int n )
669{
return addnwstr( (
wchar_t *) str, n ); }
672#define addnwstr UNDEF(addnwstr)
676inline int UNDEF( mvwaddnstr )( WINDOW *win,
int y,
int x,
const char *str,
int n )
677{
return mvwaddnstr( win, y, x, (
char *) str, n ); }
680#define mvwaddnstr UNDEF(mvwaddnstr)
684inline int UNDEF( mvwaddnwstr )( WINDOW *win,
int y,
int x,
const wchar_t *str,
int n )
685{
return mvwaddnwstr( win, y, x, (
wchar_t *) str, n ); }
688#define mvwaddnwstr UNDEF(mvwaddnwstr)
692inline int UNDEF( mvwaddstr )( WINDOW *win,
int y,
int x,
const char * str )
693{
return mvwaddstr( win, y, x, (
char *) str ); }
696#define mvwaddstr UNDEF(mvwaddstr)
700inline int UNDEF( mvwdelch )( WINDOW *win,
int y,
int x )
701{
return mvwdelch( win, y, x ); }
704#define mvwdelch UNDEF(mvwdelch)
708inline int UNDEF( mvwgetch )( WINDOW *win,
int y,
int x ) {
return mvwgetch( win, y, x );}
711#define mvwgetch UNDEF(mvwgetch)
715inline int UNDEF( mvwgetstr )( WINDOW *win,
int y,
int x,
char *str )
716{
return mvwgetstr( win, y, x, str );}
719#define mvwgetstr UNDEF(mvwgetstr)
723inline int UNDEF( mvwgetnstr )( WINDOW *win,
int y,
int x,
char *str,
int n )
724{
return mvwgetnstr( win, y, x, str, n );}
727#define mvwgetnstr UNDEF(mvwgetnstr)
731inline chtype UNDEF( mvwinch )( WINDOW *win,
int y,
int x )
733 return mvwinch( win, y, x );
737#define mvwinch UNDEF(mvwinch)
741inline int UNDEF( mvwin_wch )( WINDOW *win,
int y,
int x, cchar_t * cch )
743 return mvwin_wch( win, y, x, cch );
747#define mvwin_wch UNDEF(mvwin_wch)
751inline int UNDEF( mvwinsch )( WINDOW *win,
int y,
int x,
char c )
752{
return mvwinsch( win, y, x, c ); }
755#define mvwinsch UNDEF(mvwinsch)
759inline int UNDEF( mvaddch )(
int y,
int x, chtype ch )
760{
return mvaddch( y, x, ch ); }
763#define mvaddch UNDEF(mvaddch)
767inline int UNDEF( mvaddnstr )(
int y,
int x,
const char *str,
int n )
768{
return mvaddnstr( y, x, (
char *) str, n ); }
771#define mvaddnstr UNDEF(mvaddnstr)
775inline int UNDEF( mvaddstr )(
int y,
int x,
const char * str )
776{
return mvaddstr( y, x, (
char *) str ); }
779#define mvaddstr UNDEF(mvaddstr)
783inline int UNDEF( mvwadd_wch )( WINDOW *win,
int y,
int x,
const cchar_t * cch )
784{
return mvwadd_wch( win, y, x, ( cchar_t* )cch ); }
787#define mvwadd_wch UNDEF(mvwadd_wch)
791inline int UNDEF( mvdelch )(
int y,
int x ) {
return mvdelch( y, x );}
794#define mvdelch UNDEF(mvdelch)
798inline int UNDEF( mvgetch )(
int y,
int x ) {
return mvgetch( y, x );}
801#define mvgetch UNDEF(mvgetch)
805inline int UNDEF( mvgetstr )(
int y,
int x,
char *str ) {
return mvgetstr( y, x, str );}
808#define mvgetstr UNDEF(mvgetstr)
812inline int UNDEF( mvgetnstr )(
int y,
int x,
char *str,
int n )
814 return mvgetnstr( y, x, str, n );
818#define mvgetnstr UNDEF(mvgetnstr)
822inline chtype UNDEF( mvinch )(
int y,
int x ) {
return mvinch( y, x );}
825#define mvinch UNDEF(mvinch)
829inline int UNDEF( mvinsch )(
int y,
int x,
char c )
830{
return mvinsch( y, x, c ); }
833#define mvinsch UNDEF(mvinsch)
837inline void UNDEF( napms )(
unsigned long x ) { napms( x ); }
840#define napms UNDEF(napms)
844inline int UNDEF( fixterm )( void ) {
return fixterm(); }
847#define fixterm UNDEF(fixterm)
851inline int UNDEF( resetterm )( void ) {
return resetterm(); }
854#define resetterm UNDEF(resetterm)
858inline int UNDEF( saveterm )( void ) {
return saveterm(); }
861#define saveterm UNDEF(saveterm)
865inline int UNDEF( crmode )( void ) {
return crmode(); }
868#define crmode UNDEF(crmode)
872inline int UNDEF( nocrmode )( void ) {
return nocrmode(); }
875#define nocrmode UNDEF(nocrmode)
879inline chtype UNDEF( getbkgd )(
const WINDOW *win ) {
return getbkgd( win ); }
882#define getbkgd UNDEF(getbkgd)
886inline int UNDEF( bkgd )( chtype ch ) {
return bkgd( ch ); }
889#define bkgd UNDEF(bkgd)
893inline void UNDEF( bkgdset )( chtype ch ) { bkgdset( ch ); }
896#define bkgdset UNDEF(bkgdset)
899template <
class _Tp>
inline int ncursesMaxCoord() {
return INT_MAX; }
900template <>
inline int ncursesMaxCoord<short>() {
return SHRT_MAX; }
908 friend std::ostream & operator<<( std::ostream & Stream,
const NCursesWindow & Obj_Cv );
909 friend std::ostream & operator<<( std::ostream & Stream,
const NCursesWindow * Obj_Cv );
911 friend class NCursesMenu;
912 friend class NCursesForm;
915 static bool b_initialized;
916 static void initialize();
917 static int ripoff_init( WINDOW *,
int );
921 short getcolor(
int getback )
const;
923 static int setpalette(
short fore,
short back,
short pair );
924 static int colorInitialized;
936 void err_handler(
const char * )
const THROWS( NCursesException );
1005 char absrel =
'a' );
1015 NCursesWindow
Clone();
1036 int ( *init )( NCursesWindow& win ) );
1044 static int lines() { initialize();
return LINES; }
1049 static int cols() { initialize();
return COLS; }
1054 static int tabsize() { initialize();
return TABSIZE; }
1092 int maxx()
const {
return getmaxx(
w) == ERR ? ERR : getmaxx(
w)-1; }
1097 int maxy()
const {
return getmaxy(
w) == ERR ? ERR : getmaxy(
w)-1; }
1100 static int maxcoord() {
return ncursesMaxCoord<NCURSES_SIZE_T>(); }
1104 wpos begpos()
const {
return wpos(
begy(),
begx() ); }
1106 wpos maxpos()
const {
return wpos(
maxy(),
maxx() ); }
1108 wrect area()
const {
return wrect( begpos(), size() ); }
1128 int setpalette(
short fore,
short back );
1142 virtual int mvwin(
int begin_y,
int begin_x )
1144 return ::mvwin(
w, begin_y, begin_x );
1147 int mvsubwin(
NCursesWindow* sub,
int begin_y,
int begin_x );
1149 virtual int resize(
int lines,
int columns );
1157 int move(
int y,
int x ) { return ::wmove(
w, y, x ); }
1167 int mvcur(
int oldrow,
int oldcol,
int newrow,
int newcol )
const
1169 return ::mvcur( oldrow, oldcol, newrow, newcol );
1176 int nodelay(
bool bf ) { return ::nodelay(
w, bf ); }
1186 int getch(
int y,
int x ) { return ::mvwgetch(
w, y, x ); }
1195 return ::wgetnstr(
w, str, n );
1202 int getstr(
int y,
int x,
char* str,
int n = -1 )
1204 return ::mvwgetnstr(
w, y, x, str, n );
1212 int instr(
char *s,
int n = -1 ) { return ::winnstr(
w, s, n ); }
1218 int instr(
int y,
int x,
char *s,
int n = -1 )
1220 return ::mvwinnstr(
w, y, x, s, n );
1232 return addch((
const chtype )( ch&A_CHARTEXT ) );
1235 int addch(
const chtype ch ) { return ::waddch(
w, ch ); }
1246 int add_wch(
const cchar_t * cch ) { return ::wadd_wch(
w, cch ); }
1248 int add_wch(
int y,
int x,
const cchar_t * cch ) {
return mvwadd_wch(
w, y, x, cch ); }
1254 int addch(
int y,
int x,
const char ch )
1256 return addch( y, x, (
const chtype )( ch&A_CHARTEXT ) );
1259 int addch(
int y,
int x,
const chtype ch )
1261 return ::mvwaddch(
w, y, x, ch );
1269 return echochar((
const chtype )( ch&A_CHARTEXT ) );
1272 int echochar(
const chtype ch ) { return ::wechochar(
w, ch ); }
1280 return ::waddnstr(
w, (
char *) str, n );
1287 int addstr(
int y,
int x,
const char * str,
int n = -1 )
1289 return ::mvwaddnstr(
w, y, x, (
char *) str, n );
1296 int addwstr(
const wchar_t* str,
int n = -1 );
1302 int addwstr(
int y,
int x,
const wchar_t * str,
int n = -1 );
1307 int printw(
const char* fmt, ... )
1309 __attribute__(( format( printf, 2, 3 ) ) );
1317 int printw(
int y,
int x,
const char * fmt, ... )
1319 __attribute__(( format( printf, 4, 5 ) ) );
1327 chtype
inch()
const { return ::winch(
w ); }
1329 chtype inchar()
const {
return inch()&( A_CHARTEXT | A_ALTCHARSET ); }
1335 chtype
inch(
int y,
int x ) { return ::mvwinch(
w, y, x ); }
1337 chtype inchar(
int y,
int x ) {
return inch( y, x )&( A_CHARTEXT | A_ALTCHARSET ); }
1343 int in_wchar(
int y,
int x, cchar_t * cchar );
1349 int insch( chtype ch ) { return ::winsch(
w, ch ); }
1357 return ::mvwinsch(
w, y, x, ch );
1364 int ins_wch(
int y,
int x,
const cchar_t * cchar )
1366 return mvwins_wch(
w, y, x, cchar );
1387 return ::winsnstr(
w, s, n );
1394 int insstr(
int y,
int x,
const char *s,
int n = -1 )
1396 return ::mvwinsnstr(
w, y, x, s, n );
1402 int attron( chtype at ) { return ::wattron(
w, at ); }
1407 int attroff( chtype at ) { return ::wattroff(
w, at ); }
1412 int attrset( chtype at ) { return ::wattrset(
w, at ); }
1419 int chgat(
int n, attr_t attr,
short color,
const void *opts = NULL )
1421 return ::wchgat(
w, n, attr, color, opts );
1429 int n, attr_t attr,
short color,
const void *opts = NULL )
1431 return ::mvwchgat(
w, y, x, n, attr, color, opts );
1445 int bkgd(
const chtype ch ) { return ::wbkgd(
w, ch ); }
1471 int border( chtype left = 0, chtype right = 0,
1472 chtype top = 0, chtype bottom = 0,
1473 chtype top_left = 0, chtype top_right = 0,
1474 chtype bottom_left = 0, chtype bottom_right = 0 )
1476 return ::wborder(
w, left, right, top, bottom, top_left, top_right,
1477 bottom_left, bottom_right );
1487 int hline(
int len, chtype ch = 0 ) { return ::whline(
w, ch, len ); }
1492 int hline(
int y,
int x,
int len, chtype ch = 0 )
1494 return ::mvwhline(
w, y, x, ch, len );
1501 int vline(
int len, chtype ch = 0 ) { return ::wvline(
w, ch, len ); }
1506 int vline(
int y,
int x,
int len, chtype ch = 0 )
1508 return ::mvwvline(
w, y, x, ch, len );
1551 int delch(
int y,
int x ) { return ::mvwdelch(
w, y, x ); }
1565 int scroll(
int amount = 1 ) { return ::wscrl(
w, amount ); }
1579 return ::wsetscrreg(
w, from, to );
1586 int idlok(
bool bf ) { return ::idlok(
w, bf ); }
1608 int touchln(
int s,
int cnt,
bool changed = TRUE )
1610 return ::wtouchln(
w, s, cnt, (
int) ( changed ? 1 : 0 ) );
1630 int redrawln(
int from,
int n ) { return ::wredrawln(
w, from, n ); }
1660 int syncok(
bool bf ) { return ::syncok(
w, bf ); }
1663 int flushok(
bool bf ) { return ::flushok(
w, bf ); }
1676 int keypad(
bool bf ) { return ::keypad(
w, bf ); }
1682 int meta(
bool bf ) { return ::meta(
w, bf ); }
1718 return ::overlay(
w, win.
w );
1726 return ::overwrite(
w, win.
w );
1735 int sminrow,
int smincol,
1736 int dminrow,
int dmincol,
1737 int dmaxrow,
int dmaxcol,
bool overlay = TRUE )
1739 return ::copywin(
w, win.
w, sminrow, smincol, dminrow, dmincol,
1740 dmaxrow, dmaxcol, (
int) (
overlay ? 1 : 0 ) );
1793 : NCursesWindow( window )
1805 : NCursesWindow(
lines,
cols, begin_y, begin_x )
1831class NCursesPad :
public NCursesWindow
1841 int echochar(
const chtype ch ) { return ::pechochar(
w, ch ); }
1858 int sminrow,
int smincol,
1859 int smaxrow,
int smaxcol )
1861 return ::prefresh(
w, pminrow, pmincol,
1862 sminrow, smincol, smaxrow, smaxcol );
1869 int sminrow,
int smincol,
1870 int smaxrow,
int smaxcol )
1872 return ::pnoutrefresh(
w, pminrow, pmincol,
1873 sminrow, smincol, smaxrow, smaxcol );
NCursesColorWindow(NCursesWindow &par, int lines, int cols, int begin_y, int begin_x, char absrel='a')
Definition ncursesw.h:1816
NCursesColorWindow(int lines, int cols, int begin_y, int begin_x)
Definition ncursesw.h:1801
NCursesColorWindow(WINDOW *&window)
Definition ncursesw.h:1792
int refresh()
Definition ncursesw.h:1848
int refresh(int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol)
Definition ncursesw.h:1857
int noutrefresh(int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol)
Definition ncursesw.h:1868
int echochar(const chtype ch)
Definition ncursesw.h:1841
int noutrefresh()
Definition ncursesw.h:1850
C++ class for windows.
Definition ncursesw.h:907
int delch(int y, int x)
Definition ncursesw.h:1551
static int maxcoord()
Definition ncursesw.h:1100
int border(chtype left=0, chtype right=0, chtype top=0, chtype bottom=0, chtype top_left=0, chtype top_right=0, chtype bottom_left=0, chtype bottom_right=0)
Definition ncursesw.h:1471
bool is_wintouched() const
Definition ncursesw.h:1616
short foreground() const
Definition ncursesw.h:1118
int add_attr_char(int y, int x)
Definition ncursesw.cc:179
virtual int mvwin(int begin_y, int begin_x)
Definition ncursesw.h:1142
int getstr(int y, int x, char *str, int n=-1)
Definition ncursesw.h:1202
int bkgd(const chtype ch)
Definition ncursesw.h:1445
int keypad(bool bf)
Definition ncursesw.h:1676
int touchln(int s, int cnt, bool changed=TRUE)
Definition ncursesw.h:1608
int untouchwin()
Definition ncursesw.h:1602
chtype inch(int y, int x)
Definition ncursesw.h:1335
int copywin(NCursesWindow &win, int sminrow, int smincol, int dminrow, int dmincol, int dmaxrow, int dmaxcol, bool overlay=TRUE)
Definition ncursesw.h:1734
int insdelln(int n=1)
Definition ncursesw.h:1378
int clearok(bool bf)
Definition ncursesw.h:1530
int addstr(int y, int x, const char *str, int n=-1)
Definition ncursesw.h:1287
int mvcur(int oldrow, int oldcol, int newrow, int newcol) const
Definition ncursesw.h:1167
void immedok(bool bf)
Definition ncursesw.h:1671
virtual ~NCursesWindow()
Definition ncursesw.cc:464
int begy() const
Definition ncursesw.h:1087
int insertln()
Definition ncursesw.h:1372
int deleteln()
Definition ncursesw.h:1556
int maxx() const
Definition ncursesw.h:1092
int chgat(int y, int x, int n, attr_t attr, short color, const void *opts=NULL)
Definition ncursesw.h:1428
int move(int y, int x)
Definition ncursesw.h:1157
int scrollok(bool bf)
Definition ncursesw.h:1572
void getyx(int &y, int &x) const
Definition ncursesw.h:1162
int getstr(char *str, int n=-1)
Definition ncursesw.h:1193
int echochar(const char ch)
Definition ncursesw.h:1267
NCursesWindow * par
Definition ncursesw.h:959
chtype inch() const
Definition ncursesw.h:1327
int addstr(const char *str, int n=-1)
Definition ncursesw.h:1278
void idcok(bool bf)
Definition ncursesw.h:1592
NCursesWindow * child()
Definition ncursesw.h:1757
NCursesWindow()
Definition ncursesw.cc:268
NCursesWindow * sib
Definition ncursesw.h:967
int insstr(int y, int x, const char *s, int n=-1)
Definition ncursesw.h:1394
int add_wch(const cchar_t *cch)
Definition ncursesw.h:1246
int printw(const char *fmt,...)
Definition ncursesw.cc:78
int touchwin()
Definition ncursesw.h:1597
int getch(int y, int x)
Definition ncursesw.h:1186
int addch(const char ch)
Definition ncursesw.h:1230
int addwstr(const wchar_t *str, int n=-1)
Definition ncursesw.cc:136
void syncdown()
Definition ncursesw.h:1645
int vline(int y, int x, int len, chtype ch=0)
Definition ncursesw.h:1506
int redrawln(int from, int n)
Definition ncursesw.h:1630
void bkgdset(chtype ch)
Definition ncursesw.h:1450
bool alloced
Definition ncursesw.h:954
int instr(char *s, int n=-1)
Definition ncursesw.h:1212
int redrawwin()
Definition ncursesw.h:1635
void kill_subwindows()
Definition ncursesw.cc:445
WINDOW * w
Definition ncursesw.h:949
static long count
Definition ncursesw.h:941
int clrtoeol()
Definition ncursesw.h:1540
int setcolor(short pair)
Definition ncursesw.cc:592
bool isDescendant(NCursesWindow &win)
Definition ncursesw.cc:428
virtual int noutrefresh()
Definition ncursesw.h:1708
static int NumberOfColors()
Definition ncursesw.cc:556
int addch(int y, int x, const char ch)
Definition ncursesw.h:1254
int meta(bool bf)
Definition ncursesw.h:1682
int overwrite(NCursesWindow &win)
Definition ncursesw.h:1724
int attroff(chtype at)
Definition ncursesw.h:1407
int overlay(NCursesWindow &win)
Definition ncursesw.h:1716
NCursesWindow Clone()
Definition ncursesw.cc:374
int clear()
Definition ncursesw.h:1524
virtual int refresh()
Definition ncursesw.h:1702
NCursesWindow * parent()
Definition ncursesw.h:1771
static int tabsize()
Definition ncursesw.h:1054
int getch()
Definition ncursesw.h:1181
static int lines()
Definition ncursesw.h:1044
int box()
Definition ncursesw.h:1464
int attrset(chtype at)
Definition ncursesw.h:1412
int scroll(int amount=1)
Definition ncursesw.h:1565
int clrtobot()
Definition ncursesw.h:1535
int erase()
Definition ncursesw.h:1519
void syncup()
Definition ncursesw.h:1650
int chgat(int n, attr_t attr, short color, const void *opts=NULL)
Definition ncursesw.h:1419
int insch(int y, int x, chtype ch)
Definition ncursesw.h:1355
int setscrreg(int from, int to)
Definition ncursesw.h:1577
int ins_wch(int y, int x, const cchar_t *cchar)
Definition ncursesw.h:1364
int leaveok(bool bf)
Definition ncursesw.h:1625
int standout()
Definition ncursesw.h:1687
static int ripoffline(int ripoff_lines, int(*init)(NCursesWindow &win))
Definition ncursesw.cc:414
int vline(int len, chtype ch=0)
Definition ncursesw.h:1501
bool has_mouse() const
Definition ncursesw.cc:607
int insch(chtype ch)
Definition ncursesw.h:1349
chtype getbkgd() const
Definition ncursesw.h:1440
int idlok(bool bf)
Definition ncursesw.h:1586
void err_handler(const char *) const THROWS(NCursesException)
Definition ncursesw.cc:243
int instr(int y, int x, char *s, int n=-1)
Definition ncursesw.h:1218
void cursyncup()
Definition ncursesw.h:1655
int maxy() const
Definition ncursesw.h:1097
int standend()
Definition ncursesw.h:1692
int attron(chtype at)
Definition ncursesw.h:1402
int colors() const
Definition ncursesw.h:1064
short getcolor() const
Definition ncursesw.cc:565
int begx() const
Definition ncursesw.h:1082
int hline(int len, chtype ch=0)
Definition ncursesw.h:1487
short background() const
Definition ncursesw.h:1123
NCursesWindow * sibling()
Definition ncursesw.h:1764
int doupdate()
Definition ncursesw.h:1640
static int cols()
Definition ncursesw.h:1049
int in_wchar(cchar_t *cchar)
Definition ncursesw.cc:166
int delch()
Definition ncursesw.h:1545
static void useColors(void)
Definition ncursesw.cc:517
int syncok(bool bf)
Definition ncursesw.h:1660
NCursesWindow * subwins
Definition ncursesw.h:963
int width() const
Definition ncursesw.h:1077
int height() const
Definition ncursesw.h:1072
int insstr(const char *s, int n=-1)
Definition ncursesw.h:1385
int hline(int y, int x, int len, chtype ch=0)
Definition ncursesw.h:1492
Screen position pair in the order line, column: (L, C)
Definition position.h:110
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