12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTnon-NULL string or NULL.The client should free the returned string by calling XFree.The function Xutf8ResetIC is an XFree86 extension introduced in XFree86 4.0.2. Its presence isindicated by the macro X_HAVE_UTF8_STRING.To get the input method associated with an input context, use XIMOfIC.XIM XIMOfIC(ic)XIC ic;icSpecifies the input context.The XIMOfIC function returns the input method associated with the specified input context.<strong>Xlib</strong> provides two functions for setting and reading XIC values, respectively, XSetICValues andXGetICValues. Both functions have a variable-length argument list. In that argument list, anyXIC value’s name must be denoted with a character string using the X Portable Character Set.To set XIC values, use XSetICValues.char * XSetICValues (ic, ...)XIC ic;icSpecifies the input context.... Specifies the variable length argument list to set XIC values.The XSetICValues function returns NULL if no error occurred; otherwise, it returns the name ofthe first argument that could not be set. An argument might not be set for any ofthe followingreasons:• The argument is read-only (for example, XNFilterEvents).• The argument name is not recognized.• Animplementation-dependent error occurs.Each value to be set must be an appropriate datum, matching the data type imposed by the semanticsof the argument.XSetICValues can generate BadAtom, BadColor, BadCursor, BadPixmap, and BadWindowerrors.To obtain XIC values, use XGetICValues.char * XGetICValues (ic, ...)XIC ic;icSpecifies the input context.... Specifies the variable length argument list to get XIC values.The XGetICValues function returns NULL if no error occurred; otherwise, it returns the name of320

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!