MCPcopy Create free account
hub / github.com/SpartanJ/eepp / applyVarValues

Method applyVarValues

src/eepp/ui/uistyle.cpp:309–321  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307void UIStyle::applyLightDarkValues( CSS::StyleSheetProperty* style ) {}
308
309void UIStyle::applyVarValues( StyleSheetProperty* property ) {
310 if ( property->isVarValue() || property->isLightDarkValue() ) {
311 if ( NULL != property->getPropertyDefinition() &&
312 property->getPropertyDefinition()->isIndexed() ) {
313 for ( size_t i = 0; i < property->getPropertyIndexCount(); i++ ) {
314 StyleSheetProperty* realProperty = property->getPropertyIndexRef( i );
315 setVariableFromValue( realProperty, realProperty->getValue() );
316 }
317 } else {
318 setVariableFromValue( property, property->getValue() );
319 }
320 }
321}
322
323void UIStyle::onStateChange() {
324 if ( NULL == mWidget || NULL == mWidget->getUISceneNode() )

Callers

nothing calls this directly

Calls 6

isVarValueMethod · 0.80
isLightDarkValueMethod · 0.80
getPropertyIndexCountMethod · 0.80
getPropertyIndexRefMethod · 0.80
getPropertyDefinitionMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected