XIMOfIC (3)
Leading comments
Copyright \(co 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1994, 1996 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 is furnished to do so, subject to the foll...
NAME
XCreateIC, XDestroyIC, XIMOfIC - create, destroy, and obtain the input method of an input contextSYNTAX
- XIC XCreateIC(XIM im, ...);
- void XDestroyIC(XIC ic);
- XIM XIMOfIC(XIC ic);
ARGUMENTS
- ic
- Specifies the input context.
- im
- Specifies the input method.
- ...
- Specifies the variable length argument list to set XIC values.
DESCRIPTION
The 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 those arguments are not provided. The mandatory 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.
XCreateIC returns a NULL value if no input context could be created. A NULL value could be returned for any of the following reasons:
- *
- A required argument was not set.
- *
- A read-only argument was set (for example, XNFilterEvents).
- *
- The argument name is not recognized.
- *
- The input method encountered an input method implementation-dependent error.
The XCreateIC can generate BadAtom, BadColor, BadPixmap, and BadWindow errors.
XDestroyIC destroys the specified input context.
The XIMOfIC function returns the input method associated with the specified input context.
DIAGNOSTICS
- BadAtom
- A value for an Atom argument does not name a defined Atom.
- BadColor
- A value for a Colormap argument does not name a defined Colormap.
- BadPixmap
- A value for a Pixmap argument does not name a defined Pixmap.
- BadWindow
- A value for a Window argument does not name a defined Window.
SEE ALSO
XOpenIM(3), XSetICFocus(3), XSetICValues(3), XmbResetIC(3)Xlib - C Language X Interface