MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / grow

Method grow

lv2export/includes/rack.hpp:346–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

344 return Rect(Vec(), size);
345 }
346 Rect grow(Vec delta) const {
347 Rect r;
348 r.pos = pos.minus(delta);
349 r.size = size.plus(delta.mult(2.f));
350 return r;
351 }
352 Rect shrink(Vec delta) const {
353 Rect r;
354 r.pos = pos.plus(delta);

Callers 1

drawLayerMethod · 0.80

Calls 3

minusMethod · 0.80
plusMethod · 0.80
multMethod · 0.80

Tested by

no test coverage detected