Top |
GObject ╰── GInitiallyUnowned ╰── IBusObject ╰── IBusSerializable ╰── IBusHotkeyProfile
gboolean ibus_hotkey_profile_add_hotkey (IBusHotkeyProfile *profile
,guint keyval
,guint modifiers
,GQuark event
);
Adds a hotkey and its associated event to an IBusHotkeyProfile.
gboolean ibus_hotkey_profile_add_hotkey_from_string (IBusHotkeyProfile *profile
,const gchar *str
,GQuark event
);
Adds a hotkey and its associated event to an IBusHotkeyProfile. The hotkey is in string format, such like
Control+Shift+A
.
gboolean ibus_hotkey_profile_remove_hotkey (IBusHotkeyProfile *profile
,guint keyval
,guint modifiers
);
Removes the hotkey for an IBusHotkeyProfile.
gboolean ibus_hotkey_profile_remove_hotkey_by_event (IBusHotkeyProfile *profile
,GQuark event
);
Removes the hotkey for an IBusHotkeyProfile by event.
GQuark ibus_hotkey_profile_filter_key_event (IBusHotkeyProfile *profile
,guint keyval
,guint modifiers
,guint prev_keyval
,guint prev_modifiers
,gpointer user_data
);
Emits a ::trigger
signal when a hotkey is in a profile.
GQuark ibus_hotkey_profile_lookup_hotkey (IBusHotkeyProfile *profile
,guint keyval
,guint modifiers
);
“trigger”
signalvoid user_function (IBusHotkeyProfile *profile, guint event, gpointer user_data, gpointer user_data)
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.
profile |
An IBusHotkeyProfile. |
|
event |
An event in GQuark. |
|
user_data |
User data for callback. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Has Details