xbmc
GUIInfoColor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
16 #include "guilib/GUIListItem.h"
17 #include "utils/ColorUtils.h"
18 
19 #include <string>
20 
21 class CGUIListItem;
22 
23 namespace KODI
24 {
25 namespace GUILIB
26 {
27 namespace GUIINFO
28 {
29 
31 {
32 public:
33  constexpr CGUIInfoColor(UTILS::COLOR::Color color = 0) : m_color(color) {}
34 
35  constexpr operator UTILS::COLOR::Color() const { return m_color; }
36 
37  bool Update(const CGUIListItem* item = nullptr);
38  void Parse(const std::string &label, int context);
39 
40 private:
41  int m_info = 0;
42  UTILS::COLOR::Color m_color;
43 };
44 
45 } // namespace GUIINFO
46 } // namespace GUILIB
47 } // namespace KODI
Definition: GUIListItem.h:30
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIInfoColor.h:30