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