diff options
Diffstat (limited to 'xbmc/guilib/GUIListGroup.h')
-rw-r--r-- | xbmc/guilib/GUIListGroup.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/xbmc/guilib/GUIListGroup.h b/xbmc/guilib/GUIListGroup.h new file mode 100644 index 0000000..548cdec --- /dev/null +++ b/xbmc/guilib/GUIListGroup.h @@ -0,0 +1,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; +}; + |