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

Method isRect

shared/java/Path.java:847–855  ·  view source on GitHub ↗

Returns Rect if Path is equivalent to Rect when filled. rect may be smaller than the Path bounds. Path bounds may include PathVerb#MOVE points that do not alter the area drawn by the returned rect. @return bounds if Path contains Rect, null otherwise @see <a href="https://fiddle.s

()

Source from the content-addressed store, hash-verified

845 * @see <a href="https://fiddle.skia.org/c/@Path_isRect">https://fiddle.skia.org/c/@Path_isRect</a>
846 */
847 @Nullable @Contract(pure = true)
848 public Rect isRect() {
849 try {
850 Stats.onNativeCall();
851 return _nIsRect(_ptr);
852 } finally {
853 ReferenceUtil.reachabilityFence(this);
854 }
855 }
856
857 /**
858 * <p>Return a copy of {@link Path} with verb array, {@link Point} array,

Calls 3

onNativeCallMethod · 0.95
_nIsRectMethod · 0.95
reachabilityFenceMethod · 0.95

Tested by 1

isShapeMethod · 0.36