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

Method SetProperties

src/SFGUI/Engine.cpp:350–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

348}
349
350bool Engine::SetProperties( const std::string& properties ) {
351 auto theme = parser::theme::ParseString( properties );
352
353 if( theme.empty() ) {
354 return false;
355 }
356
357 ParseTheme( theme );
358
359 if( m_auto_refresh ) {
360 Widget::RefreshAll();
361 }
362
363 return true;
364}
365
366void Engine::ClearProperties() {
367 m_properties.clear();

Callers 2

RunMethod · 0.45
mainFunction · 0.45

Calls 2

ParseStringFunction · 0.85
emptyMethod · 0.80

Tested by 1

RunMethod · 0.36