Sets the geometry drawn at the beginning and end of strokes. @return this @see https://fiddle.skia.org/c/@Paint_setStrokeCap_a @see https://fiddle.skia.org/c/@Paint_setStrokeCap
(@NotNull PaintStrokeCap cap)
| 393 | * @see <a href="https://fiddle.skia.org/c/@Paint_setStrokeCap_b">https://fiddle.skia.org/c/@Paint_setStrokeCap_b</a> |
| 394 | */ |
| 395 | @NotNull @Contract("!null -> this; null -> fail") |
| 396 | public Paint setStrokeCap(@NotNull PaintStrokeCap cap) { |
| 397 | assert cap != null : "Paint::setStrokeCap expected cap != null"; |
| 398 | Stats.onNativeCall(); |
| 399 | _nSetStrokeCap(_ptr, cap.ordinal()); |
| 400 | return this; |
| 401 | } |
| 402 | |
| 403 | /** |
| 404 | * @return the geometry drawn at the corners of strokes. |
no test coverage detected