Class

GtkAlternativeTrigger

Description [src]

final class Gtk.AlternativeTrigger : Gtk.ShortcutTrigger
  implements Gio.ListModel {
  /* No available fields */
}

Combines two shortcut triggers.

The GtkAlternativeTrigger triggers when either of the two trigger.

This can be cascaded to combine more than two triggers.

Hierarchy

hierarchy this GtkAlternativeTrigger implements_0 GListModel this--implements_0 ancestor_0 GtkShortcutTrigger ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Implements

Constructors

gtk_alternative_trigger_new

Creates a GtkShortcutTrigger that will trigger whenever either of the two given triggers gets triggered.

gtk_alternative_trigger_newv

Creates a GtkShortcutTrigger that will trigger whenever any of the given triggers gets triggered.

unstable since: 4.24

Instance methods

gtk_alternative_trigger_get_first

Gets the first of the two alternative triggers that may trigger self.

gtk_alternative_trigger_get_second

Gets the second of the two alternative triggers that may trigger self.

Methods inherited from GtkShortcutTrigger (8)
gtk_shortcut_trigger_compare

The types of trigger1 and trigger2 are gconstpointer only to allow use of this function as a GCompareFunc.

gtk_shortcut_trigger_equal

Checks if trigger1 and trigger2 trigger under the same conditions.

gtk_shortcut_trigger_hash

Generates a hash value for a GtkShortcutTrigger.

gtk_shortcut_trigger_print

Prints the given trigger into a string for the developer. This is meant for debugging and logging.

gtk_shortcut_trigger_print_label

Prints the given trigger into a string.

gtk_shortcut_trigger_to_label

Gets textual representation for the given trigger.

gtk_shortcut_trigger_to_string

Prints the given trigger into a human-readable string.

gtk_shortcut_trigger_trigger

Checks if the given event triggers self.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from GListModel (5)
g_list_model_get_item

Get the item at position.

g_list_model_get_item_type

Gets the type of the items in list.

g_list_model_get_n_items

Gets the number of items in list.

g_list_model_get_object

Get the item at position.

g_list_model_items_changed

Emits the GListModel::items-changed signal on list.

Properties

Gtk.AlternativeTrigger:first

The first GtkShortcutTrigger to check.

Gtk.AlternativeTrigger:second

The second GtkShortcutTrigger to check.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Signals inherited from GListModel (1)
GListModel::items-changed

This signal is emitted whenever items were added to or removed from list. At position, removed items were removed and added items were added in their place.

Class structure

struct GtkAlternativeTriggerClass {
  /* no available fields */
}

No description available.