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

Method addRect

shared/java/Path.java:1237–1239  ·  view source on GitHub ↗

Adds Rect to Path, appending PathVerb#MOVE, three PathVerb#LINE, and PathVerb#CLOSE, starting with top-left corner of Rect; followed by top-right, bottom-right, and bottom-left. @param rect Rect to add as a closed contour @return reference to Path @see <a href="https:

(Rect rect)

Source from the content-addressed store, hash-verified

1235 * @see <a href="https://fiddle.skia.org/c/@Path_addRect">https://fiddle.skia.org/c/@Path_addRect</a>
1236 */
1237 public Path addRect(Rect rect) {
1238 return addRect(rect, PathDirection.CLOCKWISE, 0);
1239 }
1240
1241 /**
1242 * Adds Rect to Path, appending {@link PathVerb#MOVE}, three {@link PathVerb#LINE}, and {@link PathVerb#CLOSE},

Callers 7

BitmapSceneMethod · 0.95
isShapeMethod · 0.80
FigmaSceneMethod · 0.80
drawAddsMethod · 0.80
drawPathsOpMethod · 0.80
drawMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nAddRectMethod · 0.95

Tested by 1

isShapeMethod · 0.64