| 23 | WindowRef window() const { return m_window; } |
| 24 | |
| 25 | LogWindow(const SystemRef& system) |
| 26 | : m_system(system) |
| 27 | , m_window(system->makeWindow(800, 600)) |
| 28 | , m_fontMgr(FontMgr::Make()) |
| 29 | , m_font(m_fontMgr->defaultFont(18)) |
| 30 | , m_lineHeight(m_font->metrics(nullptr)) |
| 31 | { |
| 32 | m_system->setTextInput(m_textInput); |
| 33 | m_window->setTitle(titleBar()); |
| 34 | |
| 35 | recalcMaxLines(); |
| 36 | |
| 37 | logLine("-- Events Log --"); |
| 38 | } |
| 39 | |
| 40 | bool processEvent(const Event& ev) |
| 41 | { |
nothing calls this directly
no test coverage detected