menu_spacing(3X) | Library calls | menu_spacing(3X) |
set_menu_spacing, menu_spacing - set and get spacing between menu items.
#include <menu.h>
int set_menu_spacing(MENU *menu,
int spc_description,
int spc_rows,
int spc_columns); int menu_spacing(const MENU *menu,
int* spc_description,
int* spc_rows,
int* spc_columns);
The function set_menu_spacing sets the spacing information for the menu. Its parameters provide the description and the size (in rows and columns).
The function menu_spacing returns the spacing information for the menu. If a pointer is NULL, the corresponding information is simply not returned.
Both routines return E_OK on success. set_menu_spacing may return E_POSTED if the menu is posted, or E_BAD_ARGUMENT if one of the spacing values is out of range.
These routines are specific to ncurses. They were not supported on Version 7, BSD or System V implementations. It is recommended that any code depending on them be conditioned using NCURSES_VERSION.
Juergen Pfeifer. Manual pages and adaptation for new curses by Eric S. Raymond.
2024-03-16 | ncurses 6.5 |