Gnome::Gtk4::AlternativeTrigger
Table of Contents
Description§
A Gnome::Gtk4::ShortcutTrigger that combines two triggers.
The Gnome::Gtk4::AlternativeTrigger triggers when either of two trigger.
This can be cascaded to combine more than two triggers.
Uml Diagram§
UNKNOWN image§
=for image :class<inline> :src<asset_files/images/plantuml/AlternativeTrigger.png> :width<70\%>Class initialization§
new§
:native-object§
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
new-alternativetrigger§
Creates a Gnome::Gtk4::ShortcutTrigger 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.
method new-alternativetrigger ( N-Object() $first, N-Object() $second --> Gnome::Gtk4::AlternativeTrigger )
- $first; (transfer ownership: full) The first trigger that may trigger.
- $second; (transfer ownership: full) The second trigger that may trigger.
Methods§
get-first§
Gets the first of the two alternative triggers that may trigger this object.
.get-second() will return the other one.
method get-first ( --> N-Object )
Return value; the first alternative trigger.
get-second§
Gets the second of the two alternative triggers that may trigger this object.
.get-first() will return the other one.
method get-second ( --> N-Object )
Return value; the second alternative trigger.
About my projects, examples and tutorials