xbmc
GameWindowFullScreen.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 "guilib/GUIWindow.h"
12 
13 class CGUIDialog;
14 
15 namespace KODI
16 {
17 namespace RETRO
18 {
19 class CGameWindowFullScreenText;
20 class CGUIRenderHandle;
21 
23 {
24 public:
26  ~CGameWindowFullScreen() override;
27 
28  // implementation of CGUIControl via CGUIWindow
29  void Process(unsigned int currentTime, CDirtyRegionList& dirtyregion) override;
30  void Render() override;
31  void RenderEx() override;
32  bool OnAction(const CAction& action) override;
33  bool OnMessage(CGUIMessage& message) override;
34 
35  // implementation of CGUIWindow
36  void FrameMove() override;
37  void ClearBackground() override;
38  bool HasVisibleControls() override;
39  void OnWindowLoaded() override;
40  void OnDeinitWindow(int nextWindowID) override;
41 
42 protected:
43  // implementation of CGUIWindow
44  void OnInitWindow() override;
45 
46 private:
47  void TriggerOSD();
48  CGUIDialog* GetOSD();
49 
50  void RegisterWindow();
51  void UnregisterWindow();
52 
53  // GUI parameters
54  std::unique_ptr<CGameWindowFullScreenText> m_fullscreenText;
55 
56  // Rendering parameters
57  std::shared_ptr<CGUIRenderHandle> m_renderHandle;
58 };
59 } // namespace RETRO
60 } // namespace KODI
void Process(unsigned int currentTime, CDirtyRegionList &dirtyregion) override
Definition: GameWindowFullScreen.cpp:53
void FrameMove() override
Main update function, called every frame prior to rendering Any window that requires updating on a fr...
Definition: GameWindowFullScreen.cpp:144
void OnInitWindow() override
Called on window open.
Definition: GameWindowFullScreen.cpp:173
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIDialog.h:35
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIMessage.h:365
Definition: GameWindowFullScreen.h:22
Definition: GUIWindow.h:58
void OnDeinitWindow(int nextWindowID) override
Definition: GameWindowFullScreen.cpp:203
void ClearBackground() override
Clear the background (if necessary) prior to rendering the window.
Definition: GameWindowFullScreen.cpp:151