---
title: absoluteX
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsevent/absolutex
---

# absoluteX

The absolute x coordinate of a pointing device on its tablet at full tablet resolution.

## Declaration

```swift
var absoluteX: Int { get }
```

## Discussion

Discussion For the coordinate to be valid, this event must be generated by a tablet pointing device (otherwise the property is set to 0). This property is valid only for mouse events with a subtype of NSTabletPointEventSubtype and for events of type NSTabletPoint. Use this value if you want to scale from tablet location to screen location yourself; otherwise use the class method mouseLocation or the instance method locationInWindow.

## See Also

### Getting tablet pointing information

- [absoluteY](appkit/nsevent/absolutey.md)
- [absoluteZ](appkit/nsevent/absolutez.md)
- [buttonMask](appkit/nsevent/buttonmask-swift.property.md)
- [NSEvent.ButtonMask](appkit/nsevent/buttonmask-swift.struct.md)
- [rotation](appkit/nsevent/rotation.md)
- [tangentialPressure](appkit/nsevent/tangentialpressure.md)
- [tilt](appkit/nsevent/tilt.md)
- [vendorDefined](appkit/nsevent/vendordefined.md)
