The gesture tracking axis.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
enum GestureAxis : Int
case none
There is no specific gesture axis.
case horizontal
The gesture axis is horizontal.
case vertical
The gesture axis is vertical.
func begin Gesture(with: NSEvent)
Informs the receiver that the user has begun a touch gesture.
func end Gesture(with: NSEvent)
Informs the receiver that the user has ended a touch gesture.
func magnify(with: NSEvent)
Informs the receiver that the user has begun a pinch gesture.
func rotate(with: NSEvent)
Informs the receiver that the user has begun a rotation gesture.
func swipe(with: NSEvent)
Informs the receiver that the user has begun a swipe gesture.
func touches Began(with: NSEvent)
Informs the receiver that new set of touches has been recognized.
func touches Moved(with: NSEvent)
Informs the receiver that one or more touches has moved.
func touches Cancelled(with: NSEvent)
Informs the receiver that tracking of touches has been cancelled for any reason.
func touches Ended(with: NSEvent)
Returns that a set of touches have been removed.
func wants Forwarded Scroll Events(for: NSEvent .Gesture Axis) -> Bool
Returns whether to forward elastic scrolling gesture events up the responder.
func smart Magnify(with: NSEvent)
Informs the receiver that the user performed a smart zoom gesture.
func wants Scroll Events For Swipe Tracking(on: NSEvent .Gesture Axis) -> Bool
Implement this method to track gesture scroll events such as a swipe.