[Test] Added tests for CUtil::SplitParams
[xbmc.git] / xbmc / guilib / GUIListLabel.h
blob64db8063c1da4346f55e515a1cfedab8a2df7b6b
1 /*
2 * Copyright (C) 2005-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 /*!
12 \file GUIListLabel.h
13 \brief
16 #include "GUIControl.h"
17 #include "GUILabel.h"
18 #include "guilib/guiinfo/GUIInfoLabel.h"
20 /*!
21 \ingroup controls
22 \brief
24 class CGUIListLabel :
25 public CGUIControl
27 public:
28 CGUIListLabel(int parentID, int controlID, float posX, float posY, float width, float height,
29 const CLabelInfo& labelInfo, const KODI::GUILIB::GUIINFO::CGUIInfoLabel &label, CGUIControl::GUISCROLLVALUE scroll);
30 ~CGUIListLabel(void) override;
31 CGUIListLabel* Clone() const override { return new CGUIListLabel(*this); }
33 void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
34 void Render() override;
35 bool CanFocus() const override { return false; }
36 void UpdateInfo(const CGUIListItem *item = NULL) override;
37 void SetFocus(bool focus) override;
38 void SetInvalid() override;
39 void SetWidth(float width) override;
41 void SetLabel(const std::string &label);
42 void SetSelected(bool selected);
44 static void CheckAndCorrectOverlap(CGUIListLabel &label1, CGUIListLabel &label2)
46 CGUILabel::CheckAndCorrectOverlap(label1.m_label, label2.m_label);
49 CRect CalcRenderRegion() const override;
51 protected:
52 bool UpdateColors(const CGUIListItem* item) override;
54 CGUILabel m_label;
55 KODI::GUILIB::GUIINFO::CGUIInfoLabel m_info;
56 CGUIControl::GUISCROLLVALUE m_scroll;