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:
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
All known members inherited from class GLib.Object
All known members inherited from interface GLib.AsyncInitable
All known members inherited from interface GLib.DBusInterface
All known members inherited from interface GLib.Initable