Package | com.yworks.canvas.drawing |
Class | public class BoolHitTestable |
Inheritance | BoolHitTestable Object |
Implements | IHitTestable |
Method | Defined By | ||
---|---|---|---|
BoolHitTestable(b:Boolean)
Creates an instance which always returns the passed value. | BoolHitTestable | ||
isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Always returns the boolean value passed in the constructor function. | BoolHitTestable |
BoolHitTestable | () | Constructor |
public function BoolHitTestable(b:Boolean)
Creates an instance which always returns the passed value.
Parametersb:Boolean — The boolean value to return.
|
isHit | () | method |
public function isHit(x:Number, y:Number, ctx:ICanvasContext):Boolean
Always returns the boolean value passed in the constructor function.
Parameters
x:Number — Not used.
| |
y:Number — Not used.
| |
ctx:ICanvasContext — Not used.
|
Boolean — The boolean value passed in the constructor.
|