[WASAPI] fix stream types and frequencies enumeration
[xbmc.git] / xbmc / guilib / GUIListGroup.h
blob548cdec23ed7908c6740a1c926e480d4b441d148
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 GUIListGroup.h
13 \brief
16 #include "GUIControlGroup.h"
18 /*!
19 \ingroup controls
20 \brief a group of controls within a list/panel container
22 class CGUIListGroup final : public CGUIControlGroup
24 public:
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;
42 bool MoveLeft();
43 bool MoveRight();
44 void SetState(bool selected, bool focused);
45 void SelectItemFromPoint(const CPoint &point);
47 protected:
48 const CGUIListItem *m_item;