| 227 | } |
| 228 | |
| 229 | void StatisticsWindow::addLabel(const String& txt, juce::Rectangle<int> bounds) { |
| 230 | auto label = std::make_unique<Label>(); |
| 231 | label->setText(txt, NotificationType::dontSendNotification); |
| 232 | label->setBounds(bounds); |
| 233 | addChildAndSetID(label.get(), "lbl"); |
| 234 | m_components.push_back(std::move(label)); |
| 235 | } |
| 236 | |
| 237 | void StatisticsWindow::HirozontalLine::paint(Graphics& g) { |
| 238 | g.setColour(Colours::white); |