InputContext
Object Hierarchy:
IBus.InputContext
IBus.InputContext
IBus.InputContext
IBus.Proxy
IBus.Proxy
IBus.Proxy->IBus.InputContext
GLib.DBusProxy
GLib.DBusProxy
GLib.DBusProxy->IBus.Proxy
GLib.Object
GLib.Object
GLib.Object->GLib.DBusProxy
GLib.AsyncInitable
GLib.AsyncInitable
GLib.AsyncInitable->IBus.InputContext
GLib.AsyncInitable->IBus.Proxy
GLib.AsyncInitable->GLib.DBusProxy
GLib.DBusInterface
GLib.DBusInterface
GLib.DBusInterface->IBus.InputContext
GLib.DBusInterface->IBus.Proxy
GLib.DBusInterface->GLib.DBusProxy
GLib.Initable
GLib.Initable
GLib.Initable->IBus.InputContext
GLib.Initable->IBus.Proxy
GLib.Initable->GLib.DBusProxy
Description:
[
CCode ( type_id =
"ibus_input_context_get_type ()" ) ]
public class InputContext :
Proxy ,
AsyncInitable ,
DBusInterface ,
Initable
An IBusInputContext is a proxy object of BusInputContext, which manages the context for input methods that supports text input in various
natural languages.
Clients call the IBusInputContext to invoke BusInputContext, through which invokes IBusEngine.
Content:
Static methods:
public static unowned InputContext get_input_context (string path, DBusConnection connection)
Gets an existing IBusInputContext.
public static async void get_input_context_async (string path, DBusConnection connection, Cancellable ? cancellable)
Gets an existing InputContext
asynchronously.
public static unowned InputContext get_input_context_async_finish (AsyncResult res) throws Error
public static async void new_async (string path, DBusConnection connection, Cancellable ? cancellable)
Creates a new InputContext asynchronously.
Creation methods:
Methods:
public void cancel_hand_writing (uint n_strokes)
Clear handwriting stroke(s) in the current input method engine.
public void focus_in ()
Invoked when the client application get focus.
public void focus_out ()
Invoked when the client application get focus.
public unowned EngineDesc get_engine ()
Gets an IME engine description for the context.
public async void get_engine_async (int timeout_msec, Cancellable ? cancellable)
An asynchronous IPC will be performed.
public unowned EngineDesc get_engine_async_finish (AsyncResult res) throws Error
public bool needs_surrounding_text ()
Check whether the current engine requires surrounding-text.
public void process_hand_writing_event (double coordinates, uint coordinates_len)
Pass a handwriting stroke to an input method engine.
public bool process_key_event (uint32 keyval, uint32 keycode, uint32 state)
Pass the key event to input method engine and wait for the reply from
ibus (i.e. synchronous IPC).
public async void process_key_event_async (uint32 keyval, uint32 keycode, uint32 state, int timeout_msec, Cancellable ? cancellable)
Pass the key event to input method engine.
public bool process_key_event_async_finish (AsyncResult res) throws Error
public void property_activate (string prop_name, uint32 state)
Activate the property asynchronously.
public void reset ()
Invoked when the IME is reset.
public void set_capabilities (uint32 capabilities)
Set the capabilities flags of client application asynchronously.
public void set_content_type (uint purpose, uint hints)
Set content-type (primary purpose and hints) of the context.
public void set_cursor_location (int32 x, int32 y, int32 w, int32 h)
Set the cursor location of IBus input context asynchronously.
public void set_engine (string name)
Invoked when the IME engine is changed.
public void set_surrounding_text (Text text, uint32 cursor_pos, uint32 anchor_pos)
Signals:
Inherited Members:
All known members inherited from class IBus.Proxy
All known members inherited from class GLib.DBusProxy
@new
call
call_sync
call_with_unix_fd_list
call_with_unix_fd_list_sync
create_for_bus
g_bus_type
g_connection
g_default_timeout
g_flags
g_interface_info
g_interface_name
g_name
g_name_owner
g_object_path
g_properties_changed
g_signal
get_cached_property
get_cached_property_names
get_connection
get_default_timeout
get_flags
get_interface_info
get_interface_name
get_name
get_name_owner
get_object_path
set_cached_property
set_default_timeout
set_interface_info
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable