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