2 \file GUIPanelContainer.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 CGUIPanelContainer : public CGUIBaseContainer
37 CGUIPanelContainer(int parentID, int controlID, float posX, float posY, float width, float height, ORIENTATION orientation, const CScroller& scroller, int preloadItems);
38 virtual ~CGUIPanelContainer(void);
39 virtual CGUIPanelContainer *Clone() const { return new CGUIPanelContainer(*this); };
41 virtual void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions);
42 virtual void Render();
43 virtual bool OnAction(const CAction &action);
44 virtual bool OnMessage(CGUIMessage& message);
45 virtual void OnLeft();
46 virtual void OnRight();
48 virtual void OnDown();
49 virtual bool GetCondition(int condition, int data) const;
51 virtual bool MoveUp(bool wrapAround);
52 virtual bool MoveDown(bool wrapAround);
53 virtual bool MoveLeft(bool wrapAround);
54 virtual bool MoveRight(bool wrapAround);
55 virtual void Scroll(int amount);
56 float AnalogScrollSpeed() const;
57 virtual void ValidateOffset();
58 virtual void CalculateLayout();
59 unsigned int GetRows() const;
60 virtual int CorrectOffset(int offset, int cursor) const;
61 virtual bool SelectItemFromPoint(const CPoint &point);
62 virtual int GetCursorFromPoint(const CPoint &point, CPoint *itemPoint = NULL) const;
63 void SetCursor(int cursor);
64 virtual void SelectItem(int item);
65 virtual bool HasPreviousPage() const;
66 virtual bool HasNextPage() const;