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

Method makeXYWH

shared/java/Rect.java:57–64  ·  view source on GitHub ↗
(float l, float t, float w, float h)

Source from the content-addressed store, hash-verified

55 }
56
57 @NotNull @Contract("_, _, _, _ -> new")
58 public static Rect makeXYWH(float l, float t, float w, float h) {
59 if (w < 0)
60 throw new IllegalArgumentException("Rect::makeXYWH expected w >= 0, got: " + w);
61 if (h < 0)
62 throw new IllegalArgumentException("Rect::makeXYWH expected h >= 0, got: " + h);
63 return new Rect(l, t, l + w, t + h);
64 }
65
66 @Nullable
67 public Rect intersect(@NotNull Rect other) {

Callers 15

drawMethod · 0.95
drawImageMethod · 0.95
renderMethod · 0.95
resolveRectMethod · 0.95
drawRatioMethod · 0.95
drawInterMethod · 0.95
drawTextLinesByWordsMethod · 0.95
FigmaSceneMethod · 0.95
drawTabbarMethod · 0.95
drawToolbarMethod · 0.95
drawLeftMethod · 0.95
drawConstraintsMethod · 0.95

Calls

no outgoing calls

Tested by 1

drawMethod · 0.76