1menu_spacing(3X) menu_spacing(3X)
2
3
4
6 set_menu_spacing, menu_spacing - set and get spacing between menu
7 items.
8
10 #include <menu.h>
11 int set_menu_spacing(MENU *menu,
12 int spc_description,
13 int spc_rows,
14 int spc_columns);
15 int menu_spacing(const MENU *menu,
16 int* spc_description,
17 int* spc_rows,
18 int* spc_columns);
19
21 The function set_menu_spacing sets the spacing information for the
22 menu. Its parameter spc_description controls the number of spaces
23 between an item name and an item description. It must not be larger
24 than TABSIZE. The menu system puts in the middle of this spacing area
25 the pad character. The remaining parts are filled with spaces. The
26 spc_rows parameter controls the number of rows that are used for an
27 item. It must not be larger than 3. The menu system inserts the blank
28 lines between item rows, these lines will contain the pad character in
29 the appropriate positions. The spc_columns parameter controls the num‐
30 ber of blanks between columns of items. It must not be larger than
31 TABSIZE. A value of 0 for all the spacing values resets them to the
32 default, which is 1 for all of them.
33 The function menu_spacing passes back the spacing info for the menu.
34 If a pointer is NULL, this specific info is simply not returned.
35
37 Both routines return E_OK on success. set_menu_spacing may return
38 E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing
39 values is out of range.
40
42 curses(3X), curs_variables(3X), menu(3X).
43
45 The header file <menu.h> automatically includes the header file
46 <curses.h>.
47
49 These routines are specific to ncurses. They were not supported on
50 Version 7, BSD or System V implementations. It is recommended that any
51 code depending on them be conditioned using NCURSES_VERSION.
52
54 Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S.
55 Raymond.
56
57
58
59 menu_spacing(3X)