ShortcutController
Object Hierarchy:
Dazzle.ShortcutController
Dazzle.ShortcutController
Dazzle.ShortcutController
GLib.Object
GLib.Object
GLib.Object->Dazzle.ShortcutController
Description:
[ CCode ( type_id = "dzl_shortcut_controller_get_type ()" ) ]public class ShortcutController : Object
Content:
Properties:
Static methods:
Creation methods:
Methods:
public void add_command_action (string command_id, string default_accel, ShortcutPhase phase, string action)
public void add_command_callback (string command_id, string default_accel, ShortcutPhase phase, owned Callback callback)
public bool execute_command (string command)
This method will locate and execute the command matching the id
command
.
public unowned ShortcutContext ? get_context ()
This function gets the
context property, which is the current context to dispatch
events to.
public unowned ShortcutContext ? get_context_for_phase (ShortcutPhase phase)
Controllers can have a different context for a particular phase, which
allows them to activate different keybindings depending if the event in capture, bubble, or dispatch.
public unowned ShortcutChord ? get_current_chord ()
public unowned ShortcutManager get_manager ()
public unowned Widget get_widget ()
public void remove_accel (string accel, ShortcutPhase phase)
public void set_context_by_name (string ? name)
Changes the context for the controller to the context matching
name
.
public void set_manager (ShortcutManager ? manager)
Signals:
public signal void reset ()
This signal is emitted when the shortcut controller is requesting the
widget to reset any state it may have regarding the shortcut controller.
public signal void set_context_named (string name)
This changes the current context on the
ShortcutController to be the context matching name
.
Inherited Members:
All known members inherited from class GLib.Object
@get
@new
@ref
@set
add_toggle_ref
add_weak_pointer
bind_property
connect
constructed
disconnect
dispose
dup_data
dup_qdata
force_floating
freeze_notify
get_class
get_data
get_property
get_qdata
get_type
getv
interface_find_property
interface_install_property
interface_list_properties
is_floating
new_valist
new_with_properties
newv
notify
notify_property
ref_count
ref_sink
remove_toggle_ref
remove_weak_pointer
replace_data
replace_qdata
set_data
set_data_full
set_property
set_qdata
set_qdata_full
set_valist
setv
steal_data
steal_qdata
thaw_notify
unref
watch_closure
weak_ref
weak_unref