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

Method makeXYWH

shared/java/IRect.java:42–49  ·  view source on GitHub ↗
(int l, int t, int w, int h)

Source from the content-addressed store, hash-verified

40 }
41
42 @NotNull @Contract("_, _, _, _ -> new")
43 public static IRect makeXYWH(int l, int t, int w, int h) {
44 if (w < 0)
45 throw new IllegalArgumentException("IRect::makeXYWH expected w >= 0, got: " + w);
46 if (h < 0)
47 throw new IllegalArgumentException("IRect::makeXYWH expected h >= 0, got: " + h);
48 return w >= 0 && h >= 0 ? new IRect(l, t, l + w, t + h) : null;
49 }
50
51 @NotNull @Contract("_, _ -> new")
52 public static IRect makeWH(int w, int h) {

Callers 12

getBoundsMethod · 0.95
getBoundsMethod · 0.95
getSubsetMethod · 0.95
drawBitmapCanvasMethod · 0.95
drawPixelsMethod · 0.95
drawAlphaMethod · 0.95
drawMethod · 0.95
drawShadowsBlursMethod · 0.95
drawImageFiltersMethod · 0.95
drawLightsMethod · 0.95
skImageMethod · 0.95
mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected