1 | '\" t
|
---|
2 | .\"***************************************************************************
|
---|
3 | .\" Copyright (c) 1998-2001,2004 Free Software Foundation, Inc. *
|
---|
4 | .\" *
|
---|
5 | .\" Permission is hereby granted, free of charge, to any person obtaining a *
|
---|
6 | .\" copy of this software and associated documentation files (the *
|
---|
7 | .\" "Software"), to deal in the Software without restriction, including *
|
---|
8 | .\" without limitation the rights to use, copy, modify, merge, publish, *
|
---|
9 | .\" distribute, distribute with modifications, sublicense, and/or sell *
|
---|
10 | .\" copies of the Software, and to permit persons to whom the Software is *
|
---|
11 | .\" furnished to do so, subject to the following conditions: *
|
---|
12 | .\" *
|
---|
13 | .\" The above copyright notice and this permission notice shall be included *
|
---|
14 | .\" in all copies or substantial portions of the Software. *
|
---|
15 | .\" *
|
---|
16 | .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS *
|
---|
17 | .\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF *
|
---|
18 | .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. *
|
---|
19 | .\" IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, *
|
---|
20 | .\" DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR *
|
---|
21 | .\" OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR *
|
---|
22 | .\" THE USE OR OTHER DEALINGS IN THE SOFTWARE. *
|
---|
23 | .\" *
|
---|
24 | .\" Except as contained in this notice, the name(s) of the above copyright *
|
---|
25 | .\" holders shall not be used in advertising or otherwise to promote the *
|
---|
26 | .\" sale, use or other dealings in this Software without prior written *
|
---|
27 | .\" authorization. *
|
---|
28 | .\"***************************************************************************
|
---|
29 | .\"
|
---|
30 | .\" $Id: menu_spacing.3x,v 1.8 2004/12/11 23:39:07 tom Exp $
|
---|
31 | .TH menu_spacing 3X ""
|
---|
32 | .SH NAME
|
---|
33 | \fBmenu_spacing\fR - Control spacing between menu items.
|
---|
34 | .SH SYNOPSIS
|
---|
35 | \fB#include <menu.h>\fR
|
---|
36 | .br
|
---|
37 | int set_menu_spacing(MENU *menu,
|
---|
38 | int spc_description,
|
---|
39 | int spc_rows,
|
---|
40 | int spc_columns);
|
---|
41 | .br
|
---|
42 | int menu_spacing(const MENU *menu,
|
---|
43 | int* spc_description,
|
---|
44 | int* spc_rows,
|
---|
45 | int* spc_columns);
|
---|
46 | .br
|
---|
47 | .SH DESCRIPTION
|
---|
48 | The function \fBset_menu_spacing\fR sets the spacing informations for the menu.
|
---|
49 | \fBspc_description\fR controls the number of spaces between an item name and an item
|
---|
50 | description. It must not be larger than \fBTABSIZE\fR. The menu system puts in the
|
---|
51 | middle of this spacing area the pad character. The remaining parts are filled with
|
---|
52 | spaces.
|
---|
53 | \fBspc_rows\fR controls the number of rows that are used for an item. It must not be
|
---|
54 | larger than 3. The menu system inserts the blank lines between item rows, these lines
|
---|
55 | will contain the pad character in the appropriate positions.
|
---|
56 | \fBspc_columns\fR controls the number of blanks between columns of items. It must not
|
---|
57 | be larger than TABSIZE.
|
---|
58 | A value of 0 for all the spacing values resets them to the default, which is 1 for all
|
---|
59 | of them.
|
---|
60 | .br
|
---|
61 | The function \fBmenu_spacing\fR passes back the spacing info for the menu. If a
|
---|
62 | pointer is NULL, this specific info is simply not returned.
|
---|
63 | .SH RETURN VALUE
|
---|
64 | Both routines return \fBE_OK\fR on success. \fBset_menu_spacing\fR may return
|
---|
65 | \fBE_POSTED\fR if the menu is posted, or \fBE_BAD_ARGUMENT\fR if one of the
|
---|
66 | spacing values is out of range.
|
---|
67 | .SH SEE ALSO
|
---|
68 | \fBcurses\fR(3X), \fBmenu\fR(3X).
|
---|
69 | .SH NOTES
|
---|
70 | The header file \fB<menu.h>\fR automatically includes the header file
|
---|
71 | \fB<curses.h>\fR.
|
---|
72 | .SH PORTABILITY
|
---|
73 | These routines are specific to ncurses. They were not supported on
|
---|
74 | Version 7, BSD or System V implementations. It is recommended that
|
---|
75 | any code depending on them be conditioned using NCURSES_VERSION.
|
---|
76 | .SH AUTHORS
|
---|
77 | Juergen Pfeifer. Manual pages and adaptation for new curses by Eric
|
---|
78 | S. Raymond.
|
---|
79 | .\"#
|
---|
80 | .\"# The following sets edit modes for GNU EMACS
|
---|
81 | .\"# Local Variables:
|
---|
82 | .\"# mode:nroff
|
---|
83 | .\"# fill-column:79
|
---|
84 | .\"# End:
|
---|