2 \file GUIListContainer.h
9 * Copyright (C) 2005-2013 Team XBMC
12 * This Program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
17 * This Program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with XBMC; see the file COPYING. If not, see
24 * <http://www.gnu.org/licenses/>.
28 #include "GUIBaseContainer.h"
34 class CGUIListContainer : public CGUIBaseContainer
37 CGUIListContainer(int parentID, int controlID, float posX, float posY, float width, float height, ORIENTATION orientation, const CScroller& scroller, int preloadItems);
38 //#ifdef PRE_SKIN_VERSION_9_10_COMPATIBILITY
39 CGUIListContainer(int parentID, int controlID, float posX, float posY, float width, float height,
40 const CLabelInfo& labelInfo, const CLabelInfo& labelInfo2,
41 const CTextureInfo& textureButton, const CTextureInfo& textureButtonFocus,
42 float textureHeight, float itemWidth, float itemHeight, float spaceBetweenItems);
44 virtual ~CGUIListContainer(void);
45 virtual CGUIListContainer *Clone() const { return new CGUIListContainer(*this); };
47 virtual bool OnAction(const CAction &action);
48 virtual bool OnMessage(CGUIMessage& message);
50 virtual bool HasNextPage() const;
51 virtual bool HasPreviousPage() const;
54 virtual void Scroll(int amount);
55 void SetCursor(int cursor);
56 virtual bool MoveDown(bool wrapAround);
57 virtual bool MoveUp(bool wrapAround);
58 virtual void ValidateOffset();
59 virtual void SelectItem(int item);
60 virtual bool SelectItemFromPoint(const CPoint &point);
61 virtual int GetCursorFromPoint(const CPoint &point, CPoint *itemPoint = NULL) const;