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

Method getBounds

shared/java/Path.java:722–730  ·  view source on GitHub ↗

Returns minimum and maximum axes values of Point array. 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. Rect returned includes all Point added to Path, including Point associated with

()

Source from the content-addressed store, hash-verified

720 * @return bounds of all Point in Point array
721 */
722 @NotNull @Contract(pure = true)
723 public Rect getBounds() {
724 try {
725 Stats.onNativeCall();
726 return _nGetBounds(_ptr);
727 } finally {
728 ReferenceUtil.reachabilityFence(this);
729 }
730 }
731
732 /**
733 * <p>Updates internal bounds so that subsequent calls to {@link #getBounds()} are instantaneous.

Calls 3

onNativeCallMethod · 0.95
_nGetBoundsMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by

no test coverage detected