IBus.HotkeyProfile¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when a hotkey is pressed and the hotkey is in profile. |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class IBus.HotkeyProfile(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque data type representing an
IBus.HotkeyProfile
.- classmethod new()¶
- Returns:
A newly allocated
IBus.HotkeyProfile
.- Return type:
Creates a new
IBus.HotkeyProfile
.
- add_hotkey(keyval, modifiers, event)¶
- Parameters:
- Returns:
Always
True
.- Return type:
Adds a hotkey and its associated event to an
IBus.HotkeyProfile
.
- add_hotkey_from_string(str, event)¶
- Parameters:
- Returns:
- Return type:
Adds a hotkey and its associated event to an
IBus.HotkeyProfile
. The hotkey is in string format, such likeControl+Shift+A.
- filter_key_event(keyval, modifiers, prev_keyval, prev_modifiers, user_data)¶
- Parameters:
- Returns:
0 if releasing a hotkey and the hotkey is not in the profile; an associated event otherwise.
See also:
::trigger
- Return type:
Emits a
::trigger
signal when a hotkey is in a profile.
- lookup_hotkey(keyval, modifiers)¶
- remove_hotkey(keyval, modifiers)¶
- Parameters:
- Returns:
- Return type:
Removes the hotkey for an
IBus.HotkeyProfile
.
- remove_hotkey_by_event(event)¶
- Parameters:
event (
int
) – The associated event.- Returns:
- Return type:
Removes the hotkey for an
IBus.HotkeyProfile
by event.
Signal Details¶
- IBus.HotkeyProfile.signals.trigger(hotkey_profile, event, user_data)¶
- Signal Name:
trigger
- Flags:
- Parameters:
hotkey_profile (
IBus.HotkeyProfile
) – The object which received the signalevent (
int
) – An event in GQuark.
Emitted when a hotkey is pressed and the hotkey is in profile. Implement the member function trigger() in extended class to receive this signal.
The last parameter, user_data is not actually a valid parameter. It is displayed because of GtkDoc bug.