MCPcopy Create free account
hub / github.com/HumbleUI/Skija / computeTightBounds

Method computeTightBounds

shared/java/Path.java:768–776  ·  view source on GitHub ↗

Returns minimum and maximum axes values of the lines and curves in Path. Returns (0, 0, 0, 0) if Path contains no points. Returned bounds width and height may be larger or smaller than area affected when Path is drawn. Includes Point associated with PathVerb#MOVE that define empty

()

Source from the content-addressed store, hash-verified

766 * @see <a href="https://fiddle.skia.org/c/@Path_computeTightBounds">https://fiddle.skia.org/c/@Path_computeTightBounds</a>
767 */
768 @NotNull @Contract(pure = true)
769 public Rect computeTightBounds() {
770 try {
771 Stats.onNativeCall();
772 return _nComputeTightBounds(_ptr);
773 } finally {
774 ReferenceUtil.reachabilityFence(this);
775 }
776 }
777
778 /**
779 * <p>Returns true if rect is contained by Path.

Calls 3

onNativeCallMethod · 0.95
_nComputeTightBoundsMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected