MirBSD manpage: XCreateIC(3), XDestroyIC(3), XIMOfIC(3)

XCreateIC(3X11)          XLIB FUNCTIONS           XCreateIC(3X11)


     XCreateIC, XDestroyIC, XIMOfIC - create, destroy, and obtain
     the input method of an input context


     XIC XCreateIC(XIM im, ...);

     void XDestroyIC(XIC ic);

     XIM XIMOfIC(XIC ic);


     ic        Specifies the input context.

     im        Specifies the input method.

     ...       Specifies the variable length argument list to set
               XIC values.


     The XCreateIC function creates a context within the speci-
     fied 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 fol-
     lowing reasons:

     +    A required argument was not set.

     +    A read-only argument was set (for example, XNFil-

     +    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.

XFree86                   Version 4.5.0                         1

XCreateIC(3X11)          XLIB FUNCTIONS           XCreateIC(3X11)


     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.


     XOpenIM(3X11), XSetICFocus(3X11), XSetICValues(3X11),
     Xlib - C Language X Interface

XFree86                   Version 4.5.0                         2

Generated on 2021-12-07 11:07:08 by $MirOS: src/scripts/roff2htm,v 1.103 2021/01/23 20:24:35 tg Exp $ — This product includes material provided by mirabilos.

These manual pages and other documentation are copyrighted by their respective writers; their sources are available at the project’s CVSweb, AnonCVS and other mirrors. The rest is Copyright © 2002–2021 MirBSD.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.