xbmc
GUIDialogTeletext.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/GUIDialog.h"
12 #include "video/Teletext.h"
13 
14 #include <memory>
15 
16 class CTexture;
17 
19 {
20 public:
21  CGUIDialogTeletext(void);
22  ~CGUIDialogTeletext(void) override;
23  bool OnMessage(CGUIMessage& message) override;
24  bool OnAction(const CAction& action) override;
25  bool OnBack(int actionID) override;
26  void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override;
27  void Render() override;
28  void OnInitWindow() override;
29  void OnDeinitWindow(int nextWindowID) override;
30 
31 protected:
32  bool m_bClose; /* Close sendet, needed for fade out */
33  std::unique_ptr<CTexture> m_pTxtTexture; /* Texture info class to render to screen */
34  CRect m_vertCoords; /* Coordinates of teletext field on screen */
35  CTeletextDecoder m_TextDecoder; /* Decoding class for teletext code */
36 
37 private:
38  void SetCoordinates();
39 };
void OnInitWindow() override
Called on window open.
Definition: GUIDialogTeletext.cpp:128
class encapsulating information regarding a particular user action to be sent to windows and controls...
Definition: Action.h:22
Definition: GUIDialog.h:35
Base texture class, subclasses of which depend on the render spec (DX, GL etc.)
Definition: Texture.h:34
Definition: GUIDialogTeletext.h:18
Definition: GUIMessage.h:365
Definition: Teletext.h:35