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
()
| 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}, |