/xbmc/guilib/GUIListGroup.h
http://github.com/xbmc/xbmc · C Header · 50 lines · 26 code · 9 blank · 15 comment · 0 complexity · 87195a0ee2b29750020eaff59dbe070c MD5 · raw file
- /*
- * 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);
- 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;
- };