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 DRAFTchar * XSetIMValues (im, ...)XIM im;imSpecifies the input method.... Specifies the variable-length argument list to set XIM values.The XSetIMValues function presents a variable argument list programming interface for settingattributes of the specified input method. It returns NULL if it succeeds; otherwise, it returns thename of the first argument that could not be set. <strong>Xlib</strong> does not attempt to set arguments from thesupplied list that follow the failed argument; all arguments in the list preceding the failed argumenthave been set correctly.To query an input method, use XGetIMValues.char * XGetIMValues (im, ...)XIM im;imSpecifies the input method.... Specifies the variable length argument list to get XIM values.The XGetIMValues function presents a variable argument list programming interface for queryingproperties or features of the specified input method. This function returns NULL if it succeeds;otherwise, it returns the name of the first argument that could not be obtained.Each XIM value argument (following a name) must point to a location where the XIM value is tobe stored. That is, if the XIM value is of type T, the argument must be of type T*. If T itself is apointer type, then XGetIMValues allocates memory to store the actual data, and the client isresponsible for freeing this data by calling XFree with the returned pointer.To obtain the display associated with an input method, use XDisplayOfIM.Display * XDisplayOfIM(im)XIM im;imSpecifies the input method.The XDisplayOfIM function returns the display associated with the specified input method.To get the locale associated with an input method, use XLocaleOfIM.char * XLocaleOfIM(im)XIM im;imSpecifies the input method.The XLocaleOfIM function returns the locale associated with the specified input method.To register an input method instantiate callback, use XRegisterIMInstantiateCallback.312

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

Saved successfully!

Ooh no, something went wrong!