Debian Codegraph @

xbmc/games/dialogs/osd/DialogGameStretchMode.h

raw
1 /*
2 * Copyright (C) 2017-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
11 #include "DialogGameVideoSelect.h"
12 #include "cores/GameSettings.h"
13
14 #include <vector>
15
16 namespace KODI
17 {
18 namespace GAME
19 {
20 /*!
21 * \ingroup games
22 */
23 class CDialogGameStretchMode : public CDialogGameVideoSelect
24 {
25 public:
26 CDialogGameStretchMode();
27 ~CDialogGameStretchMode() override = default;
28
29 protected:
30 // implementation of CDialogGameVideoSelect
31 std::string GetHeading() override;
32 void PreInit() override;
33 void GetItems(CFileItemList& items) override;
34 void OnItemFocus(unsigned int index) override;
35 unsigned int GetFocusedItem() const override;
36 void PostExit() override;
37 bool OnClickAction() override;
38
39 private:
40 struct StretchModeProperties
41 {
42 int stringIndex;
43 RETRO::STRETCHMODE stretchMode;
44 };
45
46 std::vector<StretchModeProperties> m_stretchModes;
47
48 /*!
49 * \brief The list of all the stretch modes along with their properties
50 */
51 static const std::vector<StretchModeProperties> m_allStretchModes;
52 };
53 } // namespace GAME
54 } // namespace KODI