W3cubDocs

/Haxe Flash

Rectangle

package flash.geom

Available on flash

Constructor

@:value({ height : 0, width : 0, y : 0, x : 0 }) new (x:Float = 0, y:Float = 0, width:Float = 0, height:Float = 0)

Variables

bottom:Float

bottomRight:Point

height:Float

left:Float

size:Point

top:Float

topLeft:Point

width:Float

x:Float

y:Float

Methods

clone ():Rectangle

contains (x:Float, y:Float):Bool

containsPoint (point:Point):Bool

containsRect (rect:Rectangle):Bool

@:require(flash11) copyFrom (sourceRect:Rectangle):Void

equals (toCompare:Rectangle):Bool

inflate (dx:Float, dy:Float):Void

inflatePoint (point:Point):Void

intersection (toIntersect:Rectangle):Rectangle

intersects (toIntersect:Rectangle):Bool

isEmpty ():Bool

offset (dx:Float, dy:Float):Void

offsetPoint (point:Point):Void

setEmpty ():Void

@:require(flash11) setTo (xa:Float, ya:Float, widtha:Float, heighta:Float):Void

toString ():String

union (toUnion:Rectangle):Rectangle

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/flash/geom/Rectangle.html