Murl Engine Lua Addon API  Version 1.0 beta
Murl.Resource.IRectangle

The IRectangle resource interface.

This interface represents a rectangle storing both screen and texture coordinates, used in Resource::IFont and Resource::IAtlas objects.


Table members

Methods


GetCode()

Get this rectangle's code value.

Integer GetCode()

Returns
Integer The code value.

GetTexCoordX1()

Get the rectangle's start X texture coordinate (left).

Number GetTexCoordX1()

Returns
Number The start X texture coordinate.

GetTexCoordY1()

Get the rectangle's start Y texture coordinate (bottom).

Number GetTexCoordY1()

Returns
Number The start Y texture coordinate.

GetTexCoordX2()

Get the rectangle's end X texture coordinate (right).

Number GetTexCoordX2()

Returns
Number The end X texture coordinate.

GetTexCoordY2()

Get the rectangle's end Y texture coordinate (top).

Number GetTexCoordY2()

Returns
Number The end Y texture coordinate.

GetCoordX1()

Get the rectangle's start X screen coordinate (left).

Number GetCoordX1()

Returns
Number The start X screen coordinate.

GetCoordY1()

Get the rectangle's start Y screen coordinate (bottom).

Number GetCoordY1()

Returns
Number The start Y screen coordinate.

GetCoordX2()

Get the rectangle's end X screen coordinate (right).

Number GetCoordX2()

Returns
Number The end X screen coordinate.

GetCoordY2()

Get the rectangle's end Y screen coordinate (top).

Number GetCoordY2()

Returns
Number The end Y screen coordinate.

GetSizeX()

Get the rectangle's actual size in X direction. This value may actually be smaller than the difference of screen coordinates; in this case, the rectangle should be cropped accordingly.

Number GetSizeX()

Returns
Number The horizontal size.

GetSizeY()

Get the rectangle's actual size in Y direction. This value may actually be smaller than the difference of screen coordinates; in this case, the rectangle should be cropped accordingly.

Number GetSizeY()

Returns
Number The vertical size.