MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / paint

Method paint

Source/Panels/SpectrogramPanel/CloseButton.cpp:22–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22void 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
38void CloseButton::resized()
39{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected