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

Method filterEvent

src/SFML/Window/WindowBase.cpp:371–382  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

369
370////////////////////////////////////////////////////////////
371void WindowBase::filterEvent(const Event& event)
372{
373 // Notify resize events to the derived class
374 if (const auto* resized = event.getIf<Event::Resized>())
375 {
376 // Cache the new size
377 m_size = resized->size;
378
379 // Notify the derived class
380 onResize();
381 }
382}
383
384
385////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected