diff options
Diffstat (limited to 'xbmc/video/dialogs/GUIDialogTeletext.h')
-rw-r--r-- | xbmc/video/dialogs/GUIDialogTeletext.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/xbmc/video/dialogs/GUIDialogTeletext.h b/xbmc/video/dialogs/GUIDialogTeletext.h new file mode 100644 index 0000000..4a60ec0 --- /dev/null +++ b/xbmc/video/dialogs/GUIDialogTeletext.h @@ -0,0 +1,39 @@ +/* + * Copyright (C) 2005-2018 Team Kodi + * This file is part of Kodi - https://kodi.tv + * + * SPDX-License-Identifier: GPL-2.0-or-later + * See LICENSES/README.md for more information. + */ + +#pragma once + +#include "guilib/GUIDialog.h" +#include "video/Teletext.h" + +#include <memory> + +class CTexture; + +class CGUIDialogTeletext : public CGUIDialog +{ +public: + CGUIDialogTeletext(void); + ~CGUIDialogTeletext(void) override; + bool OnMessage(CGUIMessage& message) override; + bool OnAction(const CAction& action) override; + bool OnBack(int actionID) override; + void Process(unsigned int currentTime, CDirtyRegionList &dirtyregions) override; + void Render() override; + void OnInitWindow() override; + void OnDeinitWindow(int nextWindowID) override; + +protected: + bool m_bClose; /* Close sendet, needed for fade out */ + std::unique_ptr<CTexture> m_pTxtTexture; /* Texture info class to render to screen */ + CRect m_vertCoords; /* Coordinates of teletext field on screen */ + CTeletextDecoder m_TextDecoder; /* Decoding class for teletext code */ + +private: + void SetCoordinates(); +}; |