Top |
enum | IBusModifierType |
enum | IBusCapabilite |
enum | IBusPreeditFocusMode |
enum | IBusOrientation |
enum | IBusBusNameFlag |
enum | IBusBusRequestNameReply |
enum | IBusBusStartServiceByNameReply |
enum | IBusError |
struct | IBusRectangle |
enum | IBusInputPurpose |
enum | IBusInputHints |
This section consists generic types for IBus, including shift/control key modifiers, and a rectangle structure.
Handles key modifier such as control, shift and alt and release event. Note that nits 15 - 25 are currently unused, while bit 29 is used internally.
Shift is activated. |
||
Cap Lock is locked. |
||
Control key is activated. |
||
Modifier 1 (Usually Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd)) activated. |
||
Modifier 2 (Usually Num_Lock (0x4d)) activated. |
||
Modifier 3 activated. |
||
Modifier 4 (Usually Super_L (0xce), Hyper_L (0xcf)) activated. |
||
Modifier 5 (ISO_Level3_Shift (0x5c), Mode_switch (0xcb)) activated. |
||
Mouse button 1 (left) is activated. |
||
Mouse button 2 (middle) is activated. |
||
Mouse button 3 (right) is activated. |
||
Mouse button 4 (scroll up) is activated. |
||
Mouse button 5 (scroll down) is activated. |
||
Handled mask indicates the event has been handled by ibus. |
||
Forward mask indicates the event has been forward from ibus. |
||
It is an alias of IBUS_FORWARD_MASK. |
||
Super (Usually Win) key is activated. |
||
Hyper key is activated. |
||
Meta key is activated. |
||
Key is released. |
||
Modifier mask for the all the masks above. |
Capability flags of UI.
UI is capable to show pre-edit text. |
||
UI is capable to show auxiliary text. |
||
UI is capable to show the lookup table. |
||
UI is capable to get focus. |
||
UI is capable to have property. |
||
Client can provide surround text, or IME can handle surround text. |
||
UI is owned by on-screen keyboard. |
||
Asynchronous process key events are not
supported and the |
struct IBusRectangle { gint x; gint y; gint width; gint height; };
Rectangle definition.
Describes primary purpose of the input context. This information is particularly useful to implement intelligent behavior in engines, such as automatic input-mode switch and text prediction.
Note that the purpose is not meant to impose a totally strict rule about allowed characters, and does not replace input validation. It is fine for an on-screen keyboard to let the user override the character set restriction that is expressed by the purpose. The application is expected to validate the entry contents, even if it specified a purpose.
The difference between IBUS_INPUT_PURPOSE_DIGITS
and
IBUS_INPUT_PURPOSE_NUMBER
is that the former accepts only digits
while the latter also some punctuation (like commas or points, plus,
minus) and “e” or “E” as in 3.14E+000.
This enumeration may be extended in the future; engines should interpret unknown values as 'free form'.
Allow any character |
||
Allow only alphabetic characters |
||
Allow only digits |
||
Edited field expects numbers |
||
Edited field expects phone number |
||
Edited field expects URL |
||
Edited field expects email address |
||
Edited field expects the name of a person |
||
Like |
||
Like |
||
Allow any character, in addition to control codes. Since 1.5.24 |
Since: 1.5.4
Describes hints that might be taken into account by engines. Note that engines may already tailor their behaviour according to the IBusInputPurpose of the entry.
Some common sense is expected when using these flags - mixing
IBUS_INPUT_HINT_LOWERCASE
with any of the uppercase hints makes no sense.
This enumeration may be extended in the future; engines should ignore unknown values.
No special behaviour suggested |
||
Suggest checking for typos |
||
Suggest not checking for typos |
||
Suggest word completion |
||
Suggest to convert all text to lowercase |
||
Suggest to capitalize all text |
||
Suggest to capitalize the first character of each word |
||
Suggest to capitalize the first word of each sentence |
||
Suggest to not show an onscreen keyboard (e.g for a calculator that already has all the keys). |
||
The text is vertical. Since 1.5.11 |
||
Suggest offering Emoji support. Since 1.5.24 |
||
Suggest not offering Emoji support. Since 1.5.24 |
||
Request that the input method should not update personalized data (like typing history). Since 1.5.26 |
Since: 1.5.4