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

Method setMode

shared/java/Paint.java:145–151  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 15

setStrokeMethod · 0.95
fillWithPaintMethod · 0.80
drawMethod · 0.80
SVGScalingSceneClass · 0.80
FontSceneMethod · 0.80
WallOfTextSceneClass · 0.80
DrawableSceneClass · 0.80
drawTabbarMethod · 0.80
drawToolbarMethod · 0.80
drawLeftMethod · 0.80
drawAlignMethod · 0.80
drawPropsMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nSetModeMethod · 0.95

Tested by 2

fillWithPaintMethod · 0.64
drawMethod · 0.64