Murl Engine Lua Addon API  Version 1.0 beta
Murl.Input.IScreenArea

The IScreenArea interface.

The IScreenArea object can be created by the ITouchableHandler object.


Table members

Methods


SetInCoord(x1, y1, x2, y2)

Set the area's input coordinate range. This method sets the area's start and end input coordinates.

Boolean SetInCoord(Number x1, Number y1, Number x2, Number y2)

Parameters
x1The start coordinate in X direction.
y1The start coordinate in Y direction.
x2The end coordinate in X direction.
y2The end coordinate in Y direction.
Returns
Boolean true if successful.

SetInCoord1(x1, y1)

Set the area's input coordinate start. See SetInCoord().

Boolean SetInCoord1(Number x1, Number y1)

Parameters
x1The start coordinate in X direction.
y1The start coordinate in Y direction.
Returns
Boolean true if successful.

SetInCoord2(x2, y2)

Set the area's input coordinate end. See SetInCoord().

Boolean SetInCoord2(Number x2, Number y2)

Parameters
x2The end coordinate in X direction.
y2The end coordinate in Y direction.
Returns
Boolean true if successful.

SetInCoordX1(x1)

Set the area's horizontal start input coordinate. See SetInCoord().

Boolean SetInCoordX1(Number x1)

Parameters
x1The start coordinate in X direction.
Returns
Boolean true if successful.

SetInCoordY1(y1)

Set the area's vertical start input coordinates. See SetInCoord().

Boolean SetInCoordY1(Number y1)

Parameters
y1The start coordinate in Y direction.
Returns
Boolean true if successful.

SetInCoordX2(x2)

Set the area's horizontal end input coordinate. See SetInCoord().

Boolean SetInCoordX2(Number x2)

Parameters
x2The end coordinate in X direction.
Returns
Boolean true if successful.

SetInCoordY2(y2)

Set the area's vertical end input coordinates. See SetInCoord().

Boolean SetInCoordY2(Number y2)

Parameters
y2The end coordinate in Y direction.
Returns
Boolean true if successful.

GetInCoordX1()

Get the area's horizontal start input coordinate. See SetInCoord().

Number GetInCoordX1()

Returns
Number The start coordinate in X direction.

GetInCoordY1()

Get the area's vertical start input coordinate. See SetInCoord().

Number GetInCoordY1()

Returns
Number The start coordinate in Y direction.

GetInCoordX2()

Get the area's horizontal end input coordinate. See SetInCoord().

Number GetInCoordX2()

Returns
Number The end coordinate in X direction.

GetInCoordY2()

Get the area's vertical end input coordinate. See SetInCoord().

Number GetInCoordY2()

Returns
Number The end coordinate in Y direction.