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

Method resized

source/gui/button/compact_button/compact_button.cpp:32–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30 }
31
32 void CompactButton::resized() {
33 auto bound = getLocalBounds();
34 const auto radius = juce::jmin(bound.getHeight(), bound.getWidth());
35 bound = bound.withSizeKeepingCentre(radius, radius);
36 button_.setBounds(bound);
37 }
38
39 void CompactButton::buttonDownAnimation() {
40 if (button_.getToggleState() && laf_.getDepth() < 0.1f) {

Callers

nothing calls this directly

Calls 2

getHeightMethod · 0.80
getWidthMethod · 0.80

Tested by

no test coverage detected