Fcitx.Client¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
w/co |
Fcitx Connection |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emit when input method is closed |
|
Emit when input method commit one string |
|
Emit when connected to fcitx and created ic |
|
Emit when input method need to delete surrounding text |
|
Emit when disconnected from fcitx |
|
Emit when input method is enabled |
|
Emit when input method ask for forward a key |
|
Emit when input method need to update client side ui |
|
Emit when input method need to delete surrounding text |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Fcitx.Client(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A
Fcitx.Client
allow to create a input context via DBus- classmethod new()¶
- Returns:
A newly allocated
Fcitx.Client
- Return type:
New a
Fcitx.Client
- classmethod new_with_connection(connection)¶
- Parameters:
connection (
Fcitx.Connection
) – theFcitx.Connection
to be used with this client- Returns:
A newly allocated
Fcitx.Client
- Return type:
New a
Fcitx.Client
- focus_in()¶
tell fcitx current client has focus
- focus_out()¶
tell fcitx current client has lost focus
- is_valid()¶
- Returns:
Fcitx.Client
is valid or not- Return type:
Check
Fcitx.Client
is valid to communicate with Fcitx
- process_key(keyval, keycode, state, type, t, timeout_msec, cancellable, callback, *user_data)¶
- Parameters:
keyval (
int
) – key valuekeycode (
int
) – hardware key codestate (
int
) – key statetype (
int
) – event typet (
int
) – timestamptimeout_msec (
int
) – timeout in millisecondcancellable (
Gio.Cancellable
orNone
) – cancellablecallback (
Gio.AsyncReadyCallback
orNone
) – callback
use this function with
Fcitx.Client.process_key_finish
- process_key_finish(res)¶
- Parameters:
res (
Gio.AsyncResult
) – result- Returns:
process key result
- Return type:
use this function with #fcitx_client_process_key_async
- process_key_sync(keyval, keycode, state, type, t)¶
- Parameters:
- Returns:
the key is processed or not
- Return type:
send a key event to fcitx synchronizely
- reset()¶
tell fcitx current client is reset from client side
- set_cursor_rect(x, y, w, h)¶
- Parameters:
tell fcitx current client’s cursor geometry info
Signal Details¶
- Fcitx.Client.signals.close_im(client)¶
- Signal Name:
close-im
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signal
Emit when input method is closed
- Fcitx.Client.signals.commit_string(client, string)¶
- Signal Name:
commit-string
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signalstring (
str
) – string to be committed
Emit when input method commit one string
- Fcitx.Client.signals.connected(client)¶
- Signal Name:
connected
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signal
Emit when connected to fcitx and created ic
- Fcitx.Client.signals.delete_surrounding_text(client, cursor, len)¶
- Signal Name:
delete-surrounding-text
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signalcursor (
int
) – deletion startlen (
int
) – deletion length
Emit when input method need to delete surrounding text
- Fcitx.Client.signals.disconnected(client)¶
- Signal Name:
disconnected
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signal
Emit when disconnected from fcitx
- Fcitx.Client.signals.enable_im(client)¶
- Signal Name:
enable-im
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signal
Emit when input method is enabled
- Fcitx.Client.signals.forward_key(client, keyval, state, type)¶
- Signal Name:
forward-key
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signalkeyval (
int
) – key valuestate (
int
) – key statetype (
int
) – event type
Emit when input method ask for forward a key
- Fcitx.Client.signals.update_client_side_ui(client, auxup, auxdown, preedit, candidateword, imname, cursor_pos)¶
- Signal Name:
update-client-side-ui
- Flags:
- Parameters:
Emit when input method need to update client side ui
- Fcitx.Client.signals.update_formatted_preedit(client, preedit, cursor)¶
- Signal Name:
update-formatted-preedit
- Flags:
- Parameters:
client (
Fcitx.Client
) – The object which received the signalpreedit ([
Fcitx.PreeditItem
]) – AnFcitx.PreeditItem
Listcursor (
int
) – cursor position by utf8 byte
Emit when input method need to delete surrounding text
Property Details¶
- Fcitx.Client.props.connection¶
- Name:
connection
- Type:
- Default Value:
- Flags:
Fcitx Connection