PadEventProtocol
public protocol PadEventProtocol : EventProtocol
The PadEventProtocol protocol exposes the methods and properties of an underlying GdkPadEvent 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 PadEvent.
Alternatively, use PadEventRef as a lighweight, unowned reference if you already have an instance you just want to use.
An event related to a pad-based device.
-
Untyped pointer to the underlying
GdkPadEventinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
pad_event_ptrDefault implementationTyped pointer to the underlying
GdkPadEventinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkPadEventinstance.Declaration
Swift
var pad_event_ptr: UnsafeMutablePointer<GdkPadEvent>! { get } -
Required Initialiser for types conforming to
PadEventProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getAxisValue(index:Extension methodvalue: ) Extracts the information from a pad strip or ring event.
Declaration
Swift
@inlinable func getAxisValue(index: UnsafeMutablePointer<guint>!, value: UnsafeMutablePointer<CDouble>!) -
getButton()Extension methodExtracts information about the pressed button from a pad event.
Declaration
Swift
@inlinable func getButton() -> Int -
getGroupMode(group:Extension methodmode: ) Extracts group and mode information from a pad event.
Declaration
Swift
@inlinable func getGroupMode(group: UnsafeMutablePointer<guint>!, mode: UnsafeMutablePointer<guint>!) -
buttonExtension methodExtracts information about the pressed button from a pad event.
Declaration
Swift
@inlinable var button: Int { get }
View on GitHub
Install in Dash
PadEventProtocol Protocol Reference