KeymapRef
public struct KeymapRef : KeymapProtocol, GWeakCapturing
The KeymapRef type acts as a lightweight Swift reference to an underlying GdkKeymap instance.
It exposes methods that can operate on this data type through KeymapProtocol conformance.
Use KeymapRef only as an unowned reference to an existing GdkKeymap instance.
A GdkKeymap defines the translation from keyboard state
(including a hardware key, a modifier mask, and active keyboard group)
to a keyval. This translation has two phases. The first phase is
to determine the effective keyboard group and level for the keyboard
state; the second phase is to look up the keycode/group/level triplet
in the keymap and see what keyval it corresponds to.
-
Untyped pointer to the underlying `GdkKeymap` instance.For type-safe access, use the generated, typed pointer
keymap_ptrproperty instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GdkKeymap>) -
Designated initialiser from a constant pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GdkKeymap>) -
Conditional initialiser from an optional pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GdkKeymap>?) -
Conditional initialiser from an optional, non-mutable pointer to the underlying
Cdata typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GdkKeymap>?) -
Conditional initialiser from an optional
gpointerDeclaration
Swift
@inlinable init!(gpointer g: gpointer?) -
Conditional initialiser from an optional, non-mutable
gconstpointerDeclaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?) -
Reference intialiser for a related type that implements
KeymapProtocolDeclaration
Swift
@inlinable init<T>(_ other: T) where T : KeymapProtocol -
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> KeymapRef where T : KeymapProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
KeymapProtocol.Declaration
Swift
@inlinable init<T>(cPointer: UnsafeMutablePointer<T>) -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
KeymapProtocol.Declaration
Swift
@inlinable init<T>(constPointer: UnsafePointer<T>) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
KeymapProtocol.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
KeymapProtocol.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
KeymapProtocol.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer) -
Returns the `GdkKeymap` attached to the default display.get_default is deprecated: Use gdk_keymap_get_for_display() instead
Declaration
Swift
@available(*, deprecated) @inlinable static func getDefault() -> KeymapRef! -
Returns the
GdkKeymapattached todisplay.Declaration
Swift
@inlinable static func getFor<DisplayT>(display: DisplayT) -> KeymapRef! where DisplayT : DisplayProtocol
View on GitHub
Install in Dash
KeymapRef Structure Reference