ShortcutManagerProtocol
public protocol ShortcutManagerProtocol
The GtkShortcutManager interface is used to implement
shortcut scopes.
This is important for [ifaceGtk.Native] widgets that have their
own surface, since the event controllers that are used to implement
managed and global scopes are limited to the same native.
Examples for widgets implementing GtkShortcutManager are
[classGtk.Window] and [classGtk.Popover].
Every widget that implements GtkShortcutManager will be used as a
GTK_SHORTCUT_SCOPE_MANAGED.
The ShortcutManagerProtocol protocol exposes the methods and properties of an underlying GtkShortcutManager instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see ShortcutManager.
Alternatively, use ShortcutManagerRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkShortcutManagerinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
shortcut_manager_ptrDefault implementationTyped pointer to the underlying
GtkShortcutManagerinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkShortcutManagerinstance.Declaration
Swift
var shortcut_manager_ptr: UnsafeMutablePointer<GtkShortcutManager>! { get } -
Required Initialiser for types conforming to
ShortcutManagerProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
View on GitHub
Install in Dash
ShortcutManagerProtocol Protocol Reference