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

Method isRect

shared/java/Path.java:1218–1225  ·  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

1216 * @see <a href="https://fiddle.skia.org/c/@Path_isRect">https://fiddle.skia.org/c/@Path_isRect</a>
1217 */
1218 public Rect isRect() {
1219 try {
1220 Stats.onNativeCall();
1221 return _nIsRect(_ptr);
1222 } finally {
1223 Reference.reachabilityFence(this);
1224 }
1225 }
1226
1227 /**
1228 * Adds Rect to Path, appending {@link PathVerb#MOVE}, three {@link PathVerb#LINE}, and {@link PathVerb#CLOSE},

Calls 2

onNativeCallMethod · 0.95
_nIsRectMethod · 0.95

Tested by 1

isShapeMethod · 0.36