MCPcopy Create free account
hub / github.com/buggins/coolreader / getColorDef

Method getColorDef

crengine/src/props.cpp:343–351  ·  view source on GitHub ↗

get color (#xxxxxx) property by name, returns default value if not found

Source from the content-addressed store, hash-verified

341
342/// get color (#xxxxxx) property by name, returns default value if not found
343lUInt32 CRPropAccessor::getColorDef( const char * propName, lUInt32 defValue ) const
344{
345 lUInt32 v = 0;
346// CRLog::debug("getColorDef(%s), 0x%06x", propName, defValue);
347 if ( !getColor( propName, v ) )
348 return defValue;
349 else
350 return v;
351}
352
353/// set color (#xxxxxx) property by name
354void CRPropAccessor::setColor( const char * propName, lUInt32 value )

Calls

no outgoing calls

Tested by

no test coverage detected