MCPcopy Create free account
hub / github.com/JetBrains/skija / conservativelyContainsRect

Method conservativelyContainsRect

shared/java/Path.java:621–628  ·  view source on GitHub ↗

Returns true if rect is contained by Path. May return false when rect is contained by Path. For now, only returns true if Path has one contour and is convex. rect may share points and edges with Path and be contained. Returns true if rect is empty, that is, it has zero width or height; an

(Rect rect)

Source from the content-addressed store, hash-verified

619 * @see <a href="https://fiddle.skia.org/c/@Path_conservativelyContainsRect">https://fiddle.skia.org/c/@Path_conservativelyContainsRect</a>
620 */
621 public boolean conservativelyContainsRect(Rect rect) {
622 try {
623 Stats.onNativeCall();
624 return _nConservativelyContainsRect(_ptr, rect._left, rect._top, rect._right, rect._bottom);
625 } finally {
626 Reference.reachabilityFence(this);
627 }
628 }
629
630 /**
631 * <p>Grows Path verb array and Point array to contain extraPtCount additional Point.

Calls 2

onNativeCallMethod · 0.95

Tested by 1

containsMethod · 0.64