kodi
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
CGUIColorManager Class Reference

Public Member Functions

void Load (const std::string &colorFile)
 
UTILS::COLOR::Color GetColor (const std::string &color) const
 
void Clear ()
 
bool LoadColorsListFromXML (const std::string &filePath, std::vector< std::pair< std::string, UTILS::COLOR::ColorInfo >> &colors, bool sortColors)
 Load a colors list from a XML file. More...
 

Protected Member Functions

bool LoadXML (CXBMCTinyXML &xmlDoc)
 

Protected Attributes

std::map< std::string, UTILS::COLOR::Color > m_colors
 

Member Function Documentation

◆ LoadColorsListFromXML()

bool CGUIColorManager::LoadColorsListFromXML ( const std::string &  filePath,
std::vector< std::pair< std::string, UTILS::COLOR::ColorInfo >> &  colors,
bool  sortColors 
)

Load a colors list from a XML file.

Parameters
filePathThe path to the XML file
colorsThe vector to populate
sortColorsif true the colors will be sorted in a hue scale
Returns
true if success, otherwise false

The documentation for this class was generated from the following files: