MCPcopy Create free account
hub / github.com/SFML/SFML / Application

Method Application

examples/event_handling/EventHandling.cpp:34–44  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

32public:
33 ////////////////////////////////////////////////////////////
34 Application()
35 {
36 m_window.setVerticalSyncEnabled(true);
37 m_logText.setFillColor(sf::Color::White);
38 m_handlerText.setFillColor(sf::Color::White);
39 m_handlerText.setStyle(sf::Text::Bold);
40 m_handlerText.setPosition({380.f, 260.f});
41 m_instructions.setFillColor(sf::Color::White);
42 m_instructions.setStyle(sf::Text::Bold);
43 m_instructions.setPosition({380.f, 310.f});
44 }
45
46 // The visitor we pass to event->visit in the "Visitor" handler
47 // Make sure all defined operator()s return the same type.

Callers

nothing calls this directly

Calls 4

setFillColorMethod · 0.45
setStyleMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected