ibusinputcontext.h | ibusinputcontext.h | |||
---|---|---|---|---|
skipping to change at line 120 | skipping to change at line 120 | |||
* @returns: (transfer none): An existing IBusInputContext. | * @returns: (transfer none): An existing IBusInputContext. | |||
* | * | |||
* Gets an existing IBusInputContext. | * Gets an existing IBusInputContext. | |||
*/ | */ | |||
IBusInputContext | IBusInputContext | |||
*ibus_input_context_get_input_context | *ibus_input_context_get_input_context | |||
(const gchar *path, | (const gchar *path, | |||
GDBusConnection *connection ); | GDBusConnection *connection ); | |||
/** | /** | |||
* ibus_input_context_process_key_event: | * ibus_input_context_process_key_event_async: | |||
* @context: An IBusInputContext. | * @context: An IBusInputContext. | |||
* @keyval: Key symbol of a key event. | * @keyval: Key symbol of a key event. | |||
* @keycode: Keycode of a key event. | * @keycode: Keycode of a key event. | |||
* @state: Key modifier flags. | * @state: Key modifier flags. | |||
* @timeout_msec: The timeout in milliseconds or -1 to use the default time out. | * @timeout_msec: The timeout in milliseconds or -1 to use the default time out. | |||
* @cancellable: A GCancellable or NULL. | * @cancellable: A GCancellable or NULL. | |||
* @callback: A GAsyncReadyCallback to call when the request is satisfied o r NULL | * @callback: A GAsyncReadyCallback to call when the request is satisfied o r NULL | |||
* if you don't care about the result of the method invocation. | * if you don't care about the result of the method invocation. | |||
* @user_data: The data to pass to callback. | * @user_data: The data to pass to callback. | |||
* | * | |||
skipping to change at line 151 | skipping to change at line 151 | |||
* Briefly speaking, input methods that expect certain keyboard layout shou ld use | * Briefly speaking, input methods that expect certain keyboard layout shou ld use | |||
* keycode; otherwise keyval is sufficient. | * keycode; otherwise keyval is sufficient. | |||
* For example, Chewing, Cangjie, Wubi expect an en-US QWERTY keyboard, the se should | * For example, Chewing, Cangjie, Wubi expect an en-US QWERTY keyboard, the se should | |||
* use keycode; while pinyin can rely on keyval only, as it is less sensiti ve to | * use keycode; while pinyin can rely on keyval only, as it is less sensiti ve to | |||
* the keyboard layout change, DVORAK users can still use DVORAK layout to input pinyin. | * the keyboard layout change, DVORAK users can still use DVORAK layout to input pinyin. | |||
* | * | |||
* Use ibus_keymap_lookup_keysym() to convert keycode to keysym in given ke yboard layout. | * Use ibus_keymap_lookup_keysym() to convert keycode to keysym in given ke yboard layout. | |||
* | * | |||
* see_also: #IBusEngine::process-key-event | * see_also: #IBusEngine::process-key-event | |||
*/ | */ | |||
void ibus_input_context_process_key_event | void ibus_input_context_process_key_event_async | |||
(IBusInputContext *context, | (IBusInputContext *context, | |||
guint32 keyval, | guint32 keyval, | |||
guint32 keycode, | guint32 keycode, | |||
guint32 state, | guint32 state, | |||
gint timeout_ms ec, | gint timeout_ms ec, | |||
GCancellable *cancellabl e, | GCancellable *cancellabl e, | |||
GAsyncReadyCallback callback, | GAsyncReadyCallback callback, | |||
gpointer user_data) ; | gpointer user_data) ; | |||
/** | /** | |||
* ibus_input_context_process_key_event_finish: | * ibus_input_context_process_key_event_async_finish: | |||
* @context: An IBusInputContext. | * @context: An IBusInputContext. | |||
* @res: A GAsyncResult obtained from the GAsyncReadyCallback passed to | * @res: A GAsyncResult obtained from the GAsyncReadyCallback passed to | |||
* ibus_input_context_process_key_event(). | * ibus_input_context_process_key_event_async(). | |||
* @processed: A point to a bool value. If the the key event is processed, it will | * @processed: A point to a bool value. If the the key event is processed, it will | |||
* assigned to TRUE, FALSE otherwise. | * assigned to TRUE, FALSE otherwise. | |||
* @error: Return location for error or NULL. | * @error: Return location for error or NULL. | |||
* @returns: TRUE for success; FALSE otherwise. | * @returns: TRUE for success; FALSE otherwise. | |||
* | * | |||
* Finishes an operation started with ibus_input_context_process_key_event( ). | * Finishes an operation started with ibus_input_context_process_key_event_ async(). | |||
*/ | */ | |||
gboolean ibus_input_context_process_key_event_finish | gboolean ibus_input_context_process_key_event_async_finish | |||
(IBusInputContext *context, | (IBusInputContext *context, | |||
GAsyncResult *res, | GAsyncResult *res, | |||
gboolean *processed, | gboolean *processed, | |||
GError **error); | GError **error); | |||
/** | /** | |||
* ibus_input_context_process_key_event_sync: | * ibus_input_context_process_key_event: | |||
* @context: An IBusInputContext. | * @context: An IBusInputContext. | |||
* @keyval: Key symbol of a key event. | * @keyval: Key symbol of a key event. | |||
* @keycode: Keycode of a key event. | * @keycode: Keycode of a key event. | |||
* @state: Key modifier flags. | * @state: Key modifier flags. | |||
* @returns: TRUE for successfully process the key; FALSE otherwise. | * @returns: TRUE for successfully process the key; FALSE otherwise. | |||
* | * | |||
* Pass the key event to input method engine and wait for the reply from ib us. | * Pass the key event to input method engine and wait for the reply from ib us. | |||
* | * | |||
* @see_also: ibus_input_context_process_key_event() | * @see_also: ibus_input_context_process_key_event_async() | |||
*/ | */ | |||
gboolean ibus_input_context_process_key_event_sync | gboolean ibus_input_context_process_key_event | |||
(IBusInputContext *context, | (IBusInputContext *context, | |||
guint32 keyval, | guint32 keyval, | |||
guint32 keycode, | guint32 keycode, | |||
guint32 state); | guint32 state); | |||
/** | /** | |||
* ibus_input_context_set_cursor_location: | * ibus_input_context_set_cursor_location: | |||
* @context: An IBusInputContext. | * @context: An IBusInputContext. | |||
* @x: X coordinate of the cursor. | * @x: X coordinate of the cursor. | |||
* @y: Y coordinate of the cursor. | * @y: Y coordinate of the cursor. | |||
End of changes. 9 change blocks. | ||||
9 lines changed or deleted | 9 lines changed or added | |||