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

Method drawLine

shared/java/Canvas.java:227–234  ·  view source on GitHub ↗
(float x0, float y0, float x1, float y1, @NotNull Paint paint)

Source from the content-addressed store, hash-verified

225 }
226
227 @NotNull @Contract("_, _, _, _, _ -> this")
228 public Canvas drawLine(float x0, float y0, float x1, float y1, @NotNull Paint paint) {
229 assert paint != null : "Can’t drawLine with paint == null";
230 Stats.onNativeCall();
231 _nDrawLine(_ptr, x0, y0, x1, y1, Native.getPtr(paint));
232 Reference.reachabilityFence(paint);
233 return this;
234 }
235
236 @NotNull @Contract("_, _, _, _, _, _, _, _ -> this")
237 public Canvas drawArc(float left, float top, float right, float bottom, float startAngle, float sweepAngle, boolean includeCenter, @NotNull Paint paint) {

Callers 2

drawMethod · 0.45

Calls 3

onNativeCallMethod · 0.95
_nDrawLineMethod · 0.95
getPtrMethod · 0.95

Tested by 1

drawMethod · 0.36