kodi
DialogGameStretchMode.h
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 {
24 {
25 public:
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 
51  static const std::vector<StretchModeProperties> m_allStretchModes;
52 };
53 } // namespace GAME
54 } // namespace KODI
Definition: DialogGameVideoSelect.h:30
Represents a list of files.
Definition: FileItem.h:702
Definition: DialogGameStretchMode.h:23
Definition: AudioDecoder.h:18
STRETCHMODE
Methods for stretching the game to the viewing area.
Definition: GameSettings.h:29