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

Method setStrokeCap

shared/java/Paint.java:395–401  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 7

drawTabbarMethod · 0.80
drawFillPathsMethod · 0.80
drawMethod · 0.80
SkiaGraphicsClass · 0.80
drawPointsMethod · 0.80
drawLinesMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nSetStrokeCapMethod · 0.95

Tested by

no test coverage detected