]> ncurses.scripts.mit.edu Git - ncurses.git/blob - doc/html/man/menu_spacing.3x.html
ba2cd1cdf9b992b71857513228c2943d994bd8dd
[ncurses.git] / doc / html / man / menu_spacing.3x.html
1 <HTML>
2 <BODY>
3 <PRE>
4 <!-- Manpage converted by man2html 3.0.1 -->
5
6 </PRE>
7 <H2>NAME</H2><PRE>
8        <B>menu_spacing</B> - Control spacing between menu items.
9
10
11 </PRE>
12 <H2>SYNOPSIS</H2><PRE>
13        <B>#include</B> <B>&lt;menu.h&gt;</B>
14        int set_menu_spacing(MENU *menu,
15                             int spc_description
16                             int spc_rows,
17                             int spc_columns);
18        int menu_spacing(const MENU *menu,
19                         int* spc_description
20                         int* spc_rows,
21                         int* spc_columns);
22
23
24 </PRE>
25 <H2>DESCRIPTION</H2><PRE>
26        The  function  <B>set_menu_spacing</B>  sets the spacing informa-
27        tions for the menu.  <B>spc_description</B> controls  the  number
28        of spaces between an item name and an item description. It
29        must not be larger than <B>TABSIZE</B>. The menu system  puts  in
30        the  middle  of  this  spacing area the pad character. The
31        remaining parts are filled with spaces.  <B>spc_rows</B> controls
32        the  number of rows that are used for an item. It must not
33        be larger than 3. The menu system inserts then blank lines
34        between  item rows, these lines will contain the pad char-
35        acter in the appropriate positions.  <B>spc_columns</B>  controls
36        the number of blanks between columns of items. It must not
37        be larger than TABSIZE.  A value of 0 for all the  spacing
38        values  resets  them to the default, which is 1 for all of
39        them.
40        The function <B>menu_spacing</B> passes back the spacing info for
41        the menu. If a pointer is NULL, this specific info is sim-
42        ply not returned.
43
44
45 </PRE>
46 <H2>RETURN VALUE</H2><PRE>
47        Both routines return <B>E_OK</B> on success. <B>set_menu_spacing</B> may
48        return  <B>E_POSTED</B>  if the menu is posted, or <B>E_BAD_ARGUMENT</B>
49        if one of the spacing values is out of range.
50
51
52 </PRE>
53 <H2>SEE ALSO</H2><PRE>
54        <B><A HREF="ncurses.3x.html">curses(3x)</A></B>, <B><A HREF="menu.3x.html">menu(3x)</A></B>.
55
56
57 </PRE>
58 <H2>NOTES</H2><PRE>
59        The header file <B>&lt;menu.h&gt;</B> automatically includes the header
60        file <B>&lt;curses.h&gt;</B>.
61
62
63 </PRE>
64 <H2>PORTABILITY</H2><PRE>
65        These  routines  are  specific  to ncurses.  They were not
66        supported on Version 7, BSD or System  V  implementations.
67        It  is recommended that any code depending on them be con-
68        ditioned using NCURSES_VERSION.
69
70
71 </PRE>
72 <H2>AUTHORS</H2><PRE>
73        Juergen Pfeifer.  Manual  pages  and  adaptation  for  new
74        curses by Eric S. Raymond.
75 </PRE>
76 <HR>
77 <ADDRESS>
78 Man(1) output converted with
79 <a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
80 </ADDRESS>
81 </BODY>
82 </HTML>