xbmc
GUIWindowFullScreen.h
1 /*
2  * Copyright (C) 2005-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 #include <chrono>
14 
15 class CGUIDialog;
16 
18 {
19 public:
21  ~CGUIWindowFullScreen(void) override;
22  bool OnMessage(CGUIMessage& message) override;
23  bool OnAction(const CAction &action) override;
24  void ClearBackground() override;
25  void FrameMove() override;
26  void Process(unsigned int currentTime, CDirtyRegionList &dirtyregion) override;
27  void Render() override;
28  void RenderEx() override;
29  void OnWindowLoaded() override;
30  bool HasVisibleControls() override;
31 
32 protected:
33  EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event) override;
34 
35 private:
36  void SeekChapter(int iChapter);
37  void ToggleOSD();
38  void TriggerOSD();
39  CGUIDialog *GetOSD();
40 
41  bool m_viewModeChanged;
42  std::chrono::time_point<std::chrono::steady_clock> m_dwShowViewModeTimeout;
43 
44  bool m_bShowCurrentTime;
45 };
EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event) override
Perform a mouse action.
Definition: GUIWindowFullScreen.cpp:246
void Process(unsigned int currentTime, CDirtyRegionList &dirtyregion) override
Definition: GUIWindowFullScreen.cpp:359
EVENT_RESULT
Results of OnMouseEvent() Any value not equal to EVENT_RESULT_UNHANDLED indicates that the event was ...
Definition: GUIControl.h:60
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIDialog.h:35
Definition: GUIMessage.h:365
Definition: GUIWindow.h:58
Definition: GUIWindowFullScreen.h:17
void FrameMove() override
Main update function, called every frame prior to rendering Any window that requires updating on a fr...
Definition: GUIWindowFullScreen.cpp:266
Simple class for mouse events.
Definition: Key.h:114
void ClearBackground() override
Clear the background (if necessary) prior to rendering the window.
Definition: GUIWindowFullScreen.cpp:177