isPointInPath method

bool isPointInPath(path_OR_x, num x_OR_y, [ winding_OR_y, String winding ])

Source

bool isPointInPath(path_OR_x, num x_OR_y, [winding_OR_y, String winding]) {
  if ((x_OR_y is num) &&
      (path_OR_x is num) &&
      winding_OR_y == null &&
      winding == null) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInPath_Callback_2_(this, path_OR_x, x_OR_y);
  }
  if ((winding_OR_y is String) &&
      (x_OR_y is num) &&
      (path_OR_x is num) &&
      winding == null) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInPath_Callback_3_(this, path_OR_x, x_OR_y, winding_OR_y);
  }
  if ((winding_OR_y is num) &&
      (x_OR_y is num) &&
      (path_OR_x is Path2D) &&
      winding == null) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInPath_Callback_3_(this, path_OR_x, x_OR_y, winding_OR_y);
  }
  if ((winding is String) &&
      (winding_OR_y is num) &&
      (x_OR_y is num) &&
      (path_OR_x is Path2D)) {
    return _blink.BlinkCanvasRenderingContext2D.instance
        .isPointInPath_Callback_4_(
            this, path_OR_x, x_OR_y, winding_OR_y, winding);
  }
  throw new ArgumentError("Incorrect number or type of arguments");
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-html/CanvasRenderingContext2D/isPointInPath.html