box(函式原型)

本詞條是多義詞,共5個義項
更多義項 ▼ 收起列表 ▲

box是函式原型。用來設計視窗的框線。win為視窗的指針,char1為畫方框時垂直方向所用的符號。

函式原型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).

相關詞條

熱門詞條

聯絡我們