Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
CGUIColorManager Class Reference

#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::Colorm_colors
 

Constructor & Destructor Documentation

◆ CGUIColorManager()

CGUIColorManager::CGUIColorManager ( void )
default

◆ ~CGUIColorManager()

CGUIColorManager::~CGUIColorManager ( void )
virtual

Member Function Documentation

◆ Clear()

void CGUIColorManager::Clear ( )

◆ GetColor()

KODI::UTILS::COLOR::Color CGUIColorManager::GetColor ( const std::string & color) const

◆ Load()

void CGUIColorManager::Load ( const std::string & colorFile)

◆ LoadColorsListFromXML()

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.

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

◆ LoadXML()

bool CGUIColorManager::LoadXML ( CXBMCTinyXML & xmlDoc)
protected

Member Data Documentation

◆ m_colors

std::map<std::string, KODI::UTILS::COLOR::Color> CGUIColorManager::m_colors
protected

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