xbmc
GUIWindowScreensaver.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 <memory>
14 
15 namespace KODI
16 {
17 namespace ADDONS
18 {
19 class CScreenSaver;
20 } // namespace ADDONS
21 } // namespace KODI
22 
24 {
25 public:
27 
28  bool OnMessage(CGUIMessage& message) override;
29  bool OnAction(const CAction& action) override
30  {
31  // We're just a screen saver, nothing to do here
32  return false;
33  }
34  void Render() override;
35  void Process(unsigned int currentTime, CDirtyRegionList& regions) override;
36 
37 protected:
38  EVENT_RESULT OnMouseEvent(const CPoint& point, const CMouseEvent& event) override;
39 
40 private:
41  std::unique_ptr<KODI::ADDONS::CScreenSaver> m_addon;
42 };
Definition: GUIWindowScreensaver.h:23
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
Controller configuration window.
Definition: AudioDecoder.h:18
Definition: GUIMessage.h:365
Definition: GUIWindow.h:58
Simple class for mouse events.
Definition: Key.h:114