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

Method handle

examples/event_handling/EventHandling.cpp:327–330  ·  view source on GitHub ↗

The following handle methods are called by the forwarding event handler implementation A handle method is defined per event type you want to handle To handle any other events that are left, the templated handle method will be called Overload resolution will prefer the handle methods that fit the event type better before falling back to the templated method

Source from the content-addressed store, hash-verified

325 // Overload resolution will prefer the handle methods that fit the event type better
326 // before falling back to the templated method
327 void handle(const sf::Event::Closed&)
328 {
329 m_window.close();
330 }
331
332 void handle(const sf::Event::KeyPressed& keyPress)
333 {

Callers

nothing calls this directly

Calls 5

vec2ToStringFunction · 0.85
toAnsiStringMethod · 0.80
getDescriptionFunction · 0.50
closeMethod · 0.45
setStringMethod · 0.45

Tested by

no test coverage detected