Constructor

new ()

Variables

read onlybottom:Float

read onlycenterX:Float

read onlycenterY:Float

read onlyleft:Float

read onlyright:Float

read onlytop:Float

x:Float = 0

y:Float = 0

Methods

inline clone ():Rect

inline containsPoint (point:Point):Bool

copy (rect:Rect):Void

init (x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0):Void

set (x:Float, y:Float, width:Float, height:Float):Void

Static methods

staticinline create (x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0):Rect

staticinline fromRectangle (width:Float, height:Float):Rect

staticinline fromSquare (side:Float):Rect

staticinline getPool ():Pool<Rect>

Inherited Variables

Defined by BaseObject

read onlyid:Int = Gecko.getUniqueID()

read onlyisAlreadyDestroyed:Bool = false

Inherited Methods