| 41 | static const WindowEventList& getEvents(); |
| 42 | |
| 43 | Window* open(std::string_view text, CloseCallback cbClose) |
| 44 | { |
| 45 | _text = text; |
| 46 | _cbClose = cbClose; |
| 47 | |
| 48 | auto window = WindowManager::createWindowCentred( |
| 49 | WindowType::networkStatus, |
| 50 | kWindowSize, |
| 51 | WindowFlags::lighterFrame | WindowFlags::stickToFront, |
| 52 | getEvents()); |
| 53 | |
| 54 | window->setWidgets(widgets); |
| 55 | window->initScrollWidgets(); |
| 56 | window->setColour(WindowColour::primary, Colour::black); |
| 57 | window->setColour(WindowColour::secondary, Colour::black); |
| 58 | |
| 59 | return window; |
| 60 | } |
| 61 | |
| 62 | void setText(std::string_view text) |
| 63 | { |
nothing calls this directly
no test coverage detected