1XmbResetIC(3) XLIB FUNCTIONS XmbResetIC(3)
2
3
4
6 XmbResetIC, XwcResetIC, Xutf8ResetIC - reset the state of an input con‐
7 text
8
10 char *XmbResetIC(XIC ic);
11
12 wchar_t *XwcResetIC(XIC ic);
13
14 char *Xutf8ResetIC(XIC ic);
15
17 ic Specifies the input context.
18
20 When XNResetState is set to XIMInitialState, XmbResetIC, XwcResetIC and
21 Xutf8ResetIC reset an input context to its initial state; when XNReset‐
22 State is set to XIMPreserveState, the current input context state is
23 preserved. In both cases, any input pending on that context is
24 deleted. The input method is required to clear the preedit area, if
25 any, and update the status accordingly. Calling XmbResetIC, XwcResetIC
26 or Xutf8ResetIC does not change the focus.
27
28 The return value of XmbResetIC is its current preedit string as a
29 multibyte string. The return value of XwcResetIC is its current
30 preedit string as a wide character string. The return value of
31 Xutf8ResetIC is its current preedit string as an UTF-8 string. If
32 there is any preedit text drawn or visible to the user, then these pro‐
33 cedures must return a non-NULL string. If there is no visible preedit
34 text, then it is input method implementation-dependent whether these
35 procedures return a non-NULL string or NULL.
36
37 The client should free the returned string by calling XFree.
38
39 The function Xutf8ResetIC is an extension introduced by The XFree86
40 Project, Inc., in their 4.0.2 release. Its presence is indicated by
41 the macro X_HAVE_UTF8_STRING.
42
44 XCreateIC(3), XOpenIM(3), XSetICFocus(3), XSetICValues(3)
45 Xlib - C Language X Interface
46
47
48
49X Version 11 libX11 1.8.7 XmbResetIC(3)