(@NotNull TextLine line, float x, float y, @NotNull Paint paint)
| 578 | } |
| 579 | |
| 580 | @NotNull @Contract("_, _, _, _ -> this") |
| 581 | public Canvas drawTextLine(@NotNull TextLine line, float x, float y, @NotNull Paint paint) { |
| 582 | assert _ptr != 0 : "Canvas is closed"; |
| 583 | assert line != null : "Can’t drawTextLine with line == null"; |
| 584 | assert paint != null : "Can’t drawTextLine with paint == null"; |
| 585 | try (TextBlob blob = line.getTextBlob();) { |
| 586 | if (blob != null) |
| 587 | drawTextBlob(blob, x, y, paint); |
| 588 | } |
| 589 | return this; |
| 590 | } |
| 591 | |
| 592 | @NotNull @Contract("_ -> this") |
| 593 | public Canvas drawPicture(@NotNull Picture picture) { |
no test coverage detected