MCPcopy Create free account
hub / github.com/TankOs/SFGUI / Update

Method Update

src/SFGUI/Desktop.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9namespace sfg {
10
11void Desktop::Update( float seconds ) {
12 Context::Activate( m_context );
13
14 std::reverse_iterator<WidgetsList::iterator> iter( std::end( m_children ) );
15 std::reverse_iterator<WidgetsList::iterator> finish( std::begin( m_children ) );
16
17 for( ; iter != finish; ++iter ) {
18 (*iter)->Update( seconds );
19 }
20
21 Context::Deactivate();
22}
23
24void Desktop::HandleEvent( const sf::Event& event ) {
25 // Activate context.

Callers

nothing calls this directly

Calls 2

endFunction · 0.85
beginFunction · 0.85

Tested by

no test coverage detected