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

Method inflate

shared/java/Rect.java:100–113  ·  view source on GitHub ↗
(float spread)

Source from the content-addressed store, hash-verified

98 }
99
100 @NotNull
101 public Rect inflate(float spread) {
102 if (spread <= 0)
103 return Rect.makeLTRB(_left - spread,
104 _top - spread,
105 Math.max(_left - spread, _right + spread),
106 Math.max(_top - spread, _bottom + spread));
107 else
108 return RRect.makeLTRB(_left - spread,
109 _top - spread,
110 Math.max(_left - spread, _right + spread),
111 Math.max(_top - spread, _bottom + spread),
112 spread);
113 }
114
115 public boolean isEmpty() {
116 return _right == _left || _top == _bottom;

Callers 3

drawRectShadowMethod · 0.45
drawRectShadowNoclipMethod · 0.45
drawMethod · 0.45

Calls 2

makeLTRBMethod · 0.95
makeLTRBMethod · 0.95

Tested by

no test coverage detected