Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <GUIColorManager.h>
Public Member Functions | |
CGUIColorManager (void) | |
virtual | ~CGUIColorManager (void) |
void | Load (const std::string &colorFile) |
KODI::UTILS::COLOR::Color | GetColor (const std::string &color) const |
void | Clear () |
bool | LoadColorsListFromXML (const std::string &filePath, std::vector< std::pair< std::string, KODI::UTILS::COLOR::ColorInfo > > &colors, bool sortColors) |
Load a colors list from a XML file. | |
Protected Member Functions | |
bool | LoadXML (CXBMCTinyXML &xmlDoc) |
Protected Attributes | |
std::map< std::string, KODI::UTILS::COLOR::Color > | m_colors |
|
default |
|
virtual |
void CGUIColorManager::Clear | ( | ) |
KODI::UTILS::COLOR::Color CGUIColorManager::GetColor | ( | const std::string & | color | ) | const |
void CGUIColorManager::Load | ( | const std::string & | colorFile | ) |
bool CGUIColorManager::LoadColorsListFromXML | ( | const std::string & | filePath, |
std::vector< std::pair< std::string, KODI::UTILS::COLOR::ColorInfo > > & | colors, | ||
bool | sortColors ) |
Load a colors list from a XML file.
filePath | The path to the XML file |
colors | The vector to populate |
sortColors | if true the colors will be sorted in a hue scale |
|
protected |
|
protected |