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
GtkShortcutManager
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
shortcut_manager_ptr
Default implementationTyped pointer to the underlying
GtkShortcutManager
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkShortcutManager
instance.Declaration
Swift
var shortcut_manager_ptr: UnsafeMutablePointer<GtkShortcutManager>! { get }
-
Required Initialiser for types conforming to
ShortcutManagerProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)