diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 18:07:22 +0000 |
commit | c04dcc2e7d834218ef2d4194331e383402495ae1 (patch) | |
tree | 7333e38d10d75386e60f336b80c2443c1166031d /xbmc/interfaces/legacy/ModuleXbmcgui.h | |
parent | Initial commit. (diff) | |
download | kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.tar.xz kodi-c04dcc2e7d834218ef2d4194331e383402495ae1.zip |
Adding upstream version 2:20.4+dfsg.upstream/2%20.4+dfsg
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'xbmc/interfaces/legacy/ModuleXbmcgui.h')
-rw-r--r-- | xbmc/interfaces/legacy/ModuleXbmcgui.h | 149 |
1 files changed, 149 insertions, 0 deletions
diff --git a/xbmc/interfaces/legacy/ModuleXbmcgui.h b/xbmc/interfaces/legacy/ModuleXbmcgui.h new file mode 100644 index 0000000..d2d9558 --- /dev/null +++ b/xbmc/interfaces/legacy/ModuleXbmcgui.h @@ -0,0 +1,149 @@ +/* + * 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/GUIEditControl.h" +#include "swighelper.h" + +#ifndef DOXYGEN_SHOULD_SKIP_THIS +namespace XBMCAddon +{ + namespace xbmcgui + { +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ + + // + /// \defgroup python_xbmcgui Library - xbmcgui + /// @{ + /// @brief **GUI functions on Kodi.** + /// + /// Offers classes and functions that manipulate the Graphical User + /// Interface through windows, dialogs, and various control widgets. + // + +#ifdef DOXYGEN_SHOULD_USE_THIS + /// + /// \ingroup python_xbmcgui + /// @brief \python_func{ xbmcgui.getCurrentWindowId() } + /// Returns the id for the current 'active' window as an integer. + /// + /// @return The currently active window Id + /// + /// + ///-------------------------------------------------------------------------- + /// + /// **Example:** + /// ~~~~~~~~~~~~~{.py} + /// .. + /// wid = xbmcgui.getCurrentWindowId() + /// .. + /// ~~~~~~~~~~~~~ + /// + getCurrentWindowId(); +#else + long getCurrentWindowId(); +#endif + +#ifdef DOXYGEN_SHOULD_USE_THIS + /// + /// \ingroup python_xbmcgui + /// @brief \python_func{ xbmcgui.getCurrentWindowDialogId() } + /// Returns the id for the current 'active' dialog as an integer. + /// + /// @return The currently active dialog Id + /// + /// + ///-------------------------------------------------------------------------- + /// + /// **Example:** + /// ~~~~~~~~~~~~~{.py} + /// .. + /// wid = xbmcgui.getCurrentWindowDialogId() + /// .. + /// ~~~~~~~~~~~~~ + /// + getCurrentWindowDialogId(); +#else + long getCurrentWindowDialogId(); +#endif + +#ifdef DOXYGEN_SHOULD_USE_THIS + /// + /// \ingroup python_xbmcgui + /// @brief \python_func{ getScreenHeight() } + /// Returns the height of this screen. + /// + /// @return Screen height + /// + /// + ///------------------------------------------------------------------------- + /// @python_v18 New function added. + /// + getScreenHeight(); +#else + long getScreenHeight(); +#endif + +#ifdef DOXYGEN_SHOULD_USE_THIS + /// + /// \ingroup python_xbmcgui + /// @brief \python_func{ getScreenWidth() } + /// Returns the width of this screen. + /// + /// @return Screen width + /// + /// + ///------------------------------------------------------------------------- + /// @python_v18 New function added. + /// + getScreenWidth(); +#else + long getScreenWidth(); +#endif + ///@} + +#ifndef DOXYGEN_SHOULD_SKIP_THIS + SWIG_CONSTANT2(int, ICON_OVERLAY_NONE, CGUIListItem::ICON_OVERLAY_NONE); + SWIG_CONSTANT2(int, ICON_OVERLAY_RAR, CGUIListItem::ICON_OVERLAY_RAR); + SWIG_CONSTANT2(int, ICON_OVERLAY_ZIP, CGUIListItem::ICON_OVERLAY_ZIP); + SWIG_CONSTANT2(int, ICON_OVERLAY_LOCKED, CGUIListItem::ICON_OVERLAY_LOCKED); + SWIG_CONSTANT2(int, ICON_OVERLAY_UNWATCHED, CGUIListItem::ICON_OVERLAY_UNWATCHED); + SWIG_CONSTANT2(int, ICON_OVERLAY_WATCHED, CGUIListItem::ICON_OVERLAY_WATCHED); + SWIG_CONSTANT2(int, ICON_OVERLAY_HD, CGUIListItem::ICON_OVERLAY_HD); + + SWIG_CONSTANT2(int, INPUT_TYPE_TEXT, CGUIEditControl::INPUT_TYPE_TEXT); + SWIG_CONSTANT2(int, INPUT_TYPE_NUMBER, CGUIEditControl::INPUT_TYPE_NUMBER); + SWIG_CONSTANT2(int, INPUT_TYPE_DATE, CGUIEditControl::INPUT_TYPE_DATE); + SWIG_CONSTANT2(int, INPUT_TYPE_TIME, CGUIEditControl::INPUT_TYPE_TIME); + SWIG_CONSTANT2(int, INPUT_TYPE_IPADDRESS, CGUIEditControl::INPUT_TYPE_IPADDRESS); + SWIG_CONSTANT2(int, INPUT_TYPE_PASSWORD, CGUIEditControl::INPUT_TYPE_PASSWORD); + SWIG_CONSTANT2(int, INPUT_TYPE_PASSWORD_MD5, CGUIEditControl::INPUT_TYPE_PASSWORD_MD5); + SWIG_CONSTANT2(int, INPUT_TYPE_SECONDS, CGUIEditControl::INPUT_TYPE_SECONDS); + SWIG_CONSTANT2(int, INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW, CGUIEditControl::INPUT_TYPE_PASSWORD_NUMBER_VERIFY_NEW); + + SWIG_CONSTANT_FROM_GETTER(const char*, NOTIFICATION_INFO); + SWIG_CONSTANT_FROM_GETTER(const char*, NOTIFICATION_WARNING); + SWIG_CONSTANT_FROM_GETTER(const char*, NOTIFICATION_ERROR); + + SWIG_CONSTANT(int, INPUT_ALPHANUM); + SWIG_CONSTANT(int, INPUT_NUMERIC); + SWIG_CONSTANT(int, INPUT_DATE); + SWIG_CONSTANT(int, INPUT_TIME); + SWIG_CONSTANT(int, INPUT_IPADDRESS); + SWIG_CONSTANT(int, INPUT_PASSWORD); + + SWIG_CONSTANT(int, HORIZONTAL); + SWIG_CONSTANT(int, VERTICAL); + + SWIG_CONSTANT(int, PASSWORD_VERIFY); + SWIG_CONSTANT(int, ALPHANUM_HIDE_INPUT); + + } +} +#endif /* DOXYGEN_SHOULD_SKIP_THIS */ |