2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
22 class CGameWindowFullScreenText
25 CGameWindowFullScreenText(CGUIWindow
& fullscreenWindow
);
26 ~CGameWindowFullScreenText() = default;
29 void OnWindowLoaded();
33 * \brief Get a line of text
35 const std::string
& GetText(unsigned int lineIndex
) const;
38 * \brief Set a line of text
40 void SetText(unsigned int lineIndex
, std::string line
);
43 * \brief Get entire text
45 const std::vector
<std::string
>& GetText() const;
48 * \brief Set entire text
50 void SetText(std::vector
<std::string
> text
);
59 * \brief Translate line index to the control ID in the skin
61 * \param lineIndex The line in the string vector
63 * \return The ID of the line's label control in the skin
65 static int GetControlID(unsigned int lineIndex
);
67 // Window functions required by GUIMessage macros
68 //! @todo Change macros into functions
70 bool OnMessage(CGUIMessage
& message
);
72 // Construction parameters
73 CGUIWindow
& m_fullscreenWindow
;
76 bool m_bShowText
= false;
77 bool m_bTextChanged
= true;
78 bool m_bTextVisibilityChanged
= true;
81 std::vector
<std::string
> m_lines
;