1 .\" Copyright 1993 X Consortium
3 .\" Permission is hereby granted, free of charge, to any person obtaining
4 .\" a copy of this software and associated documentation files (the
5 .\" "Software"), to deal in the Software without restriction, including
6 .\" without limitation the rights to use, copy, modify, merge, publish,
7 .\" distribute, sublicense, and/or sell copies of the Software, and to
8 .\" permit persons to whom the Software is furnished to do so, subject to
9 .\" the following conditions:
11 .\" The above copyright notice and this permission notice shall be
12 .\" included in all copies or substantial portions of the Software.
14 .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15 .\" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16 .\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17 .\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
18 .\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19 .\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20 .\" OTHER DEALINGS IN THE SOFTWARE.
22 .\" Except as contained in this notice, the name of the X Consortium shall
23 .\" not be used in advertising or otherwise to promote the sale, use or
24 .\" other dealings in this Software without prior written authorization
25 .\" from the X Consortium.
28 .ds xT X Toolkit Intrinsics \- C Language Interface
30 .ds xW X Toolkit Athena Widgets \- C Language Interface
31 .ds xL Xlib \- C Language X Interface
32 .ds xC Inter-Client Communication Conventions Manual
35 .hw XtCallback-Popdown wid-get
42 .\".if \\n(VS>=40 .vs \\n(VSu
43 .\".if \\n(VS<=39 .vs \\n(VSp
54 .de IN \" send an index entry to the stderr
57 .ie t \\$1\fB\^\\$2\^\fR\\$3
58 .el \\$1\fI\^\\$2\^\fP\\$3
61 .ie t \fB\^\\$1\^\fR\\$2
62 .el \fI\^\\$1\^\fP\\$2
65 .TH XtPopdown __libmansuffix__ __xorgversion__ "XT FUNCTIONS"
67 XtPopdown, XtCallbackPopdown \- unmap a pop-up
70 void XtPopdown(Widget \fIpopup_shell\fP);
72 void XtCallbackPopdown(Widget \fIw\fP, XtPointer \fIclient_data\fP, XtPointer
75 void MenuPopdown(String \fIshell_name\fP);
77 .IP \fIcall_data\fP 1i
78 Specifies the callback data,
79 which is not used by this procedure.
80 .IP \fIclient_data\fP 1i
81 Specifies a pointer to the
85 .IP \fIpopup_shell\fP 1i
86 Specifies the widget shell\*(Ps.
88 .IP \fIshell_name\fP 1i
89 Specifies the name of the widget shell to pop \*(Sn.
95 function performs the following:
99 .\".ZN XtCheckSubclass(popup_shell, popupShellWidgetClass)
100 to ensure popup_shell is a subclass of
103 Checks that popup_shell is currently popped_up;
104 otherwise, it generates an error.
106 Unmaps popup_shell's window.
108 If popup_shell's grab_kind is either
109 .ZN XtGrabNonexclusive
111 .ZN XtGrabExclusive ,
114 .\".ZN XtRemoveGrab(popup_shell)
116 Sets pop-up shell's popped_up field to
119 Calls the callback procedures on the shell's popdown_callback list.
122 .ZN XtCallbackPopdown
123 function casts the client data parameter to an
130 Widget enable_widget;
131 } XtPopdownIDRec, *XtPopdownID;
134 The shell_widget is the pop-up shell to pop down,
135 and the enable_widget is the widget that was used to pop it up.
137 .ZN XtCallbackPopdown
140 with the specified shell_widget
143 to resensitize the enable_widget.
145 If a shell name is not given,
149 with the widget for which the translation is specified.
150 If a shell_name is specified in the translation table,
152 tries to find the shell by looking up the widget tree starting at the
153 parent of the widget in which it is invoked.
154 If it finds a shell with the specified name in the pop-up children
156 it pops down the shell;
157 otherwise, it moves up the parent chain as needed.
160 gets to the application top-level shell widget
161 and cannot find a matching shell,
162 it generates an error.
164 XtCreatePopupShell(__libmansuffix__),
165 XtPopup(__libmansuffix__)