MnemonicTriggerRef

public struct MnemonicTriggerRef : MnemonicTriggerProtocol, GWeakCapturing

A GtkShortcutTrigger that triggers when a specific mnemonic is pressed.

Mnemonics require a mnemonic modifier (typically <kbd>Alt</kbd>) to be pressed together with the mnemonic key.

The MnemonicTriggerRef type acts as a lightweight Swift reference to an underlying GtkMnemonicTrigger instance. It exposes methods that can operate on this data type through MnemonicTriggerProtocol conformance. Use MnemonicTriggerRef only as an unowned reference to an existing GtkMnemonicTrigger instance.

  • ptr
    Untyped pointer to the underlying `GtkMnemonicTrigger` instance.
    

    For type-safe access, use the generated, typed pointer mnemonic_trigger_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

MnemonicTrigger Class