Class: Gtk::Shortcut

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Constructor Details

#initialize(trigger, action, format_string, array) ⇒ Gtk::Shortcut

Creates a new GtkShortcut that is triggered by trigger and then activates action with arguments given by format_string.

Parameters:

  • trigger (Gtk::ShortcutTrigger)

    The trigger that will trigger the shortcut

  • action (Gtk::ShortcutAction)

    The action that will be activated upon triggering

  • format_string (String)

    GVariant format string for arguments or nil for no arguments

  • array (Array)

    arguments, as given by format string.

Instance Method Details

#actionGtk::ShortcutAction

The action that gets activated by this shortcut.

Returns:

#action=(action) ⇒ Gtk::ShortcutAction

The action that gets activated by this shortcut.

Parameters:

Returns:

#argumentsGLib::Variant

Arguments passed to activation.

Returns:

  • (GLib::Variant)

    arguments

#arguments=(arguments) ⇒ GLib::Variant

Arguments passed to activation.

Parameters:

  • arguments (GLib::Variant)

Returns:

  • (GLib::Variant)

    arguments

  • (GLib::Variant)

    arguments

#triggerGtk::ShortcutTrigger

The trigger that triggers this shortcut.

Returns:

#trigger=(trigger) ⇒ Gtk::ShortcutTrigger

The trigger that triggers this shortcut.

Parameters:

Returns: