![]() |
Murl Engine Lua Addon API
Version 1.0 beta
|
The IRectangle resource interface.
This interface represents a rectangle storing both screen and texture coordinates, used in Resource::IFont and Resource::IAtlas objects.
Get this rectangle's code value.
Integer GetCode()
Get the rectangle's start X texture coordinate (left).
Number GetTexCoordX1()
Get the rectangle's start Y texture coordinate (bottom).
Number GetTexCoordY1()
Get the rectangle's end X texture coordinate (right).
Number GetTexCoordX2()
Get the rectangle's end Y texture coordinate (top).
Number GetTexCoordY2()
Get the rectangle's start X screen coordinate (left).
Number GetCoordX1()
Get the rectangle's start Y screen coordinate (bottom).
Number GetCoordY1()
Get the rectangle's end X screen coordinate (right).
Number GetCoordX2()
Get the rectangle's end Y screen coordinate (top).
Number GetCoordY2()
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()
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()