Basics
Guides
API Reference
Basics
Guides
API Reference
[14:7] extends: object
Combines two shortcut triggers. The GtkAlternativeTrigger triggers when
either of the two trigger. This can be cascaded to combine more than two
triggers.
AlternativeTrigger (first = null, second = null)
Creates a
GtkShortcutTriggerthat 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.
first is The first trigger that may trigger.second is The second trigger that may trigger.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asShortcutTrigger ()
Wraps this handle as
ShortcutTrigger.
A ShortcutTrigger object.get_first ()
Gets the first of the two alternative triggers that may trigger @self. [method@Gtk.AlternativeTrigger.get_second] will return the other one.
get_second ()
Gets the second of the two alternative triggers that may trigger @self. [method@Gtk.AlternativeTrigger.get_first] will return the other one.
[137:14] static extends: object
Generated metadata helpers for AlternativeTrigger class surfaces.
properties ()
Returns property metadata for
AlternativeTrigger.
A list.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.