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 51 inline int UNDEF( addch )( chtype ch ) {
return addch( ch ); }
54 #define addch UNDEF(addch) 58 inline int UNDEF( add_wch )( cchar_t * cch ) {
return add_wch( cch ); }
61 #define add_wch UNDEF(add_wch) 65 inline int UNDEF( echochar )( chtype ch ) {
return echochar( ch ); }
68 #define echochar UNDEF(echochar) 72 inline int UNDEF( insdelln )(
int n ) {
return insdelln( n ); }
75 #define insdelln UNDEF(insdelln) 80 inline int UNDEF( addstr )(
const char * str ) {
return addstr( (
char *) str ); }
83 #define addstr UNDEF(addstr) 88 inline int UNDEF( addwstr )(
const wchar_t * str ) {
return addwstr( (
wchar_t *) str ); }
91 #define addwstr UNDEF(addwstr) 95 inline int UNDEF( attron )( chtype at ) {
return attron( at ); }
98 #define attron UNDEF(attron) 102 inline int UNDEF( attroff )( chtype at ) {
return attroff( at ); }
105 #define attroff UNDEF(attroff) 109 inline chtype UNDEF( attrset )( chtype at ) {
return attrset( at ); }
112 #define attrset UNDEF(attrset) 116 inline 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) 124 inline int UNDEF( box )( WINDOW *win,
int v,
int h ) {
return box( win, v, h ); }
127 #define box UNDEF(box) 131 inline 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) 141 inline 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) 151 inline int UNDEF( clear )() {
return clear(); }
154 #define clear UNDEF(clear) 158 inline int UNDEF( clearok )( WINDOW* win,
bool bf ) {
return clearok( win, bf ); }
161 #define clearok UNDEF(clearok) 163 extern "C" int clearok( WINDOW*,
bool );
167 inline int UNDEF( clrtobot )() {
return clrtobot(); }
170 #define clrtobot UNDEF(clrtobot) 174 inline int UNDEF( clrtoeol )() {
return clrtoeol(); }
177 #define clrtoeol UNDEF(clrtoeol) 181 inline int UNDEF( delch )() {
return delch(); }
184 #define delch UNDEF(delch) 188 inline int UNDEF( deleteln )() {
return deleteln(); }
191 #define deleteln UNDEF(deleteln) 195 inline int UNDEF( erase )() {
return erase(); }
198 #define erase UNDEF(erase) 202 inline int UNDEF( flushok )( WINDOW* _win,
bool _bf )
204 return flushok( _win, _bf );
208 #define flushok UNDEF(flushok) 214 inline int UNDEF( getch )() {
return getch(); }
217 #define getch UNDEF(getch) 221 inline int UNDEF( getstr )(
char *_str ) {
return getstr( _str ); }
224 #define getstr UNDEF(getstr) 228 inline int UNDEF( instr )(
char *_str ) {
return instr( _str ); }
231 #define instr UNDEF(instr) 235 inline int UNDEF( innstr )(
char *_str,
int n ) {
return innstr( _str, n ); }
238 #define innstr UNDEF(innstr) 242 inline 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) 252 inline int UNDEF( mvinnstr )(
int y,
int x,
char *_str,
int n )
254 return mvinnstr( y, x, _str, n );
258 #define mvinnstr UNDEF(mvinnstr) 262 inline int UNDEF( winsstr )( WINDOW *w,
const char *_str )
264 return winsstr( w, _str );
268 #define winsstr UNDEF(winsstr) 272 inline int UNDEF( mvwinsstr )( WINDOW *w,
int y,
int x,
const char *_str )
274 return mvwinsstr( w, y, x, _str );
278 #define mvwinsstr UNDEF(mvwinsstr) 282 inline int UNDEF( insstr )(
const char *_str )
284 return insstr( _str );
288 #define insstr UNDEF(insstr) 292 inline int UNDEF( mvinsstr )(
int y,
int x,
const char *_str )
294 return mvinsstr( y, x, _str );
298 #define mvinsstr UNDEF(mvinsstr) 302 inline int UNDEF( insnstr )(
const char *_str,
int n )
304 return insnstr( _str, n );
308 #define insnstr UNDEF(insnstr) 312 inline 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) 322 inline int UNDEF( mvinsnstr )(
int y,
int x,
const char *_str,
int n )
324 return mvinsnstr( y, x, _str, n );
328 #define mvinsnstr UNDEF(mvinsnstr) 332 inline int UNDEF( getnstr )(
char *_str,
int n ) {
return getnstr( _str, n ); }
335 #define getnstr UNDEF(getnstr) 339 inline void UNDEF( getyx )(
const WINDOW* win,
int& y,
int& x )
345 #define getyx UNDEF(getyx) 349 inline void UNDEF( getbegyx )( WINDOW* win,
int& y,
int& x ) { getbegyx( win, y, x ); }
352 #define getbegyx UNDEF(getbegyx) 356 inline void UNDEF( getmaxyx )( WINDOW* win,
int& y,
int& x ) { getmaxyx( win, y, x ); }
359 #define getmaxyx UNDEF(getmaxyx) 363 inline int UNDEF( hline )( chtype ch,
int n ) {
return hline( ch, n ); }
366 #define hline UNDEF(hline) 370 inline chtype UNDEF( inch )() {
return inch(); }
373 #define inch UNDEF(inch) 377 inline int UNDEF( in_wch )( cchar_t * cch ) {
return in_wch( cch ); }
380 #define in_wch UNDEF(in_wch) 384 inline int UNDEF( insch )(
char c ) {
return insch( c ); }
387 #define insch UNDEF(insch) 391 inline int UNDEF( ins_wch )(
const cchar_t *c ) {
return ins_wch( c ); }
394 #define ins_wch UNDEF(ins_wch) 398 inline 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) 405 inline int UNDEF( insertln )() {
return insertln(); }
408 #define insertln UNDEF(insertln) 412 inline int UNDEF( leaveok )( WINDOW* win,
bool bf ) {
return leaveok( win, bf ); }
415 #define leaveok UNDEF(leaveok) 417 extern "C" int leaveok( WINDOW* win,
bool bf );
421 inline int UNDEF( move )(
int x,
int y ) {
return move( x, y ); }
424 #define move UNDEF(move) 428 inline int UNDEF( refresh )() {
return refresh(); }
431 #define refresh UNDEF(refresh) 435 inline int UNDEF( redrawwin )( WINDOW *win ) {
return redrawwin( win ); }
438 #define redrawwin UNDEF(redrawwin) 442 inline int UNDEF( scrl )(
int l ) {
return scrl( l ); }
445 #define scrl UNDEF(scrl) 449 inline int UNDEF( scroll )( WINDOW *win ) {
return scroll( win ); }
452 #define scroll UNDEF(scroll) 456 inline int UNDEF( scrollok )( WINDOW* win,
bool bf ) {
return scrollok( win, bf ); }
459 #define scrollok UNDEF(scrollok) 461 #if defined(__NCURSES_H) 462 extern "C" int scrollok( WINDOW*,
bool );
464 extern "C" int scrollok( WINDOW*,
char );
469 inline int UNDEF( setscrreg )(
int t,
int b ) {
return setscrreg( t, b ); }
472 #define setscrreg UNDEF(setscrreg) 476 inline int UNDEF( standend )() {
return standend(); }
479 #define standend UNDEF(standend) 483 inline int UNDEF( standout )() {
return standout(); }
486 #define standout UNDEF(standout) 490 inline 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 499 inline int UNDEF( timeout )(
int delay ) {
return timeout( delay ); }
502 inline void UNDEF( timeout )(
int delay ) { timeout( delay ); }
506 #define timeout UNDEF(timeout) 510 inline int UNDEF( touchline )( WINDOW *win,
int s,
int c )
511 {
return touchline( win, s, c ); }
514 #define touchline UNDEF(touchline) 518 inline int UNDEF( touchwin )( WINDOW *win ) {
return touchwin( win ); }
521 #define touchwin UNDEF(touchwin) 525 inline int UNDEF( untouchwin )( WINDOW *win ) {
return untouchwin( win ); }
528 #define untouchwin UNDEF(untouchwin) 532 inline int UNDEF( vline )( chtype ch,
int n ) {
return vline( ch, n ); }
535 #define vline UNDEF(vline) 539 inline int UNDEF( waddstr )( WINDOW *win,
char *str ) {
return waddstr( win, str ); }
542 #define waddstr UNDEF(waddstr) 546 inline int UNDEF( waddwstr )( WINDOW *win,
wchar_t *str ) {
return waddwstr( win, str ); }
549 #define waddwstr UNDEF(waddwstr) 553 inline int UNDEF( mvwaddwstr )( WINDOW *win,
int y,
int x,
wchar_t *str )
554 {
return mvwaddwstr( win, y, x, str ); }
557 #define mvwaddwstr UNDEF(mvwaddwstr) 561 inline int UNDEF( waddchstr )( WINDOW *win, chtype *at ) {
return waddchstr( win, at ); }
564 #define waddchstr UNDEF(waddchstr) 568 inline int UNDEF( wstandend )( WINDOW *win ) {
return wstandend( win ); }
571 #define wstandend UNDEF(wstandend) 575 inline int UNDEF( wstandout )( WINDOW *win ) {
return wstandout( win ); }
578 #define wstandout UNDEF(wstandout) 583 inline int UNDEF( wattroff )( WINDOW *win,
int att ) {
return wattroff( win, att ); }
586 #define wattroff UNDEF(wattroff) 590 inline 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) 600 inline 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) 611 inline 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) 622 inline int UNDEF( wattrset )( WINDOW *win,
int att ) {
return wattrset( win, att ); }
625 #define wattrset UNDEF(wattrset) 629 inline chtype UNDEF( winch )(
const WINDOW* win ) {
return winch( win ); }
632 #define winch UNDEF(winch) 636 inline int UNDEF( mvwaddch )( WINDOW *win,
int y,
int x,
const chtype ch )
637 {
return mvwaddch( win, y, x, ch ); }
640 #define mvwaddch UNDEF(mvwaddch) 644 inline 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) 652 inline int UNDEF( mvwaddchstr )( WINDOW *win,
int y,
int x, chtype *str )
653 {
return mvwaddchstr( win, y, x, str ); }
656 #define mvwaddchstr UNDEF(mvwaddchstr) 660 inline int UNDEF( addnstr )(
const char *str,
int n )
661 {
return addnstr( (
char *) str, n ); }
664 #define addnstr UNDEF(addnstr) 668 inline int UNDEF( addnwstr )(
const wchar_t *str,
int n )
669 {
return addnwstr( (
wchar_t *) str, n ); }
672 #define addnwstr UNDEF(addnwstr) 676 inline 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) 684 inline 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) 692 inline 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) 700 inline int UNDEF( mvwdelch )( WINDOW *win,
int y,
int x )
701 {
return mvwdelch( win, y, x ); }
704 #define mvwdelch UNDEF(mvwdelch) 708 inline int UNDEF( mvwgetch )( WINDOW *win,
int y,
int x ) {
return mvwgetch( win, y, x );}
711 #define mvwgetch UNDEF(mvwgetch) 715 inline int UNDEF( mvwgetstr )( WINDOW *win,
int y,
int x,
char *str )
716 {
return mvwgetstr( win, y, x, str );}
719 #define mvwgetstr UNDEF(mvwgetstr) 723 inline 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) 731 inline chtype UNDEF( mvwinch )( WINDOW *win,
int y,
int x )
733 return mvwinch( win, y, x );
737 #define mvwinch UNDEF(mvwinch) 741 inline 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) 751 inline int UNDEF( mvwinsch )( WINDOW *win,
int y,
int x,
char c )
752 {
return mvwinsch( win, y, x, c ); }
755 #define mvwinsch UNDEF(mvwinsch) 759 inline int UNDEF( mvaddch )(
int y,
int x, chtype ch )
760 {
return mvaddch( y, x, ch ); }
763 #define mvaddch UNDEF(mvaddch) 767 inline 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) 775 inline int UNDEF( mvaddstr )(
int y,
int x,
const char * str )
776 {
return mvaddstr( y, x, (
char *) str ); }
779 #define mvaddstr UNDEF(mvaddstr) 783 inline 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) 791 inline int UNDEF( mvdelch )(
int y,
int x ) {
return mvdelch( y, x );}
794 #define mvdelch UNDEF(mvdelch) 798 inline int UNDEF( mvgetch )(
int y,
int x ) {
return mvgetch( y, x );}
801 #define mvgetch UNDEF(mvgetch) 805 inline int UNDEF( mvgetstr )(
int y,
int x,
char *str ) {
return mvgetstr( y, x, str );}
808 #define mvgetstr UNDEF(mvgetstr) 812 inline int UNDEF( mvgetnstr )(
int y,
int x,
char *str,
int n )
814 return mvgetnstr( y, x, str, n );
818 #define mvgetnstr UNDEF(mvgetnstr) 822 inline chtype UNDEF( mvinch )(
int y,
int x ) {
return mvinch( y, x );}
825 #define mvinch UNDEF(mvinch) 829 inline int UNDEF( mvinsch )(
int y,
int x,
char c )
830 {
return mvinsch( y, x, c ); }
833 #define mvinsch UNDEF(mvinsch) 837 inline void UNDEF( napms )(
unsigned long x ) { napms( x ); }
840 #define napms UNDEF(napms) 844 inline int UNDEF( fixterm )( void ) {
return fixterm(); }
847 #define fixterm UNDEF(fixterm) 851 inline int UNDEF( resetterm )( void ) {
return resetterm(); }
854 #define resetterm UNDEF(resetterm) 858 inline int UNDEF( saveterm )( void ) {
return saveterm(); }
861 #define saveterm UNDEF(saveterm) 865 inline int UNDEF( crmode )( void ) {
return crmode(); }
868 #define crmode UNDEF(crmode) 872 inline int UNDEF( nocrmode )( void ) {
return nocrmode(); }
875 #define nocrmode UNDEF(nocrmode) 879 inline chtype UNDEF( getbkgd )(
const WINDOW *win ) {
return getbkgd( win ); }
882 #define getbkgd UNDEF(getbkgd) 886 inline int UNDEF( bkgd )( chtype ch ) {
return bkgd( ch ); }
889 #define bkgd UNDEF(bkgd) 893 inline void UNDEF( bkgdset )( chtype ch ) { bkgdset( ch ); }
896 #define bkgdset UNDEF(bkgdset) 899 template <
class _Tp>
inline int ncursesMaxCoord() {
return INT_MAX; }
900 template <>
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' );
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>(); }
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 ) );
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 );
1877 #endif // _CURSESW_H int hline(int y, int x, int len, chtype ch=0)
Definition: ncursesw.h:1492
int overlay(NCursesWindow &win)
Definition: ncursesw.h:1716
We leave this here for compatibility reasons.
Definition: ncursesw.h:1785
C++ class for windows.
Definition: ncursesw.h:906
void kill_subwindows()
Definition: ncursesw.cc:433
int clear()
Definition: ncursesw.h:1524
int printw(const char *fmt,...)
Definition: ncursesw.cc:76
void syncup()
Definition: ncursesw.h:1650
chtype getbkgd() const
Definition: ncursesw.h:1440
short foreground() const
Definition: ncursesw.h:1118
static int lines()
Definition: ncursesw.h:1044
int height() const
Definition: ncursesw.h:1072
int echochar(const chtype ch)
Definition: ncursesw.h:1841
static int tabsize()
Definition: ncursesw.h:1054
NCursesWindow * parent()
Definition: ncursesw.h:1771
int vline(int len, chtype ch=0)
Definition: ncursesw.h:1501
int bkgd(const chtype ch)
Definition: ncursesw.h:1445
void idcok(bool bf)
Definition: ncursesw.h:1592
int vline(int y, int x, int len, chtype ch=0)
Definition: ncursesw.h:1506
void bkgdset(chtype ch)
Definition: ncursesw.h:1450
NCursesWindow * par
Definition: ncursesw.h:959
int insch(int y, int x, chtype ch)
Definition: ncursesw.h:1355
int addstr(int y, int x, const char *str, int n=-1)
Definition: ncursesw.h:1287
int clearok(bool bf)
Definition: ncursesw.h:1530
int delch()
Definition: ncursesw.h:1545
bool isDescendant(NCursesWindow &win)
Definition: ncursesw.cc:416
int delch(int y, int x)
Definition: ncursesw.h:1551
int insertln()
Definition: ncursesw.h:1372
virtual int refresh()
Definition: ncursesw.h:1702
int syncok(bool bf)
Definition: ncursesw.h:1660
static int cols()
Definition: ncursesw.h:1049
int chgat(int y, int x, int n, attr_t attr, short color, const void *opts=NULL)
Definition: ncursesw.h:1428
static int NumberOfColors()
Definition: ncursesw.cc:544
int insch(chtype ch)
Definition: ncursesw.h:1349
int noutrefresh(int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol)
Definition: ncursesw.h:1868
int begx() const
Definition: ncursesw.h:1082
int box()
Definition: ncursesw.h:1464
int begy() const
Definition: ncursesw.h:1087
static int maxcoord()
Definition: ncursesw.h:1100
int idlok(bool bf)
Definition: ncursesw.h:1586
int setcolor(short pair)
Definition: ncursesw.cc:580
void syncdown()
Definition: ncursesw.h:1645
int clrtoeol()
Definition: ncursesw.h:1540
bool has_mouse() const
Definition: ncursesw.cc:595
int hline(int len, chtype ch=0)
Definition: ncursesw.h:1487
int addch(int y, int x, const char ch)
Definition: ncursesw.h:1254
Screen position pair in the order line, column: (L, C)
Definition: position.h:109
int attroff(chtype at)
Definition: ncursesw.h:1407
void immedok(bool bf)
Definition: ncursesw.h:1671
int overwrite(NCursesWindow &win)
Definition: ncursesw.h:1724
short background() const
Definition: ncursesw.h:1123
int copywin(NCursesWindow &win, int sminrow, int smincol, int dminrow, int dmincol, int dmaxrow, int dmaxcol, bool overlay=TRUE)
Definition: ncursesw.h:1734
NCursesColorWindow(WINDOW *&window)
Definition: ncursesw.h:1792
int addwstr(const wchar_t *str, int n=-1)
Definition: ncursesw.cc:124
void err_handler(const char *) const THROWS(NCursesException)
Definition: ncursesw.cc:231
short getcolor() const
Definition: ncursesw.cc:553
int doupdate()
Definition: ncursesw.h:1640
virtual ~NCursesWindow()
Definition: ncursesw.cc:452
int instr(char *s, int n=-1)
Definition: ncursesw.h:1212
int standout()
Definition: ncursesw.h:1687
int standend()
Definition: ncursesw.h:1692
int add_attr_char(int y, int x)
Definition: ncursesw.cc:167
int addch(const char ch)
Definition: ncursesw.h:1230
int setscrreg(int from, int to)
Definition: ncursesw.h:1577
int redrawwin()
Definition: ncursesw.h:1635
int in_wchar(cchar_t *cchar)
Definition: ncursesw.cc:154
static long count
Definition: ncursesw.h:941
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
virtual int noutrefresh()
Definition: ncursesw.h:1708
int getch(int y, int x)
Definition: ncursesw.h:1186
NCursesWindow * sibling()
Definition: ncursesw.h:1764
int redrawln(int from, int n)
Definition: ncursesw.h:1630
int insstr(const char *s, int n=-1)
Definition: ncursesw.h:1385
NCursesWindow()
Definition: ncursesw.cc:256
void getyx(int &y, int &x) const
Definition: ncursesw.h:1162
A rectangle is defined by its position and size: wpos Pos, wsze Sze.
Definition: position.h:193
int chgat(int n, attr_t attr, short color, const void *opts=NULL)
Definition: ncursesw.h:1419
int refresh()
Definition: ncursesw.h:1848
int instr(int y, int x, char *s, int n=-1)
Definition: ncursesw.h:1218
int erase()
Definition: ncursesw.h:1519
virtual int mvwin(int begin_y, int begin_x)
Definition: ncursesw.h:1142
int keypad(bool bf)
Definition: ncursesw.h:1676
static void useColors(void)
Definition: ncursesw.cc:505
int getstr(int y, int x, char *str, int n=-1)
Definition: ncursesw.h:1202
int insstr(int y, int x, const char *s, int n=-1)
Definition: ncursesw.h:1394
int leaveok(bool bf)
Definition: ncursesw.h:1625
int maxx() const
Definition: ncursesw.h:1092
int move(int y, int x)
Definition: ncursesw.h:1157
int attron(chtype at)
Definition: ncursesw.h:1402
int deleteln()
Definition: ncursesw.h:1556
chtype inch() const
Definition: ncursesw.h:1327
int echochar(const char ch)
Definition: ncursesw.h:1267
int getch()
Definition: ncursesw.h:1181
int refresh(int pminrow, int pmincol, int sminrow, int smincol, int smaxrow, int smaxcol)
Definition: ncursesw.h:1857
int touchwin()
Definition: ncursesw.h:1597
int scrollok(bool bf)
Definition: ncursesw.h:1572
NCursesWindow * sib
Definition: ncursesw.h:967
int ins_wch(int y, int x, const cchar_t *cchar)
Definition: ncursesw.h:1364
int attrset(chtype at)
Definition: ncursesw.h:1412
int width() const
Definition: ncursesw.h:1077
NCursesWindow Clone()
Definition: ncursesw.cc:362
NCursesWindow * subwins
Definition: ncursesw.h:963
int mvcur(int oldrow, int oldcol, int newrow, int newcol) const
Definition: ncursesw.h:1167
int touchln(int s, int cnt, bool changed=TRUE)
Definition: ncursesw.h:1608
Screen dimension (screen size) in the order height, width: (H, W)
Definition: position.h:153
int scroll(int amount=1)
Definition: ncursesw.h:1565
int insdelln(int n=1)
Definition: ncursesw.h:1378
int untouchwin()
Definition: ncursesw.h:1602
int addstr(const char *str, int n=-1)
Definition: ncursesw.h:1278
NCursesColorWindow(int lines, int cols, int begin_y, int begin_x)
Definition: ncursesw.h:1801
WINDOW * w
Definition: ncursesw.h:949
int getstr(char *str, int n=-1)
Definition: ncursesw.h:1193
chtype inch(int y, int x)
Definition: ncursesw.h:1335
void cursyncup()
Definition: ncursesw.h:1655
bool is_wintouched() const
Definition: ncursesw.h:1616
static int ripoffline(int ripoff_lines, int(*init)(NCursesWindow &win))
Definition: ncursesw.cc:402
NCursesColorWindow(NCursesWindow &par, int lines, int cols, int begin_y, int begin_x, char absrel='a')
Definition: ncursesw.h:1816
int meta(bool bf)
Definition: ncursesw.h:1682
NCursesWindow * child()
Definition: ncursesw.h:1757
int colors() const
Definition: ncursesw.h:1064
int noutrefresh()
Definition: ncursesw.h:1850
int maxy() const
Definition: ncursesw.h:1097
int add_wch(const cchar_t *cch)
Definition: ncursesw.h:1246
Definition: ncursesw.h:1831
bool alloced
Definition: ncursesw.h:954
int clrtobot()
Definition: ncursesw.h:1535