12.07.2015 Views

Xlib − C Language X Interface

Xlib − C Language X Interface

Xlib − C Language X Interface

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Xlib</strong> − C LibraryX11, Release 6.7 DRAFTprimary draw direction from the caret position in the preedit area forward. The XIMVisibleTo-Backward mask indicates that the preedit text is preferably displayed from the caret position inthe preedit area backward, relative to the primary draw direction. The XIMVisibleCenter maskindicates that the preedit text is preferably displayed with the caret position in the preedit areacentered.The insertion point of the preedit string could exist outside of the visible area when visibility hintsare used. Only one of the masks is valid for the entire preedit string, and only one character canhold one of these feedbacks for a given input context at one time. This feedback may be OR’edtogether with another highlight (such as XIMReverse). Only the most recently set feedback isvalid, and any previous feedback is automatically canceled. This is a hint to the client, and theclient is free to choose how todisplay the preedit string.The feedback member also specifies how rendering of the text argument should be performed. Ifthe feedback is NULL, the callback should apply the same feedback as is used for the surroundingcharacters in the preedit buffer; if chg_first is at a highlight boundary, the client can choosewhich of the two highlights to use. If feedback is not NULL, feedback specifies an array definingthe rendering for each character of the string, and the length of the array is thus length.If an input method wants to indicate that it is only updating the feedback of the preedit text withoutchanging the content of it, the XIMText structure will contain a NULL value for the stringfield, the number of characters affected (relative to chg_first) will be in the length field, and thefeedback field will point to an array of XIMFeedback.Each element in the feedback array is a bitmask represented by a value of type XIMFeedback.The valid mask names are as follows:typedef unsigned long XIMFeedback;#define XIMReverse 1L#define XIMUnderline (1L

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

Saved successfully!

Ooh no, something went wrong!