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 "GUIControlGroup.h"
20 \brief a group of controls within a list/panel container
22 class CGUIListGroup final
: public CGUIControlGroup
25 CGUIListGroup(int parentID
, int controlID
, float posX
, float posY
, float width
, float height
);
26 explicit CGUIListGroup(const CGUIListGroup
& right
);
27 ~CGUIListGroup(void) override
;
28 CGUIListGroup
* Clone() const override
{ return new CGUIListGroup(*this); }
30 void AddControl(CGUIControl
*control
, int position
= -1) override
;
32 void Process(unsigned int currentTime
, CDirtyRegionList
&dirtyregions
) override
;
33 void ResetAnimation(ANIMATION_TYPE type
) override
;
34 void UpdateVisibility(const CGUIListItem
*item
= NULL
) override
;
35 void UpdateInfo(const CGUIListItem
*item
) override
;
36 void SetInvalid() override
;
38 void EnlargeWidth(float difference
);
39 void EnlargeHeight(float difference
);
40 void SetFocusedItem(unsigned int subfocus
);
41 unsigned int GetFocusedItem() const;
44 void SetState(bool selected
, bool focused
);
45 void SelectItemFromPoint(const CPoint
&point
);
48 const CGUIListItem
*m_item
;