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

Method makeWH

shared/java/Rect.java:42–49  ·  view source on GitHub ↗
(float w, float h)

Source from the content-addressed store, hash-verified

40 }
41
42 @NotNull @Contract("_, _ -> new")
43 public static Rect makeWH(float w, float h) {
44 if (w < 0)
45 throw new IllegalArgumentException("Rect::makeWH expected w >= 0, got: " + w);
46 if (h < 0)
47 throw new IllegalArgumentException("Rect::makeWH expected h >= 0, got: " + h);
48 return new Rect(0, 0, w, h);
49 }
50
51 @NotNull @Contract("_, _ -> new")
52 public static Rect makeWH(@NotNull Point size) {

Callers 7

drawImageMethod · 0.95
drawImageRectMethod · 0.95
makeImageMethod · 0.95
drawIconMethod · 0.95
drawMethod · 0.95
drawMethod · 0.95
drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected