Combines two shortcut triggers.
The GtkAlternativeTrigger triggers when either of the two trigger.
This can be cascaded to combine more than two triggers.
First_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger The first GtkShortcutTrigger to check.
function Get_First
(Self : not null access Gtk_Alternative_Trigger_Record)
return Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger
Gets the first of the two alternative triggers that may trigger Self. [methodGtk.AlternativeTrigger.get_second] will return the other one.
the first alternative trigger. Has transfer-ownership='none'.
function Get_Second
(Self : not null access Gtk_Alternative_Trigger_Record)
return Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger
Gets the second of the two alternative triggers that may trigger Self. [methodGtk.AlternativeTrigger.get_first] will return the other one.
the second alternative trigger. Has transfer-ownership='none'.
function Get_Type return Glib.GType
type Gtk_Alternative_Trigger is access all Gtk_Alternative_Trigger_Record'Class;
function Gtk_Alternative_Trigger_New
(First : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class;
Second : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class)
return Gtk_Alternative_Trigger
Creates a GtkShortcutTrigger that will trigger whenever either of the two given triggers gets triggered. Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option.
The first trigger that may trigger. Has transfer-ownership='full'.
The second trigger that may trigger. Has transfer-ownership='full'.
type Gtk_Alternative_Trigger_Record is new Gtk_Shortcut_Trigger_Record with null record;
procedure Gtk_New
(Self : out Gtk_Alternative_Trigger;
First : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class;
Second : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class)
Creates a GtkShortcutTrigger that will trigger whenever either of the two given triggers gets triggered. Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The first trigger that may trigger. Has transfer-ownership='full'.
The second trigger that may trigger. Has transfer-ownership='full'.
procedure Initialize
(Self : not null access Gtk_Alternative_Trigger_Record'Class;
First : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class;
Second : not null access Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger_Record'Class)
Creates a GtkShortcutTrigger that will trigger whenever either of the two given triggers gets triggered. Note that nesting is allowed, so if you want more than two alternative, create a new alternative trigger for each option. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
The first trigger that may trigger. Has transfer-ownership='full'.
The second trigger that may trigger. Has transfer-ownership='full'.
Second_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Shortcut_Trigger.Gtk_Shortcut_Trigger The second GtkShortcutTrigger to check.