blob: 548cdec23ed7908c6740a1c926e480d4b441d148 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/*
* Copyright (C) 2005-2018 Team Kodi
* This file is part of Kodi - https://kodi.tv
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#pragma once
/*!
\file GUIListGroup.h
\brief
*/
#include "GUIControlGroup.h"
/*!
\ingroup controls
\brief a group of controls within a list/panel container
*/
class CGUIListGroup final : public CGUIControlGroup
{
public:
CGUIListGroup(int parentID, int controlID, float posX, float posY, float width, float height);
explicit CGUIListGroup(const CGUIListGroup& right);
~CGUIListGroup(void) override;
CGUIListGroup* Clone() const override { return new CGUIListGroup(*this); }
void AddControl(CGUIControl *control, int position = -1) override;
void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
void ResetAnimation(ANIMATION_TYPE type) override;
void UpdateVisibility(const CGUIListItem *item = NULL) override;
void UpdateInfo(const CGUIListItem *item) override;
void SetInvalid() override;
void EnlargeWidth(float difference);
void EnlargeHeight(float difference);
void SetFocusedItem(unsigned int subfocus);
unsigned int GetFocusedItem() const;
bool MoveLeft();
bool MoveRight();
void SetState(bool selected, bool focused);
void SelectItemFromPoint(const CPoint &point);
protected:
const CGUIListItem *m_item;
};
|