1menu_win(3CURSES)          Curses Library Functions          menu_win(3CURSES)
2
3
4

NAME

6       menu_win, set_menu_win, set_menu_sub, menu_sub, scale_menu - menus win‐
7       dow and subwindow association routines
8

SYNOPSIS

10       cc [ flag... ] file... -lmenu  -lcurses  [ library... ]
11       #include <menu.h>
12
13       int set_menu_win(MENU *menu, WINDOW *win);
14
15
16       WINDOW *menu_win(MENU *menu);
17
18
19       int set_menu_sub(MENU *menu, WINDOW *sub);
20
21
22       WINDOW *menu_sub(MENU *menu);
23
24
25       int scale_window(MENU *menu, int *rows, int *cols);
26
27

DESCRIPTION

29       set_menu_win() sets the window of menu to  win.  menu_win()  returns  a
30       pointer to the window of menu.set_menu_sub() sets the subwindow of menu
31       to  sub.  menu_sub()  returns   a   pointer   to   the   subwindow   of
32       menu.scale_window()  returns  the minimum window size necessary for the
33       subwindow of menu. rows and cols are pointers to the locations used  to
34       return the values.
35

RETURN VALUES

37       Routines  that  return  pointers  always return NULL on error. Routines
38       that return an integer return one of the following:
39
40       E_OK               The routine returned successfully.
41
42
43       E_SYSTEM_ERROR     System error.
44
45
46       E_BAD_ARGUMENT     An incorrect argument was passed to the routine.
47
48
49       E_POSTED           The menu is already posted.
50
51
52       E_NOT_CONNECTED    No items are connected to the menu.
53
54

ATTRIBUTES

56       See attributes(5) for descriptions of the following attributes:
57
58
59
60
61       ┌─────────────────────────────┬─────────────────────────────┐
62       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
63       ├─────────────────────────────┼─────────────────────────────┤
64       │MT-Level                     │Unsafe                       │
65       └─────────────────────────────┴─────────────────────────────┘
66

SEE ALSO

68       curses(3CURSES), menus(3CURSES), attributes(5)
69

NOTES

71       The header <menu.h> automatically includes  the  headers   <eti.h>  and
72       <curses.h>.
73
74
75
76SunOS 5.11                        31 Dec 1996                menu_win(3CURSES)
Impressum