Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AlternativeTrigger

[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.

Members

  • handleObj
  • lib
  • retainedCallbacks
  • signalHandlerNames
  • signalSetterHandlers

Methods

  • AlternativeTrigger (first = null, second = null)

    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.

    • @p first is The first trigger that may trigger.
    • @p 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 exposing handle(), or null. Returns null when the argument carries no pointer.

    • @p Source is the raw handle, raw buffer, wrapper, or null.
    • @r A raw pointer carrier or null when no pointer is present.
  • getLib ()

    Returns the opened native library for this generated wrapper.

    • @r The opened native library.
  • handle ()

    Returns the wrapped NativeHandle.

    • @r The wrapped NativeHandle.
  • isNull ()

    Returns true when the wrapped handle is null.

    • @r A bool.
  • describe ()

    Returns a small string for debugging generated wrappers.

    • @r A string.
  • asShortcutTrigger ()

    Wraps this handle as ShortcutTrigger.

    • @r 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.

class: AlternativeTriggerMeta

[137:14] static extends: object

Generated metadata helpers for AlternativeTrigger class surfaces.

Methods

  • properties ()

    Returns property metadata for AlternativeTrigger.

    • @r A list.