MCPcopy Create free account
hub / github.com/aseprite/laf / LogWindow

Method LogWindow

examples/allevents.cpp:25–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 5

makeWindowMethod · 0.45
defaultFontMethod · 0.45
metricsMethod · 0.45
setTextInputMethod · 0.45
setTitleMethod · 0.45

Tested by

no test coverage detected