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.
16 #include "GUIControl.h"
18 #include "guilib/guiinfo/GUIInfoLabel.h"
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
;
52 bool UpdateColors(const CGUIListItem
* item
) override
;
55 KODI::GUILIB::GUIINFO::CGUIInfoLabel m_info
;
56 CGUIControl::GUISCROLLVALUE m_scroll
;