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

Method getAsLine

shared/java/Path.java:583–591  ·  view source on GitHub ↗

Returns array of two points if Path contains only one line; Verb array has two entries: PathVerb#MOVE, PathVerb#LINE. Returns null if Path is not one line. @return Point[2] if Path contains exactly one line, null otherwise @see http

()

Source from the content-addressed store, hash-verified

581 * @see <a href="https://fiddle.skia.org/c/@Path_isLine">https://fiddle.skia.org/c/@Path_isLine</a>
582 */
583 @Nullable @Contract(pure = true)
584 public Point[] getAsLine() {
585 try {
586 Stats.onNativeCall();
587 return _nMaybeGetAsLine(_ptr);
588 } finally {
589 ReferenceUtil.reachabilityFence(this);
590 }
591 }
592
593 /**
594 * Return a read-only view into the path's points.

Callers 1

checksMethod · 0.80

Calls 3

onNativeCallMethod · 0.95
_nMaybeGetAsLineMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

checksMethod · 0.64