Utility class that helps in converting various types of co-ordinate between absolute screen positions and positions offset from the top-left corner of a given Window object.
More...
Public Member Functions |
float | windowToScreenX (Window window, UDim x) |
| Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate.
|
float | windowToScreenX (Window window, float x) |
| Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate.
|
float | windowToScreenY (Window window, UDim y) |
| Convert a window co-ordinate value, specified as a UDim, to a screen relative pixel co-ordinate.
|
float | windowToScreenY (Window window, float y) |
| Convert a window pixel co-ordinate value, specified as a float, to a screen pixel co-ordinate.
|
Vector2 | windowToScreen (Window window, UVector2 vec) |
| Convert a window co-ordinate point, specified as a UVector2, to a screen relative pixel co-ordinate point.
|
Vector2 | windowToScreen (Window window, Vector2 vec) |
| Convert a window pixel co-ordinate point, specified as a Vector2, to a screen pixel co-ordinate point.
|
Rect | windowToScreen (Window window, URect rect) |
| Convert a window area, specified as a URect, to a screen area.
|
Rect | windowToScreen (Window window, Rect rect) |
| Convert a pixel window area, specified as a Rect, to a screen area.
|
float | screenToWindowX (Window window, UDim x) |
| Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels.
|
float | screenToWindowX (Window window, float x) |
| Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels.
|
float | screenToWindowY (Window window, UDim y) |
| Convert a screen relative UDim co-ordinate value to a window co-ordinate value, specified in pixels.
|
float | screenToWindowY (Window window, float y) |
| Convert a screen pixel co-ordinate value to a window co-ordinate value, specified in pixels.
|
Vector2 | screenToWindow (Window window, UVector2 vec) |
| Convert a screen relative UVector2 point to a window co-ordinate point, specified in pixels.
|
Vector2 | screenToWindow (Window window, Vector2 vec) |
| Convert a screen Vector2 pixel point to a window co-ordinate point, specified in pixels.
|
Rect | screenToWindow (Window window, URect rect) |
| Convert a URect screen area to a window area, specified in pixels.
|
Rect | screenToWindow (Window window, Rect rect) |
| Convert a Rect screen pixel area to a window area, specified in pixels.
|
Utility class that helps in converting various types of co-ordinate between absolute screen positions and positions offset from the top-left corner of a given Window object.