[WASAPI] fix stream types and frequencies enumeration
[xbmc.git] / xbmc / guilib / GUIListContainer.h
blobd16aa65bea65cf8a1f7c3c9fc6f6bf3ad7665621
1 /*
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.
7 */
9 #pragma once
11 /*!
12 \file GUIListContainer.h
13 \brief
16 #include "GUIBaseContainer.h"
18 class CLabelInfo;
19 class CTextureInfo;
21 /*!
22 \ingroup controls
23 \brief
25 class CGUIListContainer : public CGUIBaseContainer
27 public:
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);
35 //#endif
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;
45 protected:
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;