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
16
namespace
kodi
17
{
18
namespace
gui
19
{
20
namespace
dialogs
21
{
22
23
//==============================================================================
39
namespace
TextViewer
40
{
41
//==============================================================================
95
inline
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 */
kodi::gui::dialogs::TextViewer::Show
void ATTR_DLL_LOCAL Show(const std::string &heading, const std::string &text)
Show info text dialog.
Definition
TextViewer.h:95
include
kodi
gui
dialogs
TextViewer.h
Generated by
1.12.0