kodi
IGUIRenderSettings.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 "cores/RetroPlayer/rendering/RenderSettings.h"
12 #include "utils/Geometry.h"
13 
14 namespace KODI
15 {
16 namespace RETRO
17 {
22 {
23 public:
24  virtual ~IGUIRenderSettings() = default;
25 
29  virtual bool HasVideoFilter() const { return true; }
30 
34  virtual bool HasStretchMode() const { return true; }
35 
39  virtual bool HasRotation() const { return true; }
40 
45  virtual bool HasPixels() const { return true; }
46 
52  virtual CRenderSettings GetSettings() const = 0;
53 
61  virtual CRect GetDimensions() const { return CRect{}; }
62 };
63 } // namespace RETRO
64 } // namespace KODI
Interface to pass render settings from the GUI to the renderer.
Definition: IGUIRenderSettings.h:21
virtual bool HasRotation() const
Returns true if this render target has a video rotation set.
Definition: IGUIRenderSettings.h:39
virtual CRect GetDimensions() const
Get the dimensions of this target.
Definition: IGUIRenderSettings.h:61
virtual CRenderSettings GetSettings() const =0
Get the settings used to render this target.
Definition: AudioDecoder.h:18
virtual bool HasVideoFilter() const
Returns true if this render target has a video filter set.
Definition: IGUIRenderSettings.h:29
Definition: RenderSettings.h:17
virtual bool HasStretchMode() const
Returns true if this render target has a stretch mode set.
Definition: IGUIRenderSettings.h:34
virtual bool HasPixels() const
Returns true if this render target has a path to a savestate for showing pixel data.
Definition: IGUIRenderSettings.h:45