Index | Collapse All Expand All

PointToScreen Method
Control Class Members See Also

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

# Syntax

Lua
    function Control:PointToScreen(x, y);

#### Parameters

x
  Type: number
  The X coordinate.

y
  Type: number
  The Y coordinate.

#### Returns

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

# Remarks

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

# See Also

- Control
- Turbine.UI