Index | Collapse All Expand All

PointToClient Method
Control Class Members See Also

Beta Documentation - Subject to change.
Converts a coordinate from control space to screen space.

# Syntax

Lua
    function Control:PointToClient(x, y);

#### Parameters

x
  Type: number
  The X coordinate.

y
  Type: number
  The Y coordinate.

#### Returns

Type: number, number
The control coordinate for the screen coordinate specified.

# Remarks

Converts a coordinate from screen space to control space. The coordinate is relative to the top left of the game client window and the returned coordinate will be relative to the top left of the control.

# See Also

- Control
- Turbine.UI