Curses Library Functions menuwin(3CURSES)
NAME
menuwin, setmenuwin, setmenusub, menusub, scalemenu -
menus window and subwindow association routines
SYNOPSIS
cc [ flag... ] file... -lmenu -lcurses [ library... ]
#include
int setmenuwin(MENU *menu, WINDOW *win);
WINDOW *menuwin(MENU *menu);
int setmenusub(MENU *menu, WINDOW *sub);
WINDOW *menusub(MENU *menu);
int scalewindow(MENU *menu, int *rows, int *cols);
DESCRIPTION
setmenuwin() sets the window of menu to win. menuwin()
returns a pointer to the window of menu.setmenusub() sets
the subwindow of menu to sub. menusub() returns a pointer
to the subwindow of menu.scalewindow() returns the minimum
window size necessary for the subwindow of menu. rows and
cols are pointers to the locations used to return the
values.
RETURN VALUES
Routines that return pointers always return NUL on error.
Routines that return an integer return one of the following:
EOK The routine returned successfully.
ESYSTEMEROR System error.
EBADARGUMENT An incorrect argument was passed to the
routine.
EPOSTED The menu is already posted.
ENOTCONECTED No items are connected to the menu.
SunOS 5.11 Last change: 31 Dec 1996 1
Curses Library Functions menuwin(3CURSES)
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
ATRIBUTE TYPE ATRIBUTE VALUE
MT-Level Unsafe
SEE ALSO
curses(3CURSES), menus(3CURSES), attributes(5)
NOTES
The header automatically includes the headers
and .
SunOS 5.11 Last change: 31 Dec 1996 2
|