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
GdkTouchEvent
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
touch_event_ptr
Default implementationTyped pointer to the underlying
GdkTouchEvent
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GdkTouchEvent
instance.Declaration
Swift
var touch_event_ptr: UnsafeMutablePointer<GdkTouchEvent>! { get }
-
Required Initialiser for types conforming to
TouchEventProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
getEmulatingPointer()
Extension methodExtracts whether a touch event is emulating a pointer event.
Declaration
Swift
@inlinable func getEmulatingPointer() -> Bool
-
emulatingPointer
Extension methodExtracts whether a touch event is emulating a pointer event.
Declaration
Swift
@inlinable var emulatingPointer: Bool { get }