xref: /386bsd/usr/X386/man/man3/XCreateIC.3x (revision a2142627)
.\\$1D \\$2 \\$1
.ps \\n(PS
.if \\n(VS>=40 .vs \\n(VSu
.if \\n(VS<=39 .vs \\n(VSp
..

0 .nr BD 0

..

.KS .TA .5i 3i

..
.KE

.. .. .KS

.D

choose appropriate monospace font
the imagen conditional, 480,
may be changed to L if LB is too
heavy for your eyes...

.. .R .. .. .. .TB

\\*(NO .R .. . \" Note End -- doug kraft 3/85

0 .. .ny0

XCreateIC 3X11 "Release 5" "X Version 11" "XLIB FUNCTIONS"
NAME
XCreateIC, XDestroyIC, XIMOfIC - create, destroy, and obtain the input method of an input context
SYNTAX
XIC XCreateIC\^(\^im\^, ...)

XIM im\^;

void XDestroyIC\^(\^ic\^)

XIC ic\^;

XIM XIMOfIC\^(\^ic\^)

XIC ic\^;

ARGUMENTS
ic 1i
Specifies the input context.
im 1i
Specifies the input method.
... 1i
Specifies the variable length argument list\*(Al.
DESCRIPTION
The .ZN XCreateIC function creates a context within the specified input method.

Some of the arguments are mandatory at creation time, and the input context will not be created if they are not provided. Those arguments are the input style and the set of text callbacks (if the input style selected requires callbacks). All other input context values can be set later.

.ZN XCreateIC returns a NULL value if no input context could be created. A NULL value could be returned for any of the following reasons:

\(bu 5
A required argument was not set.
\(bu 5
A read-only argument was set (for example, .ZN XNFilterEvents ).
\(bu 5
The argument name is not recognized.
\(bu 5
The input method encountered an input method implementation dependent error.

The .ZN XCreateIC can generate .ZN BadAtom , .ZN BadColor , .ZN BadPixmap , and .ZN BadWindow errors.

.ZN XDestroyIC destroys the specified input context.

The .ZN XIMOfIC function returns the input method associated with the specified input context.

DIAGNOSTICS
$Header: badatom.e,v 1.1 87/09/04 08:22:55 mento Exp $

1i .ZN BadAtom A value for an Atom argument does not name a defined Atom. $Header: badcolor.e,v 1.1 87/09/04 08:22:57 mento Exp $

1i .ZN BadColor A value for a Colormap argument does not name a defined Colormap. $Header: badpixmap.e,v 1.1 87/09/04 08:23:16 mento Exp $

1i .ZN BadPixmap A value for a Pixmap argument does not name a defined Pixmap. $Header: badwindow.e,v 1.1 87/09/04 08:23:20 mento Exp $

1i .ZN BadWindow A value for a Window argument does not name a defined Window.

"SEE ALSO"
XOpenIM(3X11), XSetICFocus(3X11), XSetICValues(3X11), XmbResetIC(3X11)

\*(xL