Blame man/XOpenIM.man

Packit Service dc579d
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 X Consortium
Packit Service dc579d
.\"
Packit Service dc579d
.\" Permission is hereby granted, free of charge, to any person obtaining
Packit Service dc579d
.\" a copy of this software and associated documentation files (the
Packit Service dc579d
.\" "Software"), to deal in the Software without restriction, including
Packit Service dc579d
.\" without limitation the rights to use, copy, modify, merge, publish,
Packit Service dc579d
.\" distribute, sublicense, and/or sell copies of the Software, and to
Packit Service dc579d
.\" permit persons to whom the Software is furnished to do so, subject to
Packit Service dc579d
.\" the following conditions:
Packit Service dc579d
.\"
Packit Service dc579d
.\" The above copyright notice and this permission notice shall be included
Packit Service dc579d
.\" in all copies or substantial portions of the Software.
Packit Service dc579d
.\"
Packit Service dc579d
.\" THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
Packit Service dc579d
.\" OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
Packit Service dc579d
.\" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
Packit Service dc579d
.\" IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR
Packit Service dc579d
.\" OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
Packit Service dc579d
.\" ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
Packit Service dc579d
.\" OTHER DEALINGS IN THE SOFTWARE.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Except as contained in this notice, the name of the X Consortium shall
Packit Service dc579d
.\" not be used in advertising or otherwise to promote the sale, use or
Packit Service dc579d
.\" other dealings in this Software without prior written authorization
Packit Service dc579d
.\" from the X Consortium.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991 by
Packit Service dc579d
.\" Digital Equipment Corporation
Packit Service dc579d
.\"
Packit Service dc579d
.\" Portions Copyright \(co 1990, 1991 by
Packit Service dc579d
.\" Tektronix, Inc.
Packit Service dc579d
.\"
Packit Service dc579d
.\" Permission to use, copy, modify and distribute this documentation for
Packit Service dc579d
.\" any purpose and without fee is hereby granted, provided that the above
Packit Service dc579d
.\" copyright notice appears in all copies and that both that copyright notice
Packit Service dc579d
.\" and this permission notice appear in all copies, and that the names of
Packit Service dc579d
.\" Digital and Tektronix not be used in in advertising or publicity pertaining
Packit Service dc579d
.\" to this documentation without specific, written prior permission.
Packit Service dc579d
.\" Digital and Tektronix makes no representations about the suitability
Packit Service dc579d
.\" of this documentation for any purpose.
Packit Service dc579d
.\" It is provided ``as is'' without express or implied warranty.
Packit Service dc579d
.\" 
Packit Service dc579d
.\"
Packit Service dc579d
.ds xT X Toolkit Intrinsics \- C Language Interface
Packit Service dc579d
.ds xW Athena X Widgets \- C Language X Toolkit Interface
Packit Service dc579d
.ds xL Xlib \- C Language X Interface
Packit Service dc579d
.ds xC Inter-Client Communication Conventions Manual
Packit Service dc579d
.na
Packit Service dc579d
.de Ds
Packit Service dc579d
.nf
Packit Service dc579d
.\\$1D \\$2 \\$1
Packit Service dc579d
.ft CW
Packit Service dc579d
.\".ps \\n(PS
Packit Service dc579d
.\".if \\n(VS>=40 .vs \\n(VSu
Packit Service dc579d
.\".if \\n(VS<=39 .vs \\n(VSp
Packit Service dc579d
..
Packit Service dc579d
.de De
Packit Service dc579d
.ce 0
Packit Service dc579d
.if \\n(BD .DF
Packit Service dc579d
.nr BD 0
Packit Service dc579d
.in \\n(OIu
Packit Service dc579d
.if \\n(TM .ls 2
Packit Service dc579d
.sp \\n(DDu
Packit Service dc579d
.fi
Packit Service dc579d
..
Packit Service dc579d
.de IN		\" send an index entry to the stderr
Packit Service dc579d
..
Packit Service dc579d
.de Pn
Packit Service dc579d
.ie t \\$1\fB\^\\$2\^\fR\\$3
Packit Service dc579d
.el \\$1\fI\^\\$2\^\fP\\$3
Packit Service dc579d
..
Packit Service dc579d
.de ZN
Packit Service dc579d
.ie t \fB\^\\$1\^\fR\\$2
Packit Service dc579d
.el \fI\^\\$1\^\fP\\$2
Packit Service dc579d
..
Packit Service dc579d
.de hN
Packit Service dc579d
.ie t <\fB\\$1\fR>\\$2
Packit Service dc579d
.el <\fI\\$1\fP>\\$2
Packit Service dc579d
..
Packit Service dc579d
.ny0
Packit Service dc579d
.TH XOpenIM __libmansuffix__ __xorgversion__ "XLIB FUNCTIONS"
Packit Service dc579d
.SH NAME
Packit Service dc579d
XOpenIM, XCloseIM, XSetIMValues, XGetIMValues, XDisplayOfIM, XLocaleOfIM, XRegisterIMInstantiateCallback, XUnregisterIMInstantiateCallback \- open, close, and obtain input method information
Packit Service dc579d
.SH SYNTAX
Packit Service dc579d
.HP
Packit Service dc579d
XIM XOpenIM\^(\^Display *\fIdisplay\fP\^, XrmDatabase \fIdb\fP\^, char
Packit Service dc579d
*\fIres_name\fP\^, char *\fIres_class\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
Status XCloseIM\^(\^XIM \fIim\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
char *XSetIMValues\^(\^XIM \fIim\fP\^, ...); 
Packit Service dc579d
.HP
Packit Service dc579d
char *XGetIMValues\^(\^XIM \fIim\fP\^, ...); 
Packit Service dc579d
.HP
Packit Service dc579d
Display *XDisplayOfIM\^(\^XIM \fIim\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
char *XLocaleOfIM\^(\^XIM \fIim\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
Bool XRegisterIMInstantiateCallback\^(\^Display *\fIdisplay\fP\^, XrmDatabase
Packit Service dc579d
\fIdb\fP\^, char *\fIres_name\fP\^, char *\fIres_class\fP\^, XIDProc
Packit Service dc579d
\fIcallback\fP\^, XPointer \fIclient_data\fP\^); 
Packit Service dc579d
.HP
Packit Service dc579d
Bool XUnregisterIMInstantiateCallback\^(\^Display *\fIdisplay\fP\^,
Packit Service dc579d
XrmDatabase \fIdb\fP\^, char *\fIres_name\fP\^, char *\fIres_class\fP\^,
Packit Service dc579d
XIDProc \fIcallback\fP\^, XPointer \fIclient_data\fP\^); 
Packit Service dc579d
.LP
Packit Service dc579d
.SH ARGUMENTS
Packit Service dc579d
.IP \fIcallback\fP 1i
Packit Service dc579d
Specifies a pointer to the input method instantiate callback.
Packit Service dc579d
.IP \fIclient_data\fP 1i
Packit Service dc579d
Specifies the additional client data.
Packit Service dc579d
.IP \fIdb\fP 1i
Packit Service dc579d
Specifies a pointer to the resource database.
Packit Service dc579d
.IP \fIdisplay\fP 1i
Packit Service dc579d
Specifies the connection to the X server.
Packit Service dc579d
.IP \fIim\fP 1i
Packit Service dc579d
Specifies the input method.
Packit Service dc579d
.IP \fIres_class\fP 1i
Packit Service dc579d
Specifies the full class name of the application.
Packit Service dc579d
.IP \fIres_name\fP 1i
Packit Service dc579d
Specifies the full resource name of the application.
Packit Service dc579d
.ds Al \ to set or get XIM values
Packit Service dc579d
.IP ... 1i
Packit Service dc579d
Specifies the variable length argument list\*(Al.
Packit Service dc579d
.SH DESCRIPTION
Packit Service dc579d
The
Packit Service dc579d
.ZN XOpenIM
Packit Service dc579d
function opens an input method, 
Packit Service dc579d
matching the current locale and modifiers specification.
Packit Service dc579d
Current locale and modifiers are bound to the input method at opening time.
Packit Service dc579d
The locale associated with an input method cannot be changed dynamically.
Packit Service dc579d
This implies that the strings returned by
Packit Service dc579d
.ZN XmbLookupString
Packit Service dc579d
or
Packit Service dc579d
.ZN XwcLookupString ,
Packit Service dc579d
for any input context affiliated with a given input method
Packit Service dc579d
will be encoded in the locale current at the time the input method is opened.
Packit Service dc579d
.LP
Packit Service dc579d
The specific input method to which this call will be routed
Packit Service dc579d
is identified on the basis of the current locale. 
Packit Service dc579d
.ZN XOpenIM
Packit Service dc579d
will identify a default input method corresponding to the
Packit Service dc579d
current locale.
Packit Service dc579d
That default can be modified using 
Packit Service dc579d
.ZN XSetLocaleModifiers
Packit Service dc579d
for the input method modifier.
Packit Service dc579d
.LP
Packit Service dc579d
The db argument is the resource database to be used by the input method
Packit Service dc579d
for looking up resources that are private to the input method.
Packit Service dc579d
It is not intended that this database be used to look
Packit Service dc579d
up values that can be set as IC values in an input context.
Packit Service dc579d
If db is NULL,
Packit Service dc579d
no database is passed to the input method.
Packit Service dc579d
.LP
Packit Service dc579d
The res_name and res_class arguments specify the resource name 
Packit Service dc579d
and class of the application. 
Packit Service dc579d
They are intended to be used as prefixes by the input method
Packit Service dc579d
when looking up resources that are common to all input contexts
Packit Service dc579d
that may be created for this input method.
Packit Service dc579d
The characters used for resource names and classes must be in the
Packit Service dc579d
X Portable Character Set.
Packit Service dc579d
The resources looked up are not fully specified
Packit Service dc579d
if res_name or res_class is NULL.
Packit Service dc579d
.LP
Packit Service dc579d
The res_name and res_class arguments are not assumed to exist beyond
Packit Service dc579d
the call to
Packit Service dc579d
.ZN XOpenIM .
Packit Service dc579d
The specified resource database is assumed to exist for the lifetime
Packit Service dc579d
of the input method.
Packit Service dc579d
.LP
Packit Service dc579d
.ZN XOpenIM
Packit Service dc579d
returns NULL if no input method could be opened.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XCloseIM
Packit Service dc579d
function closes the specified input method.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XSetIMValues
Packit Service dc579d
function presents a variable argument list programming interface
Packit Service dc579d
for setting attributes of the specified input method.
Packit Service dc579d
It returns NULL if it succeeds;
Packit Service dc579d
otherwise,
Packit Service dc579d
it returns the name of the first argument that could not be set.
Packit Service dc579d
Xlib does not attempt to set arguments from the supplied list that
Packit Service dc579d
follow the failed argument;
Packit Service dc579d
all arguments in the list preceding the failed argument have been set
Packit Service dc579d
correctly.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XGetIMValues
Packit Service dc579d
function presents a variable argument list programming interface
Packit Service dc579d
for querying properties or features of the specified input method.
Packit Service dc579d
This function returns NULL if it succeeds;
Packit Service dc579d
otherwise,
Packit Service dc579d
it returns the name of the first argument that could not be obtained.
Packit Service dc579d
.LP
Packit Service dc579d
Each XIM value argument (following a name) must point to
Packit Service dc579d
a location where the XIM value is to be stored.
Packit Service dc579d
That is, if the XIM value is of type T,
Packit Service dc579d
the argument must be of type T*.
Packit Service dc579d
If T itself is a pointer type,
Packit Service dc579d
then
Packit Service dc579d
.ZN XGetIMValues
Packit Service dc579d
allocates memory to store the actual data,
Packit Service dc579d
and the client is responsible for freeing this data by calling
Packit Service dc579d
.ZN XFree
Packit Service dc579d
with the returned pointer.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XDisplayOfIM
Packit Service dc579d
function returns the display associated with the specified input method.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XLocaleOfIM
Packit Service dc579d
function returns the locale associated with the specified input method.
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XRegisterIMInstantiateCallback
Packit Service dc579d
function registers a callback to be invoked whenever a new input method
Packit Service dc579d
becomes available for the specified display that matches the current
Packit Service dc579d
locale and modifiers.
Packit Service dc579d
.LP
Packit Service dc579d
The function returns 
Packit Service dc579d
.ZN True
Packit Service dc579d
if it succeeds; otherwise, it returns 
Packit Service dc579d
.ZN False .
Packit Service dc579d
.LP
Packit Service dc579d
The
Packit Service dc579d
.ZN XUnregisterIMInstantiateCallback
Packit Service dc579d
function removes an input method instantiation callback previously
Packit Service dc579d
registered.
Packit Service dc579d
The function returns
Packit Service dc579d
.ZN True
Packit Service dc579d
if it succeeds; otherwise, it returns 
Packit Service dc579d
.ZN False .
Packit Service dc579d
.SH "SEE ALSO"
Packit Service dc579d
XCreateIC(__libmansuffix__),
Packit Service dc579d
XSetICFocus(__libmansuffix__),
Packit Service dc579d
XSetICValues(__libmansuffix__),
Packit Service dc579d
XmbResetIC(__libmansuffix__)
Packit Service dc579d
.br
Packit Service dc579d
\fI\*(xL\fP