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

Method makeLTRB

shared/java/Rect.java:33–40  ·  view source on GitHub ↗
(float l, float t, float r, float b)

Source from the content-addressed store, hash-verified

31 }
32
33 @NotNull @Contract("_, _, _, _ -> new")
34 public static Rect makeLTRB(float l, float t, float r, float b) {
35 if (l > r)
36 throw new IllegalArgumentException("Rect::makeLTRB expected l <= r, got " + l + " > " + r);
37 if (t > b)
38 throw new IllegalArgumentException("Rect::makeLTRB expected t <= b, got " + t + " > " + b);
39 return new Rect(l, t, r, b);
40 }
41
42 @NotNull @Contract("_, _ -> new")
43 public static Rect makeWH(float w, float h) {

Callers 15

isShapeMethod · 0.95
containsMethod · 0.95
executeMethod · 0.95
inflateMethod · 0.95
inflateMethod · 0.95
TextBoxMethod · 0.95
FigmaSceneMethod · 0.95
drawCanvasMethod · 0.95
drawLineMethod · 0.95
drawPathEffectMethod · 0.95
drawPathMethod · 0.95
drawImageMethod · 0.95

Calls

no outgoing calls

Tested by 3

isShapeMethod · 0.76
containsMethod · 0.76
executeMethod · 0.76