getX
Description​
Gets the X-position of the cursor at the time of the event relative to the given UI container.
- JavaScript
- C#
- Kotlin
getX(relativeTo: IContainer): numberdouble GetX(IContainer relativeTo)fun getX(relativeTo: IContainer): Double| Parameter | Summary |
|---|---|
relativeToAll | The UI element to which the relative position should be calculated. |
Returns​
The relative X-position of the cursor to the given UI container at the time the event occured.