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

Method LoadThemeFromString

src/SFGUI/Engine.cpp:218–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218bool Engine::LoadThemeFromString( const std::string& data ) {
219 auto theme = parser::theme::ParseString( data );
220
221 if( theme.empty() ) {
222 return false;
223 }
224
225 ParseTheme( theme );
226
227 return true;
228}
229
230bool Engine::LoadThemeFromFile( const std::string& filename ) {
231 std::ifstream in( filename.c_str() );

Callers

nothing calls this directly

Calls 2

ParseStringFunction · 0.85
emptyMethod · 0.80

Tested by

no test coverage detected