Function ncursesw::menu::set_menu_spacing
source · [−]pub fn set_menu_spacing(
menu: Option<MENU>,
menu_spacing: MenuSpacing
) -> Result<(), NCurseswMenuError>
Expand description
Sets the spacing information for the menu. Its parameter MenuSpacing::spc_description
controls the number of spaces between an item name and an item description. It must
not be larger than TABSIZE
. The menu system puts in the middle of this spacing area
the pad character. The remaining parts are filled with spaces. The MenuSpacing::spc_rows
parameter controls the number of rows that are used for an item. It must not be larger
than 3. The menu system inserts the blank lines between item rows, these lines will
contain the pad character in the appropriate positions. The MenuSpacing::spc_columns
parameter controls the number of blanks between columns of items. It must not be larger
than TABSIZE
. A value of 0 for all the spacing values resets them to the default,
which is 1 for all of them.
If menu
is None
then the default value is set.