1menu_spacing(3X)                                              menu_spacing(3X)
2
3
4

NAME

6       menu_spacing - Control spacing between menu items.
7

SYNOPSIS

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

DESCRIPTION

20       The  function  set_menu_spacing  sets  the spacing informations for the
21       menu.  spc_description controls the number of spaces  between  an  item
22       name  and  an item description. It must not be larger than TABSIZE. The
23       menu system puts in the middle of this spacing area the pad  character.
24       The remaining parts are filled with spaces.  spc_rows controls the num‐
25       ber of rows that are used for an item. It must not be  larger  than  3.
26       The  menu system inserts the blank lines between item rows, these lines
27       will contain the pad character in the appropriate positions.   spc_col‐
28       umns  controls  the  number of blanks between columns of items. It must
29       not be larger than TABSIZE.  A value of 0 for all  the  spacing  values
30       resets them to the default, which is 1 for all of them.
31       The function menu_spacing passes back the spacing info for the menu. If
32       a pointer is NULL, this specific info is simply not returned.
33

RETURN VALUE

35       Both routines return  E_OK  on  success.  set_menu_spacing  may  return
36       E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing
37       values is out of range.
38

SEE ALSO

40       curses(3X), menu(3X).
41

NOTES

43       The  header  file  <menu.h>  automatically  includes  the  header  file
44       <curses.h>.
45

PORTABILITY

47       These  routines  are  specific  to ncurses.  They were not supported on
48       Version 7, BSD or System V implementations.  It is recommended that any
49       code depending on them be conditioned using NCURSES_VERSION.
50

AUTHORS

52       Juergen Pfeifer.  Manual pages and adaptation for new curses by Eric S.
53       Raymond.
54
55
56
57                                                              menu_spacing(3X)
Impressum