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 DRAFTBecause this XIC value is optional, a client should call XGetIMValues with argumentXNQueryICValuesList before using this functionality.The value of the argument is a pointer to a structure of type XIMHotKeyTriggers.If an event for a key in the hot key list is found, then the process will receive the event and it willbe processed inside the client.typedef struct {KeySym keysym;unsigned int modifier;unsigned int modifier_mask;}XIMHotKeyTrigger;typedef struct {int num_hot_key;XIMHotKeyTrigger *key;}XIMHotKeyTriggers;The combination of modifier and modifier_mask are used to represent one of three states for eachmodifier: either the modifier must be on, or the modifier must be off, or the modifier is a ‘‘don’tcare’’ −itmay be on or off. When amodifier_mask bit is set to 0, the state of the associatedmodifier is ignored when evaluating whether the key is hot or not.Modifier Bit Mask Bit Meaning0 1 The modifier must be off.1 1 The modifier must be on.n/a 0 Do not care if the modifier is on or off.13.5.6.12. Hot Key StateThe XNHotKeyState argument specifies the hot key state of the input method. This is usuallyused to switch the input method between hot key operation and normal input processing.The value of the argument is a pointer to a structure of type XIMHotKeyState .typedef unsigned long XIMHotKeyState;#define XIMHotKeyStateON (0x0001L)#define XIMHotKeyStateOFF (0x0002L)If not specified, the default is XIMHotKeyStateOFF.13.5.6.13. Preedit and Status AttributesThe XNPreeditAttributes and XNStatusAttributes arguments specify to an input method theattributes to be used for the preedit and status areas, if any. Those attributes are passed to326

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

Saved successfully!

Ooh no, something went wrong!