Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Namespace: kodi::gui::dialogs::YesNo
Namespaces | |
namespace | kodi::gui::dialogs::YesNo |
Functions | |
bool ATTR_DLL_LOCAL | kodi::gui::dialogs::YesNo::ShowAndGetInput (const std::string &heading, const std::string &text, bool &canceled, const std::string &noLabel="", const std::string &yesLabel="") |
Use dialog to get numeric new password with one text string shown everywhere and cancel return field. | |
bool ATTR_DLL_LOCAL | kodi::gui::dialogs::YesNo::ShowAndGetInput (const std::string &heading, const std::string &line0, const std::string &line1, const std::string &line2, const std::string &noLabel="", const std::string &yesLabel="") |
Use dialog to get numeric new password with separated line strings. | |
bool ATTR_DLL_LOCAL | kodi::gui::dialogs::YesNo::ShowAndGetInput (const std::string &heading, const std::string &line0, const std::string &line1, const std::string &line2, bool &canceled, const std::string &noLabel="", const std::string &yesLabel="") |
Use dialog to get numeric new password with separated line strings and cancel return field. | |
Namespace: kodi::gui::dialogs::YesNo
In order to achieve a line break is a \n directly in the text or in the "./resources/language/resource.language.??_??/strings.po" to call with std::string kodi::general::GetLocalizedString(...);.
It has the header #include <kodi/gui/dialogs/YesNo.h> be included to enjoy it.
|
inline |
Use dialog to get numeric new password with separated line strings and cancel return field.
[in] | heading | Dialog heading |
[in] | line0 | Line #0 text |
[in] | line1 | Line #1 text |
[in] | line2 | Line #2 text |
[out] | canceled | Return value about cancel button |
[in] | noLabel | [opt] label to put on the no button |
[in] | yesLabel | [opt] label to put on the yes button |
Example:
|
inline |
Use dialog to get numeric new password with separated line strings.
[in] | heading | Dialog heading |
[in] | line0 | Line #0 text |
[in] | line1 | Line #1 text |
[in] | line2 | Line #2 text |
[in] | noLabel | [opt] label to put on the no button |
[in] | yesLabel | [opt] label to put on the yes button |
Example:
|
inline |
Use dialog to get numeric new password with one text string shown everywhere and cancel return field.
[in] | heading | Dialog heading |
[in] | text | Multi-line text |
[out] | canceled | Return value about cancel button |
[in] | noLabel | [opt] label to put on the no button |
[in] | yesLabel | [opt] label to put on the yes button |
Example: