Sets whether the geometry is filled, stroked, or filled and stroked. @see https://fiddle.skia.org/c/@Paint_setStyle @see https://fiddle.skia.org/c/@Stroke_Width
(@NotNull PaintMode style)
| 143 | * @see <a href="https://fiddle.skia.org/c/@Stroke_Width">https://fiddle.skia.org/c/@Stroke_Width</a> |
| 144 | */ |
| 145 | @NotNull @Contract("!null -> this; null -> fail") |
| 146 | public Paint setMode(@NotNull PaintMode style) { |
| 147 | assert style != null : "Paint::setMode expected style != null"; |
| 148 | Stats.onNativeCall(); |
| 149 | _nSetMode(_ptr, style.ordinal()); |
| 150 | return this; |
| 151 | } |
| 152 | |
| 153 | /** |
| 154 | * Set paint's mode to STROKE if true, or FILL if false. |