Returns the filled equivalent of the stroked path, filling the destination path. @param paint Paint describing the stroke properties @param dst Path to fill with the result, may be the same as src, but may not be nullptr @param cull Optional limit passed to PathEffect @param matrix
(@NotNull Paint paint, @NotNull PathBuilder dst, @Nullable Rect cull, @NotNull Matrix33 matrix)
| 1214 | * @return true if the dst path was updated, false if it was not (e.g. if the path represents hairline and cannot be filled) |
| 1215 | */ |
| 1216 | @Contract("!null, !null, _, _ -> _; null, _, _, _ -> fail") |
| 1217 | public boolean fillWithPaint(@NotNull Paint paint, @NotNull PathBuilder dst, @Nullable Rect cull, @NotNull Matrix33 matrix) { |
| 1218 | try { |
| 1219 | assert paint != null : "Path::fillPath expected paint != null"; |
| 1220 | assert dst != null : "Path::fillPath expected dst != null"; |
| 1221 | assert matrix != null : "Path::fillPath expected matrix != null"; |
| 1222 | Stats.onNativeCall(); |
| 1223 | if (cull == null) |
| 1224 | return _nFillWithPaint(_ptr, Native.getPtr(paint), Native.getPtr(dst), 0, 0, 0, 0, matrix._mat); |
| 1225 | else |
| 1226 | return _nFillWithPaint(_ptr, Native.getPtr(paint), Native.getPtr(dst), cull._left, cull._top, cull._right, cull._bottom, matrix._mat); |
| 1227 | } finally { |
| 1228 | ReferenceUtil.reachabilityFence(this); |
| 1229 | ReferenceUtil.reachabilityFence(paint); |
| 1230 | ReferenceUtil.reachabilityFence(dst); |
| 1231 | } |
| 1232 | } |
| 1233 | |
| 1234 | public boolean fillWithPaint(@NotNull Paint paint, @NotNull PathBuilder dst, @NotNull Matrix33 matrix) { |
| 1235 | return fillWithPaint(paint, dst, null, matrix); |
no test coverage detected