KeymapKeyProtocol
public protocol KeymapKeyProtocol
The KeymapKeyProtocol protocol exposes the methods and properties of an underlying GdkKeymapKey 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 KeymapKey.
Alternatively, use KeymapKeyRef as a lighweight, unowned reference if you already have an instance you just want to use.
A GdkKeymapKey is a hardware key that can be mapped to a keyval.
-
Untyped pointer to the underlying
GdkKeymapKeyinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
_ptrDefault implementationTyped pointer to the underlying
GdkKeymapKeyinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkKeymapKeyinstance.Declaration
Swift
var _ptr: UnsafeMutablePointer<GdkKeymapKey>! { get } -
Required Initialiser for types conforming to
KeymapKeyProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
keycodeExtension methodthe hardware keycode. This is an identifying number for a physical key.
Declaration
Swift
@inlinable var keycode: guint { get set } -
groupExtension methodindicates movement in a horizontal direction. Usually groups are used for two different languages. In group 0, a key might have two English characters, and in group 1 it might have two Hebrew characters. The Hebrew characters will be printed on the key next to the English characters.
Declaration
Swift
@inlinable var group: gint { get set } -
levelExtension methodindicates which symbol on the key will be used, in a vertical direction. So on a standard US keyboard, the key with the number “1” on it also has the exclamation point (“!”) character on it. The level indicates whether to use the “1” or the “!” symbol. The letter keys are considered to have a lowercase letter at level 0, and an uppercase letter at level 1, though only the uppercase letter is printed.
Declaration
Swift
@inlinable var level: gint { get set }
View on GitHub
Install in Dash
KeymapKeyProtocol Protocol Reference