| MENU_WIN(3) | Library Functions Manual | MENU_WIN(3) |
menu_sub,
menu_win, scale_menu,
set_menu_sub, set_menu_win
— sub-menu handling
Curses Menu Library (libmenu, -lmenu)
#include
<menu.h>
WINDOW *
menu_sub(MENU
*menu);
WINDOW *
menu_win(MENU
*menu);
int
scale_menu(MENU
*menu, int *rows,
int *cols);
int
set_menu_sub(MENU
*menu, WINDOW
*sub);
int
set_menu_win(MENU
*menu, WINDOW
*win);
The
menu_sub()
function returns a pointer to the window that will be used to post a menu
into, this pointer is set by the
set_menu_sub()
function. The
menu_win()
function returns a pointer to the window in which the menu subwindow will be
created when the menu is posted, this pointer is set by the
set_menu_win()
function. The
scale_menu()
function calculates the minimum size a window needs to be to hold the items
for a given menu, the parameters rows and cols are set to the required
number of rows and columns respectively.
The functions return one of the following error values:
E_OKE_SYSTEM_ERRORE_BAD_ARGUMENTE_POSTEDE_CONNECTEDE_BAD_STATEE_NO_ROOME_NOT_POSTEDE_UNKNOWN_COMMANDE_NO_MATCHE_NOT_SELECTABLEE_NOT_CONNECTEDE_REQUEST_DENIEDThe header <menu.h> automatically includes both <curses.h> and <eti.h>.
| September 10, 1999 | NetBSD 11.0 |