xbmc
GUIFixedListContainer.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2018 Team Kodi
3  * This file is part of Kodi - https://kodi.tv
4  *
5  * SPDX-License-Identifier: GPL-2.0-or-later
6  * See LICENSES/README.md for more information.
7  */
8 
9 #pragma once
10 
16 #include "GUIBaseContainer.h"
17 
23 {
24 public:
25  CGUIFixedListContainer(int parentID, int controlID, float posX, float posY, float width, float height, ORIENTATION orientation, const CScroller& scroller, int preloadItems, int fixedPosition, int cursorRange);
26  ~CGUIFixedListContainer(void) override;
27  CGUIFixedListContainer* Clone() const override { return new CGUIFixedListContainer(*this); }
28 
29  bool OnAction(const CAction &action) override;
30 
31 protected:
32  void Scroll(int amount) override;
33  bool MoveDown(bool wrapAround) override;
34  bool MoveUp(bool wrapAround) override;
35  bool GetOffsetRange(int &minOffset, int &maxOffset) const override;
36  void ValidateOffset() override;
37  bool SelectItemFromPoint(const CPoint &point) override;
38  int GetCursorFromPoint(const CPoint &point, CPoint *itemPoint = NULL) const override;
39  void SelectItem(int item) override;
40  bool HasNextPage() const override;
41  bool HasPreviousPage() const override;
42  int GetCurrentPage() const override;
43 
44 private:
55  void GetCursorRange(int &minCursor, int &maxCursor) const;
56 
57  int m_fixedCursor;
58  int m_cursorRange;
59 };
60 
Definition: GUIBaseContainer.h:34
Class used to handle scrolling, allow using tweeners.
Definition: VisibleEffect.h:221
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIFixedListContainer.h:22