2 .\" Copyright 1989 AT&T
3 .\" Portions Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved.
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH MENU_WIN 3CURSES "Dec 31, 1996"
9 menu_win, set_menu_win, set_menu_sub, menu_sub, scale_menu \- menus window and
10 subwindow association routines
14 \fBcc\fR [ \fIflag\fR... ] \fIfile\fR... \fB-lmenu\fR \fB -lcurses \fR [ \fIlibrary\fR... ]
17 \fBint\fR \fBset_menu_win\fR(\fBMENU *\fR\fImenu\fR, \fBWINDOW *\fR\fIwin\fR);
22 \fBWINDOW *\fR\fBmenu_win\fR(\fBMENU *\fR\fImenu\fR);
27 \fBint\fR \fBset_menu_sub\fR(\fBMENU *\fR\fImenu\fR, \fBWINDOW *\fR\fIsub\fR);
32 \fBWINDOW *\fR\fBmenu_sub\fR(\fBMENU *\fR\fImenu\fR);
37 \fBint\fR \fBscale_window\fR(\fBMENU *\fR\fImenu\fR, \fBint *\fR\fIrows\fR, \fBint *\fR\fIcols\fR);
43 \fBset_menu_win()\fR sets the window of \fImenu\fR to \fIwin\fR.
44 \fBmenu_win()\fR returns a pointer to the window of
45 \fImenu\fR.\fBset_menu_sub()\fR sets the subwindow of \fImenu\fR to \fIsub\fR.
46 \fBmenu_sub()\fR returns a pointer to the subwindow of
47 \fImenu\fR.\fBscale_window()\fR returns the minimum window size necessary for
48 the subwindow of \fImenu\fR. \fIrows\fR and \fIcols\fR are pointers to the
49 locations used to return the values.
53 Routines that return pointers always return \fINULL\fR on error. Routines that
54 return an integer return one of the following:
61 The routine returned successfully.
79 An incorrect argument was passed to the routine.
88 The menu is already posted.
97 No items are connected to the menu.
103 See \fBattributes\fR(5) for descriptions of the following attributes:
111 ATTRIBUTE TYPE ATTRIBUTE VALUE
119 \fBcurses\fR(3CURSES), \fBmenus\fR(3CURSES), \fBattributes\fR(5)
123 The header \fB<menu.h>\fR automatically includes the headers \fB<eti.h>\fR and