![]() |
![]() |
![]() |
IBus Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
const gchar * ibus_keyval_name (guint keyval
); guint ibus_keyval_from_name (const gchar *keyval_name
); guint ibus_unicode_to_keyval (gunichar wc
); gunichar ibus_keyval_to_unicode (guint keyval
); guint ibus_keyval_to_upper (guint keyval
); guint ibus_keyval_to_lower (guint keyval
); void ibus_keyval_convert_case (guint symbol
,guint *lower
,guint *upper
);
const gchar * ibus_keyval_name (guint keyval
);
Return the name of a key symbol.
Note that the returned string is used internally, so don't free it.
|
Key symbol. |
Returns : |
Corresponding key name. NULL if no such key symbol. |
guint ibus_keyval_from_name (const gchar *keyval_name
);
Return the key symbol that associate with the key name.
|
Key name in gdk_keys_by_name. |
Returns : |
Corresponding key symbol. |
guint ibus_unicode_to_keyval (gunichar wc
);
Convert from a ISO10646 character to a key symbol.
|
a ISO10646 encoded character |
Returns : |
the corresponding IBus key symbol, if one exists. or, if there is no corresponding symbol, wc | 0x01000000 |
gunichar ibus_keyval_to_unicode (guint keyval
);
Convert from an IBus key symbol to the corresponding ISO10646 (Unicode) character.
|
an IBus key symbol |
Returns : |
the corresponding unicode character, or 0 if there is no corresponding character. |
guint ibus_keyval_to_upper (guint keyval
);
Converts a key value to upper case, if applicable.
|
a key value. |
Returns : |
the upper case form of keyval , or keyval itself if it is already
in upper case or it is not subject to case conversion. |
guint ibus_keyval_to_lower (guint keyval
);
Converts a key value to lower case, if applicable.
|
a key value. |
Returns : |
the lower case form of keyval , or keyval itself if it is already
in lower case or it is not subject to case conversion. |
void ibus_keyval_convert_case (guint symbol
,guint *lower
,guint *upper
);
Obtains the upper- and lower-case versions of the keyval symbol
.
Examples of keyvals are IBUS_KEY_a, IBUS_KEY_Enter, IBUS_KEY_F1, etc.
|
a keyval |
|
return location for lowercase version of symbol . [out]
|
|
return location for uppercase version of symbol . [out]
|