| 20 | } |
| 21 | |
| 22 | void CloseButton::paint (juce::Graphics& g) |
| 23 | { |
| 24 | if (isEntered) |
| 25 | { |
| 26 | g.setColour (COLOUR1); |
| 27 | g.drawLine (getWidth() / 4.f, getHeight() / 4.f, getWidth() / 4.f * 3.f, getHeight() / 4.f * 3.f, 2.f); |
| 28 | g.drawLine (getWidth() / 4.f, getHeight() / 4.f * 3.f, getWidth() / 4.f * 3.f, getHeight() / 4.f, 2.f); |
| 29 | } |
| 30 | else |
| 31 | { |
| 32 | g.setColour (COLOUR1.withBrightness (0.4f)); |
| 33 | g.drawLine (getWidth() / 4.f, getHeight() / 4.f, getWidth() / 4.f * 3.f, getHeight() / 4.f * 3.f, 2.f); |
| 34 | g.drawLine (getWidth() / 4.f, getHeight() / 4.f * 3.f, getWidth() / 4.f * 3.f, getHeight() / 4.f, 2.f); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | void CloseButton::resized() |
| 39 | { |
nothing calls this directly
no outgoing calls
no test coverage detected