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

Method setActive

src/SFML/Window/Window.cpp:178–192  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

176
177////////////////////////////////////////////////////////////
178bool Window::setActive(bool active) const
179{
180 if (m_context)
181 {
182 if (m_context->setActive(active))
183 {
184 return true;
185 }
186
187 err() << "Failed to activate the window's context" << std::endl;
188 return false;
189 }
190
191 return false;
192}
193
194
195////////////////////////////////////////////////////////////

Callers 8

Context.test.cppFile · 0.45
mainFunction · 0.45
mainFunction · 0.45
initializeFunction · 0.45
drawFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected