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
)
)
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.
E_OK
E_SYSTEM_ERROR
E_BAD_ARGUMENT
E_POSTED
E_CONNECTED
E_BAD_STATE
E_NO_ROOM
E_NOT_POSTED
E_UNKNOWN_COMMAND
E_NO_MATCH
E_NOT_SELECTABLE
E_NOT_CONNECTED
E_REQUEST_DENIED
<menu.h>
automatically includes both
<curses.h>
and
<eti.h>
.