Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
TextViewer.h
1/*
2 * Copyright (C) 2015-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 "../../AddonBase.h"
12#include "../../c-api/gui/dialogs/text_viewer.h"
13
14#ifdef __cplusplus
15
16namespace kodi
17{
18namespace gui
19{
20namespace dialogs
21{
22
23//==============================================================================
39namespace TextViewer
40{
41//==============================================================================
95inline void ATTR_DLL_LOCAL Show(const std::string& heading, const std::string& text)
96{
97 using namespace ::kodi::addon;
98 CPrivateBase::m_interface->toKodi->kodi_gui->dialogTextViewer->open(
99 CPrivateBase::m_interface->toKodi->kodiBase, heading.c_str(), text.c_str());
100}
101//------------------------------------------------------------------------------
102}; // namespace TextViewer
104
105} /* namespace dialogs */
106} /* namespace gui */
107} /* namespace kodi */
108
109#endif /* __cplusplus */
void ATTR_DLL_LOCAL Show(const std::string &heading, const std::string &text)
Show info text dialog.
Definition TextViewer.h:95