MCPcopy Create free account
hub / github.com/ZL-Audio/ZLEqualizer / getRoundedShadowRectangleArea

Method getRoundedShadowRectangleArea

source/gui/interface_definitons.cpp:14–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12
13namespace zlgui {
14 juce::Rectangle<float> UIBase::getRoundedShadowRectangleArea(juce::Rectangle<float> box_bounds, float corner_size,
15 const FillRoundedShadowRectangleArgs& margs) {
16 const auto radius = juce::jmax(juce::roundToInt(corner_size * margs.blur_radius * 1.5f), 1);
17 return box_bounds.withSizeKeepingCentre(
18 box_bounds.getWidth() - static_cast<float>(radius) - 1.42f * corner_size,
19 box_bounds.getHeight() - static_cast<float>(radius) - 1.42f * corner_size);
20 }
21
22 juce::Rectangle<float> UIBase::fillRoundedShadowRectangle(juce::Graphics& g,
23 juce::Rectangle<float> box_bounds,

Callers

nothing calls this directly

Calls 2

getWidthMethod · 0.80
getHeightMethod · 0.80

Tested by

no test coverage detected