head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC6:1.1.1.5 netbsd-11-0-RC5:1.1.1.5 netbsd-11-0-RC4:1.1.1.5 netbsd-11-0-RC3:1.1.1.5 netbsd-11-0-RC2:1.1.1.5 netbsd-11-0-RC1:1.1.1.5 netbsd-11:1.1.1.5.0.6 netbsd-11-base:1.1.1.5 netbsd-10-1-RELEASE:1.1.1.5 libXt-1-3-1:1.1.1.5 netbsd-8-3-RELEASE:1.1.1.4 netbsd-9-4-RELEASE:1.1.1.5 netbsd-10-0-RELEASE:1.1.1.5 netbsd-10-0-RC6:1.1.1.5 netbsd-10-0-RC5:1.1.1.5 netbsd-10-0-RC4:1.1.1.5 netbsd-10-0-RC3:1.1.1.5 netbsd-10-0-RC2:1.1.1.5 netbsd-10-0-RC1:1.1.1.5 libXt-1-3-0:1.1.1.5 netbsd-10:1.1.1.5.0.4 netbsd-10-base:1.1.1.5 netbsd-9-3-RELEASE:1.1.1.5 netbsd-9-2-RELEASE:1.1.1.5 libXt-1-2-1:1.1.1.5 netbsd-9-1-RELEASE:1.1.1.5 netbsd-8-2-RELEASE:1.1.1.4 netbsd-9-0-RELEASE:1.1.1.5 netbsd-9-0-RC2:1.1.1.5 netbsd-9-0-RC1:1.1.1.5 netbsd-9:1.1.1.5.0.2 netbsd-9-base:1.1.1.5 libXt-1-2-0:1.1.1.5 netbsd-8-1-RELEASE:1.1.1.4 netbsd-8-1-RC1:1.1.1.4 netbsd-7-2-RELEASE:1.1.1.4 netbsd-8-0-RELEASE:1.1.1.4 netbsd-8-0-RC2:1.1.1.4 netbsd-8-0-RC1:1.1.1.4 netbsd-7-1-2-RELEASE:1.1.1.4 netbsd-7-1-1-RELEASE:1.1.1.4 netbsd-8:1.1.1.4.0.10 netbsd-8-base:1.1.1.4 netbsd-7-1:1.1.1.4.0.8 netbsd-7-1-RELEASE:1.1.1.4 netbsd-7-1-RC2:1.1.1.4 netbsd-7-1-RC1:1.1.1.4 netbsd-7-0-2-RELEASE:1.1.1.4 netbsd-7-0-1-RELEASE:1.1.1.4 netbsd-7-0:1.1.1.4.0.6 netbsd-7-0-RELEASE:1.1.1.4 netbsd-7-0-RC3:1.1.1.4 netbsd-7-0-RC2:1.1.1.4 libXt-1-1-5:1.1.1.4 netbsd-7-0-RC1:1.1.1.4 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.4.0.4 netbsd-7-base:1.1.1.4 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.4 riastradh-drm2:1.1.1.4.0.2 riastradh-drm2-base:1.1.1.4 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 libXt-1-1-4:1.1.1.4 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 libXt-1-1-1:1.1.1.3 libXt-1-0-9:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 libXt-1-0-8:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 libXt-1-0-7:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 libXt-1-0-6:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 libXt-1-0-5:1.1.1.1 xorg:1.1.1; locks; strict; comment @.\" @; 1.1 date 2008.07.30.02.56.54; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.30.02.56.54; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.21.05.48.36; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.07.23.12.23.56; author mrg; state Exp; branches; next 1.1.1.4; 1.1.1.4 date 2013.05.31.09.19.54; author mrg; state Exp; branches; next 1.1.1.5; commitid UdAPYXenQVyEqLRw; 1.1.1.5 date 2019.07.11.05.43.09; author mrg; state Exp; branches; next ; commitid E2KJZD7NBiU8uAuB; desc @@ 1.1 log @Initial revision @ text @.\" $Xorg: XtDisplayI.man,v 1.3 2000/08/17 19:42:00 cpqbld Exp $ .\" $XdotOrg: $ .\" .\" Copyright (c) 1993, 1994 X Consortium .\" .\" Permission is hereby granted, free of charge, to any person obtaining a .\" copy of this software and associated documentation files (the "Software"), .\" to deal in the Software without restriction, including without limitation .\" the rights to use, copy, modify, merge, publish, distribute, sublicense, .\" and/or sell copies of the Software, and to permit persons to whom the .\" Software furnished to do so, subject to the following conditions: .\" .\" The above copyright notice and this permission notice shall be included in .\" all copies or substantial portions of the Software. .\" .\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR .\" IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL .\" THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE .\" SOFTWARE. .\" .\" Except as contained in this notice, the name of the X Consortium shall not .\" be used in advertising or otherwise to promote the sale, use or other .\" dealing in this Software without prior written authorization from the .\" X Consortium. .\" .\" $XFree86: xc/doc/man/Xt/XtDisplayI.man,v 1.3 2001/02/09 03:47:50 tsi Exp $ .\" .ds tk X Toolkit .ds xT X Toolkit Intrinsics \- C Language Interface .ds xI Intrinsics .ds xW X Toolkit Athena Widgets \- C Language Interface .ds xL Xlib \- C Language X Interface .ds xC Inter-Client Communication Conventions Manual .ds Rn 3 .ds Vn 2.2 .hw XtDisplay-Initialize XtOpen-Display XtClose-Display XtDatabase XtScreen-Database wid-get .na .de Ds .nf .\\$1D \\$2 \\$1 .ft 1 .ps \\n(PS .\".if \\n(VS>=40 .vs \\n(VSu .\".if \\n(VS<=39 .vs \\n(VSp .. .de De .ce 0 .if \\n(BD .DF .nr BD 0 .in \\n(OIu .if \\n(TM .ls 2 .sp \\n(DDu .fi .. .de FD .LP .KS .TA .5i 3i .ta .5i 3i .nf .. .de FN .fi .KE .LP .. .de IN \" send an index entry to the stderr .. .de C{ .KS .nf .D .\" .\" choose appropriate monospace font .\" the imagen conditional, 480, .\" may be changed to L if LB is too .\" heavy for your eyes... .\" .ie "\\*(.T"480" .ft L .el .ie "\\*(.T"300" .ft L .el .ie "\\*(.T"202" .ft PO .el .ie "\\*(.T"aps" .ft CW .el .ft R .ps \\n(PS .ie \\n(VS>40 .vs \\n(VSu .el .vs \\n(VSp .. .de C} .DE .R .. .de Pn .ie t \\$1\fB\^\\$2\^\fR\\$3 .el \\$1\fI\^\\$2\^\fP\\$3 .. .de ZN .ie t \fB\^\\$1\^\fR\\$2 .el \fI\^\\$1\^\fP\\$2 .. .de NT .ne 7 .ds NO Note .if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2 .if \\n(.$ .if !'\\$1'C' .ds NO \\$1 .ie n .sp .el .sp 10p .TB .ce \\*(NO .ie n .sp .el .sp 5p .if '\\$1'C' .ce 99 .if '\\$2'C' .ce 99 .in +5n .ll -5n .R .. . \" Note End -- doug kraft 3/85 .de NE .ce 0 .in -5n .ll +5n .ie n .sp .el .sp 10p .. .ny0 .TH XtDisplayInitialize __libmansuffix__ __xorgversion__ "XT FUNCTIONS" .SH NAME XtDisplayInitialize, XtOpenDisplay, XtDatabase, XtScreenDatabase, XtCloseDisplay \- initialize, open, or close a display .SH SYNTAX .HP void XtDisplayInitialize(XtAppContext \fIapp_context\fP, Display *\fIdisplay\fP, String \fIapplication_name\fP, String \fIapplication_class\fP, XrmOptionDescRec *\fIoptions\fP, Cardinal \fInum_options\fP, int *\fIargc\fP, String *\fIargv\fP); .HP Display *XtOpenDisplay(XtAppContext \fIapp_context\fP, String \fIdisplay_string\fP, String \fIapplication_name\fP, String \fIapplication_class\fP, XrmOptionDescRec *\fIoptions\fP, Cardinal \fInum_options\fP, int *\fIargc\fP, String *\fIargv\fP); .HP void XtCloseDisplay(Display *\fIdisplay\fP); .HP XrmDatabase XtDatabase(Display *\fIdisplay\fP); .HP XrmDatabase XtScreenDatabase(Screen* \fIscreen\fP); .SH ARGUMENTS .IP \fIargc\fP 1i Specifies a pointer to the number of command line parameters. .IP \fIargv\fP 1i Specifies the command line parameters. .IP \fIapp_context\fP 1i Specifies the application context. .ds Ac , which usually is the generic name for all instances of this application .IP \fIapplication_class\fP 1i Specifies the class name of this application\*(Ac. .IP \fIapplication_name\fP 1i Specifies the name of the application instance. .IP \fIdisplay\fP 1i Specifies the display\*(Di. Note that a display can be in at most one application context. .IP \fInum_options\fP 1i Specifies the number of entries in the options list. .IP \fIoptions\fP 1i Specifies how to parse the command line for any application-specific resources. The options argument is passed as a parameter to .ZN XrmParseCommand . For further information, see \fI\*(xL\fP. .IP \fIscreen\fP 1i Specifies the screen whose resource database is to be returned. .SH DESCRIPTION The .ZN XtDisplayInitialize function builds the resource database, calls the Xlib .ZN XrmParseCommand function to parse the command line, and performs other per display initialization. After .ZN XrmParseCommand has been called, argc and argv contain only those parameters that were not in the standard option table or in the table specified by the options argument. If the modified argc is not zero, most applications simply print out the modified argv along with a message listing the allowable options. On UNIX-based systems, the application name is usually the final component of argv[0]. If the synchronize resource is .ZN True for the specified application, .ZN XtDisplayInitialize calls the Xlib .ZN XSynchronize function to put Xlib into synchronous mode for this display connection. If the reverseVideo resource is .ZN True , the \*(xI exchange .ZN XtDefaultForeground and .ZN XtDefaultBackground for widgets created on this display. (See Section 9.6.1). .LP The .ZN XtOpenDisplay function calls .ZN XOpenDisplay the specified display name. If display_string is NULL, .ZN XtOpenDisplay uses the current value of the \-display option specified in argv and if no display is specified in argv, uses the user's default display (on UNIX-based systems, this is the value of the DISPLAY environment variable). .LP If this succeeds, it then calls .ZN XtDisplayInitialize and pass it the opened display and the value of the \-name option specified in argv as the application name. If no name option is specified, it uses the application name passed to .ZN XtOpenDisplay . If the application name is NULL, it uses the last component of argv[0]. .ZN XtOpenDisplay returns the newly opened display or NULL if it failed. .LP .ZN XtOpenDisplay is provided as a convenience to the application programmer. .LP The .ZN XtCloseDisplay function closes the specified display as soon as it is safe to do so. If called from within an event dispatch (for example, a callback procedure), .ZN XtCloseDisplay does not close the display until the dispatch is complete. Note that applications need only call .ZN XtCloseDisplay if they are to continue executing after closing the display; otherwise, they should call .ZN XtDestroyApplicationContext or just exit. .LP The .ZN XtDatabase function returns the fully merged resource database that was built by .ZN XtDisplayInitialize associated with the display that was passed in. If this display has not been initialized by .ZN XtDisplayInitialize , the results are not defined. .LP The .ZN XtScreenDatabase function returns the fully merged resource database associated with the specified screen. If the \fIscreen\fP does not belong to a .ZN Display initialized by .ZN XtDisplayInitialize , the results are undefined. .SH "SEE ALSO" XtAppCreateShell(3Xt), XtCreateApplicationContext(3Xt) .br \fI\*(xT\fP .br \fI\*(xL\fP @ 1.1.1.1 log @initial import of libXt-1.0.5 @ text @@ 1.1.1.2 log @initial import of libXt-1.0.9 @ text @d1 3 d29 2 @ 1.1.1.3 log @initial import of libXt-1.1.1. important changes include: avoid some NULL derefs snprintf cleanup big-endian 64 bit fixes @ text @d262 2 a263 2 XtAppCreateShell(__libmansuffix__), XtCreateApplicationContext(__libmansuffix__) @ 1.1.1.4 log @initial import of libXt-1.1.4 @ text @d2 1 a2 1 .\" d4 4 a7 4 .\" copy of this software and associated documentation files (the "Software"), .\" to deal in the Software without restriction, including without limitation .\" the rights to use, copy, modify, merge, publish, distribute, sublicense, .\" and/or sell copies of the Software, and to permit persons to whom the d9 1 a9 1 .\" d12 1 a12 1 .\" d15 4 a18 4 .\" FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL .\" THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, .\" WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF .\" OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE d20 4 a23 4 .\" .\" Except as contained in this notice, the name of the X Consortium shall not .\" be used in advertising or otherwise to promote the sale, use or other .\" dealing in this Software without prior written authorization from the d39 1 a39 1 .ft CW d53 12 d67 23 d98 26 d133 1 a133 1 String *\fIargv\fP); d138 1 a138 1 \fInum_options\fP, int *\fIargc\fP, String *\fIargv\fP); d140 1 a140 1 void XtCloseDisplay(Display *\fIdisplay\fP); d144 1 a144 1 XrmDatabase XtScreenDatabase(Screen* \fIscreen\fP); d175 1 a175 1 function to parse the command line, d177 2 a178 2 After .ZN XrmParseCommand d207 1 a207 1 .ZN XOpenDisplay d211 1 a211 1 uses the current value of the \-display option specified in argv d213 1 a213 1 uses the user's default display (on UNIX-based systems, d239 1 a239 1 if they are to continue executing after closing the display; d256 1 a256 1 specified screen. If the \fIscreen\fP does not belong to a @ 1.1.1.5 log @initial import of libXt-1.2.0 @ text @d34 1 a34 2 .hw XtDisplay-Initialize XtOpen-Display XtClose-Display XtDatabase .hw XtScreen-Database wid-get d36 28 a67 1 #include d69 4 a72 6 void XtDisplayInitialize(XtAppContext \fIapp_context\fP, Display *\fIdisplay\fP, const char *\fIapplication_name\fP, const char *\fIapplication_class\fP, XrmOptionDescRec *\fIoptions\fP, Cardinal \fInum_options\fP, int *\fIargc\fP, char **\fIargv\fP); d74 4 a77 6 Display *XtOpenDisplay(XtAppContext \fIapp_context\fP, const char *\fIdisplay_string\fP, const char *\fIapplication_name\fP, const char *\fIapplication_class\fP, XrmOptionDescRec *\fIoptions\fP, Cardinal \fInum_options\fP, int *\fIargc\fP, char **\fIargv\fP); d91 1 d93 1 a93 1 Specifies the class name of this application, which usually is the generic name for all instances of this application. d97 1 a97 1 Specifies the display. d104 1 a104 1 .BR XrmParseCommand . d111 1 a111 1 .B XtDisplayInitialize d113 1 a113 1 .B XrmParseCommand d117 1 a117 1 .B XrmParseCommand d128 1 a128 1 .B True d130 1 a130 1 .B XtDisplayInitialize d132 1 a132 1 .B XSynchronize d135 1 a135 1 .BR True , d137 1 a137 1 .B XtDefaultForeground d139 1 a139 1 .B XtDefaultBackground d144 1 a144 1 .B XtOpenDisplay d146 1 a146 1 .B XOpenDisplay d149 1 a149 1 .B XtOpenDisplay d156 1 a156 1 .B XtDisplayInitialize d161 1 a161 1 .BR XtOpenDisplay . d164 1 a164 1 .B XtOpenDisplay d167 1 a167 1 .B XtOpenDisplay d171 1 a171 1 .B XtCloseDisplay d174 1 a174 1 .B XtCloseDisplay d177 1 a177 1 .B XtCloseDisplay d180 1 a180 1 .B XtDestroyApplicationContext d184 1 a184 1 .B XtDatabase d186 1 a186 1 .B XtDisplayInitialize d189 1 a189 1 .BR XtDisplayInitialize , d193 1 a193 1 .B XtScreenDatabase d195 2 a196 3 specified screen. If the \fIscreen\fP does not belong to a .B Display d198 1 a198 1 .BR XtDisplayInitialize , @