4 curses database base pad (pad) Processing
~~~~~~~~~~~~~~~~~~~~~~~~
4.1 base pad description
==================
* The base pad is also a WINDOW. It is the same in all aspects as the WINDOW, but its size and position are no longer limited to the visible part of the terminal screen.
* Similar to the subwindow, the base pad also has a subpad)
* Most window operation functions can be directly applied to the base pad. Only a few are unique to the base pad.
* Because the base pad can be completely invisible, this leads to a major difference between the base pad and the WINDOW, that is, the base pad is not directly associated with the standard screen.
4.2 base cushion Function Description
========================
/** @ Brief create a new base pad @ param lines. If cols specifies the total number of rows and total number of columns for creating a base pad @ return fail, NULL @ note is returned because it is not associated with the standard screen, therefore, the parameter does not need to be located in the standard screen */WINDOW * newpad (int lines, int cols ); /** @ brief create a child base pad @ param pad parent base pad @ param lines to create a child base pad, the number of rows and columns of the cols child base pad @ param begin_x, relative Position of the begin_y child base pad in the parent base pad at the top left */WINDOW * subpad (WINDOW * pad, int lines, int cols, int begin_x, int begin_y ); /** @ brief refresh base pad specified area @ param prow, pcol describes the base pad needs to refresh to the upper left corner of the area in the standard screen @ param sminrow, smincol, smaxrow, smaxcol indicates the rectangular area of the base pad displayed on the standard screen @ see pnoutrefresh () doupdate () */int prefresh (WINDOW * pad, int prow, int pcol, int simnrow, int smincol, int smaxrow, int smaxcol );
This article is from the "dark day" blog, please be sure to keep this source http://darksun.blog.51cto.com/3874064/1297302