IBus.PanelService¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application destroys. |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when a key event is received. |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the set-cursor-location-relative. |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
|
Emitted when the client application get the |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.PanelService(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An
IBus.PanelService
is a base class for UI services. Developers can “extend” this class for panel UI development.- classmethod new(connection)¶
- Parameters:
connection (
Gio.DBusConnection
) – AnGio.DBusConnection
.- Returns:
A newly allocated
IBus.PanelService
.- Return type:
Creates a new
IBus.PanelService
from anGio.DBusConnection
.
- candidate_clicked(index, button, state)¶
- Parameters:
Notify that a candidate is clicked by sending a “CandidateClicked” to IBus service.
- commit_text(text)¶
-
Notify that a text is sent by sending a “CommitText” message to IBus service.
- cursor_down()¶
Notify that the cursor is down by sending a “CursorDown” to IBus service.
- cursor_up()¶
Notify that the cursor is up by sending a “CursorUp” to IBus service.
- hide_preedit_text_received()¶
Notify that the preedit is hidden by the panel extension
- page_down()¶
Notify that the page is down by sending a “PageDown” to IBus service.
- page_up()¶
Notify that the page is up by sending a “PageUp” to IBus service.
- panel_extension(event)¶
- Parameters:
event (
IBus.ExtensionEvent
) – A #PanelExtensionEvent which is sent to a panel extension.
Enable or disable a panel extension with
IBus.ExtensionEvent
. Notify that a data is sent by sending a “PanelExtension” message to IBus panel extension service.
- property_activate(prop_name, prop_state)¶
-
Notify that a property is active by sending a “PropertyActivate” message to IBus service.
- property_hide(prop_name)¶
- Parameters:
prop_name (
str
) – A property name
Notify that a property is hidden by sending a “ValueChanged” message to IBus service.
- property_show(prop_name)¶
- Parameters:
prop_name (
str
) – A property name
Notify that a property is shown by sending a “ValueChanged” message to IBus service.
- show_preedit_text_received()¶
Notify that the preedit is shown by the panel extension
- update_auxiliary_text_received(text, visible)¶
- Parameters:
Notify that the auxilirary is updated by the panel extension.
(Note: The table object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by
GObject.Object.ref_sink
.)
- update_lookup_table_received(table, visible)¶
- Parameters:
table (
IBus.LookupTable
) – AnIBus.LookupTable
visible (
bool
) – Whether the lookup table is visible.
Notify that the lookup table is updated by the panel extension.
(Note: The table object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by
GObject.Object.ref_sink
.)
- update_preedit_text_received(text, cursor_pos, visible)¶
- Parameters:
Notify that the preedit is updated by the panel extension
(Note: The table object will be released, if it is floating. If caller want to keep the object, caller should make the object sink by
GObject.Object.ref_sink
.)
- do_candidate_clicked_lookup_table(index, button, state) virtual¶
- do_cursor_down_lookup_table() virtual¶
- do_cursor_up_lookup_table() virtual¶
- do_hide_auxiliary_text() virtual¶
- do_hide_language_bar() virtual¶
- do_hide_lookup_table() virtual¶
- do_hide_preedit_text() virtual¶
- do_page_down_lookup_table() virtual¶
- do_page_up_lookup_table() virtual¶
- do_panel_extension_received(event) virtual¶
- Parameters:
event (
IBus.ExtensionEvent
) –
- do_process_key_event(keyval, keycode, state) virtual¶
- do_register_properties(prop_list) virtual¶
- Parameters:
prop_list (
IBus.PropList
) –
- do_reset() virtual¶
- do_set_cursor_location_relative(x, y, w, h) virtual¶
- do_show_auxiliary_text() virtual¶
- do_show_language_bar() virtual¶
- do_show_lookup_table() virtual¶
- do_show_preedit_text() virtual¶
- do_start_setup() virtual¶
- do_state_changed() virtual¶
- do_update_lookup_table(lookup_table, visible) virtual¶
- Parameters:
lookup_table (
IBus.LookupTable
) –visible (
bool
) –
- do_update_preedit_text(text, cursor_pos, visible) virtual¶
- do_update_property(prop) virtual¶
- Parameters:
prop (
IBus.Property
) –
Signal Details¶
- IBus.PanelService.signals.candidate_clicked_lookup_table(panel_service, object, p0, p1)¶
- Signal Name:
candidate-clicked-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalobject (
int
) –p0 (
int
) –p1 (
int
) –
- IBus.PanelService.signals.commit_text_received(panel_service, text)¶
- Signal Name:
commit-text-received
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::commit-text-received
. Implement the member function IBusPanelServiceClass::commit_text_received in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.cursor_down_lookup_table(panel_service)¶
- Signal Name:
cursor-down-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::cursor-down-lookup-table
. Implement the member function IBusPanelServiceClass::cursor_down_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.cursor_up_lookup_table(panel_service)¶
- Signal Name:
cursor-up-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::cursor-up-lookup-table
. Implement the member function IBusPanelServiceClass::cursor_up_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.destroy_context(panel_service, input_context_path)¶
- Signal Name:
destroy-context
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalinput_context_path (
str
) – Object path of InputContext.
Emitted when the client application destroys. Implement the member function IBusPanelServiceClass::destroy_context in extended class to receive this signal.
Argument user_data is ignored in this function.
- IBus.PanelService.signals.focus_in(panel_service, input_context_path)¶
- Signal Name:
focus-in
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalinput_context_path (
str
) – Object path of InputContext.
Emitted when the client application get the
::focus-in
. Implement the member function IBusPanelServiceClass::focus_in in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.focus_out(panel_service, input_context_path)¶
- Signal Name:
focus-out
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalinput_context_path (
str
) – Object path of InputContext.
Emitted when the client application get the
::focus-out
. Implement the member function IBusPanelServiceClass::focus_out in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.hide_auxiliary_text(panel_service)¶
- Signal Name:
hide-auxiliary-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::hide-auxiliary-text
. Implement the member function IBusPanelServiceClass::hide_auxiliary_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.hide_language_bar(panel_service)¶
- Signal Name:
hide-language-bar
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::hide-language-bar
. Implement the member function IBusPanelServiceClass::hide_language_bar in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.hide_lookup_table(panel_service)¶
- Signal Name:
hide-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::hide-lookup-table
. Implement the member function IBusPanelServiceClass::hide_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.hide_preedit_text(panel_service)¶
- Signal Name:
hide-preedit-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::hide-preedit-text
. Implement the member function IBusPanelServiceClass::hide_preedit_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.page_down_lookup_table(panel_service)¶
- Signal Name:
page-down-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::page-down-lookup-table
. Implement the member function IBusPanelServiceClass::page_down_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.page_up_lookup_table(panel_service)¶
- Signal Name:
page-up-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::page-up-lookup-table
. Implement the member function IBusPanelServiceClass::page_up_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.panel_extension_received(panel_service, data)¶
- Signal Name:
panel-extension-received
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signaldata (
IBus.ExtensionEvent
) – AGLib.Variant
Emitted when the client application get the
::panel-extension-received
. Implement the member function IBusPanelServiceClass::panel_extension_received in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.process_key_event(panel_service, keyval, keycode, state)¶
- Signal Name:
process-key-event
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalkeyval (
int
) – Key symbol of the key press.keycode (
int
) – KeyCode of the key press.state (
int
) – Key modifier flags.
- Returns:
True
for successfully process the key;False
otherwise. See also:IBus.InputContext.process_key_event
().Argument user_data is ignored in this function.
- Return type:
Emitted when a key event is received. Implement the member function IBusPanelServiceClass::process_key_event in extended class to receive this signal. Both the key symbol and keycode are passed to the member function. See
IBus.InputContext.process_key_event
() for further explanation of key symbol, keycode and which to use.
- IBus.PanelService.signals.register_properties(panel_service, prop_list)¶
- Signal Name:
register-properties
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalprop_list (
IBus.PropList
) – AnIBus.PropList
that contains properties.
Emitted when the client application get the
::register-properties
. Implement the member function IBusPanelServiceClass::register_properties in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.reset(panel_service)¶
- Signal Name:
reset
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::reset
. Implement the member function IBusPanelServiceClass::reset in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.set_content_type(panel_service, purpose, hints)¶
- Signal Name:
set-content-type
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalpurpose (
int
) – Input purpose.hints (
int
) – Input hints.
Emitted when the client application get the
::set-content-type
. Implement the member function IBusPanelServiceClass::set_content_type in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.set_cursor_location(panel_service, x, y, w, h)¶
- Signal Name:
set-cursor-location
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalx (
int
) – X coordinate of the cursor.y (
int
) – Y coordinate of the cursor.w (
int
) – Width of the cursor.h (
int
) – Height of the cursor.
Emitted when the client application get the
::set-cursor-location
. Implement the member function IBusPanelServiceClass::set_cursor_location in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.set_cursor_location_relative(panel_service, x, y, w, h)¶
- Signal Name:
set-cursor-location-relative
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalx (
int
) – X coordinate of the cursor.y (
int
) – Y coordinate of the cursor.w (
int
) – Width of the cursor.h (
int
) – Height of the cursor.
Emitted when the client application get the set-cursor-location-relative. Implement the member function set_cursor_location_relative() in extended class to receive this signal.
Argument user_data is ignored in this function.
- IBus.PanelService.signals.show_auxiliary_text(panel_service)¶
- Signal Name:
show-auxiliary-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::show-auxiliary-text
. Implement the member function IBusPanelServiceClass::show_auxiliary_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.show_language_bar(panel_service)¶
- Signal Name:
show-language-bar
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::show-language-bar
. Implement the member function IBusPanelServiceClass::show_language_bar in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.show_lookup_table(panel_service)¶
- Signal Name:
show-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::show-lookup-table
. Implement the member function IBusPanelServiceClass::show_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.show_preedit_text(panel_service)¶
- Signal Name:
show-preedit-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::show-preedit-text
. Implement the member function IBusPanelServiceClass::show_preedit_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.start_setup(panel_service)¶
- Signal Name:
start-setup
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::start-setup
. Implement the member function IBusPanelServiceClass::start_setup in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.state_changed(panel_service)¶
- Signal Name:
state-changed
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signal
Emitted when the client application get the
::state-changed
. Implement the member function IBusPanelServiceClass::state_changed in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.update_auxiliary_text(panel_service, text, visible)¶
- Signal Name:
update-auxiliary-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signaltext (
IBus.Text
) – A preedit text to be updated.visible (
bool
) – Whether the update is visible.
Emitted when the client application get the
::update-auxiliary-text
. Implement the member function IBusPanelServiceClass::update_auxiliary_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.update_lookup_table(panel_service, lookup_table, visible)¶
- Signal Name:
update-lookup-table
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signallookup_table (
IBus.LookupTable
) – A lookup table to be updated.visible (
bool
) – Whether the update is visible.
Emitted when the client application get the
::update-lookup-table
. Implement the member function IBusPanelServiceClass::update_lookup_table in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.update_preedit_text(panel_service, text, cursor_pos, visible)¶
- Signal Name:
update-preedit-text
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signaltext (
IBus.Text
) – A preedit text to be updated.cursor_pos (
int
) – The cursor position of the text.visible (
bool
) – Whether the update is visible.
Emitted when the client application get the
::update-preedit-text
. Implement the member function IBusPanelServiceClass::update_preedit_text in extended class to receive this signal.Argument user_data is ignored in this function.
- IBus.PanelService.signals.update_property(panel_service, prop)¶
- Signal Name:
update-property
- Flags:
- Parameters:
panel_service (
IBus.PanelService
) – The object which received the signalprop (
IBus.Property
) – TheIBus.Property
to be updated.
Emitted when the client application get the
::update-property
. Implement the member function IBusPanelServiceClass::update_property in extended class to receive this signal.Argument user_data is ignored in this function.