1. NAME

XSetICValues, XGetICValues - set and obtain XIC values

2. SYNTAX

char * XSetICValues(XIC ic, ...); char * XGetICValues(XIC ic, ...);

3. ARGUMENTS

ic 1i Specifies the input context.

... 1i Specifies the variable length argument list\*(Al.

4. DESCRIPTION

The .ZN XSetICValues function returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be set. An argument might not be set for any of the following reasons:

5 The argument is read-only (for example, .ZN XNFilterEvents ).

5 The argument name is not recognized.

5 An implementation-dependent error occurs.

Each value to be set must be an appropriate datum, matching the data type imposed by the semantics of the argument.

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

The .ZN XGetICValues function returns NULL if no error occurred; otherwise, it returns the name of the first argument that could not be obtained. An argument could not be obtained for any of the following reasons:

5 The argument name is not recognized.

5 The input method encountered an implementation-dependent error.

Each IC attribute value argument (following a name) must point to a location where the IC value is to be stored. That is, if the IC value is of type T, the argument must be of type T*. If T itself is a pointer type, then .ZN XGetICValues allocates memory to store the actual data, and the client is responsible for freeing this data by calling .ZN XFree with the returned pointer. The exception to this rule is for an IC value of type .ZN XNVaNestedList (for preedit and status attributes). In this case, the argument must also be of type .ZN XVaNestedList . Then, the rule of changing type T to T* and freeing the allocated data applies to each element of the nested list.

5. DIAGNOSTICS

  • .ZN BadAtom
     A value for an Atom argument does not name a defined Atom.
  • .ZN BadColor
     A value for a Colormap argument does not name a defined Colormap.
  • .ZN BadCursor
     A value for a Cursor argument does not name a defined Cursor.
  • .ZN BadPixmap
     A value for a Pixmap argument does not name a defined Pixmap.
  • .ZN BadWindow
     A value for a Window argument does not name a defined Window.

6. SEE ALSO

XCreateIC(3), XOpenIM(3), XSetICFocus(3), XmbResetIC(3)
\*(xL