複製鏈接
請複製以下鏈接發送給好友

box

(函數原型)

鎖定
box是函數原型。用來設計窗口的邊框。win為窗口的指針,char1為畫方框時垂直方向所用的符號。
外文名
box
適用領域
編程
函數原型box(WINDOW *win,char1,char2);該函數用在linux程序的curses編程裏,用來設計窗口的邊框,win為窗口的指針,char1為畫方框時垂直方向所用的符號比如'|',char2為畫方框時水平方向所用的符號如'-'。
int box(WINDOW *win, chtype verch, chtype horch);
The box routines draw a box around the edges of a
window. Other than the window, each argument is a character with at-
tributes:
ls - left side,
rs - right side,
ts - top side,
bs - bottom side,
tl - top left-hand corner,
tr - top right-hand corner,
bl - bottom left-hand corner, and
br - bottom right-hand corner.
If any of these arguments is zero, then the corresponding default val-
ues (defined in curses.h) are used instead:
ACS_VLINE,
ACS_VRINE,
ACS_HLINE,
ACS_HRINE,
ACS_ULCORNER,
ACS_URCORNER,
ACS_LLCORNER,
ACS_LRCORNER.
box(win, verch, horch) is a shorthand for the following call: wbor-
der(win, verch, verch, horch, horch, 0, 0, 0, 0).