| Package | com.yworks.canvas.drawing |
| Class | public class HitTestables |
| Inheritance | HitTestables Object |
IHitTestable implementations.
| Method | Defined By | ||
|---|---|---|---|
create(handlerFunction:Function):IHitTestable [static]
Wrap a handler into an interface. | HitTestables | ||
[static]
Creates and returns an IHitTestable that always returns true. | HitTestables | ||
[static]
Creates and returns an IHitTestable that always returns false. | HitTestables | ||
| create | () | method |
public static function create(handlerFunction:Function):IHitTestableWrap a handler into an interface.
the handler has to adhere to the following interface:
function handlerFunction( x:Number, y:Number, ctx:ICanvasContext ):Boolean {
...
}
Parameters
handlerFunction:Function — the handler to wrap.
|
IHitTestable — An IHitTestable with the wrapped handler function.
|
| getAlways | () | method |
public static function getAlways():IHitTestable
Creates and returns an IHitTestable that always returns true.
IHitTestable — An IHitTestable that always returns true.
|
| getNever | () | method |
public static function getNever():IHitTestable
Creates and returns an IHitTestable that always returns false.
IHitTestable — An IHitTestable that always returns false.
|