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.
12 \file GUIListContainer.h
16 #include "GUIBaseContainer.h"
25 class CGUIListContainer
: public CGUIBaseContainer
28 CGUIListContainer(int parentID
, int controlID
, float posX
, float posY
, float width
, float height
, ORIENTATION orientation
, const CScroller
& scroller
, int preloadItems
);
29 explicit CGUIListContainer(const CGUIListContainer
& other
);
30 //#ifdef GUILIB_PYTHON_COMPATIBILITY
31 CGUIListContainer(int parentID
, int controlID
, float posX
, float posY
, float width
, float height
,
32 const CLabelInfo
& labelInfo
, const CLabelInfo
& labelInfo2
,
33 const CTextureInfo
& textureButton
, const CTextureInfo
& textureButtonFocus
,
34 float textureHeight
, float itemWidth
, float itemHeight
, float spaceBetweenItems
);
36 ~CGUIListContainer(void) override
;
37 CGUIListContainer
* Clone() const override
{ return new CGUIListContainer(*this); }
39 bool OnAction(const CAction
&action
) override
;
40 bool OnMessage(CGUIMessage
& message
) override
;
42 bool HasNextPage() const override
;
43 bool HasPreviousPage() const override
;
46 void Scroll(int amount
) override
;
47 void SetCursor(int cursor
) override
;
48 bool MoveDown(bool wrapAround
) override
;
49 bool MoveUp(bool wrapAround
) override
;
50 void ValidateOffset() override
;
51 void SelectItem(int item
) override
;
52 bool SelectItemFromPoint(const CPoint
&point
) override
;
53 int GetCursorFromPoint(const CPoint
&point
, CPoint
*itemPoint
= NULL
) const override
;