GridCore

Constructor

@:value({ gap : 10 })inlinenew(width:Float, height:Float, gap:Float = 10)

Variables

read onlycx:Int

read onlycy:Int

gap:Float

read onlyslotHeight:Float

read onlyslotWidth:Float

read onlytotalHeight:Float

read onlytotalWidth:Float

Methods

inlinefloatPoint(rect:Point<Int>):Point<Float>

inlinefloatRect(rect:Rect<Int>):Rect<Float>

freePos(r:Rect<Int>):Void

inlinegx(r:Rect<Int>):Float

inlinegy(r:Rect<Int>):Float

inlineintPoint(rect:Rect<Float>):Point<Int>

inlineintRect(rect:Rect<Float>):Rect<Int>

inlineisOut(r:Rect<Int>):Bool

inlineisOutFloat(r:Rect<Float>):Bool

inlineisOutPoint(r:Point<Int>):Bool

dynamicmakeMark(y:Int, x:Int, state:Bool):Void

mark(rect:Rect<Float>):Void

markOff():Void

inlinesetTotal(width:Float, height:Float):Void

@:value({ mark : true })inlinetakePos(rect:Rect<Float>, mark:Bool = true):Rect<Int>

@:value({ mark : true })takePosInt(start:IntRect, mark:Bool = true):Rect<Int>