TouchEventProtocol
public protocol TouchEventProtocol : EventProtocol
The TouchEventProtocol protocol exposes the methods and properties of an underlying GdkTouchEvent 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 TouchEvent.
Alternatively, use TouchEventRef as a lighweight, unowned reference if you already have an instance you just want to use.
An event related to a touch-based device.
-
Untyped pointer to the underlying
GdkTouchEventinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
touch_event_ptrDefault implementationTyped pointer to the underlying
GdkTouchEventinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkTouchEventinstance.Declaration
Swift
var touch_event_ptr: UnsafeMutablePointer<GdkTouchEvent>! { get } -
Required Initialiser for types conforming to
TouchEventProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getEmulatingPointer()Extension methodExtracts whether a touch event is emulating a pointer event.
Declaration
Swift
@inlinable func getEmulatingPointer() -> Bool -
emulatingPointerExtension methodExtracts whether a touch event is emulating a pointer event.
Declaration
Swift
@inlinable var emulatingPointer: Bool { get }
View on GitHub
Install in Dash
TouchEventProtocol Protocol Reference