4 curses database base pad (pad) Processing

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.