pyside6_qtwebview_python.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // Copyright (C) 2022 The Qt Company Ltd.
  2. // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
  3. #ifndef SBK_QTWEBVIEW_PYTHON_H
  4. #define SBK_QTWEBVIEW_PYTHON_H
  5. #include <sbkpython.h>
  6. #include <sbkmodule.h>
  7. #include <sbkconverter.h>
  8. // Module Includes
  9. #include <pyside6_qtcore_python.h>
  10. // Bound library includes
  11. #include <QtWebView/qtwebviewfunctions.h>
  12. QT_BEGIN_NAMESPACE
  13. QT_END_NAMESPACE
  14. // Type indices
  15. enum [[deprecated]] : int {
  16. SBK_QTWEBVIEWQTWEBVIEW_IDX = 0,
  17. SBK_QTWEBVIEW_IDX_COUNT = 2,
  18. };
  19. // Type indices
  20. enum : int {
  21. SBK_QtWebViewQtWebView_IDX = 0,
  22. SBK_QtWebView_IDX_COUNT = 1,
  23. };
  24. // This variable stores all Python types exported by this module.
  25. extern Shiboken::Module::TypeInitStruct *SbkPySide6_QtWebViewTypeStructs;
  26. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  27. [[deprecated]] extern PyTypeObject **SbkPySide6_QtWebViewTypes;
  28. // This variable stores the Python module object exported by this module.
  29. extern PyObject *SbkPySide6_QtWebViewModuleObject;
  30. // This variable stores all type converters exported by this module.
  31. extern SbkConverter **SbkPySide6_QtWebViewTypeConverters;
  32. // Converter indices
  33. enum [[deprecated]] : int {
  34. SBK_QTWEBVIEW_QLIST_INT_IDX = 0, // QList<int>
  35. SBK_QTWEBVIEW_QLIST_QVARIANT_IDX = 1, // QList<QVariant>
  36. SBK_QTWEBVIEW_QLIST_QSTRING_IDX = 2, // QList<QString>
  37. SBK_QTWEBVIEW_QMAP_QSTRING_QVARIANT_IDX = 3, // QMap<QString,QVariant>
  38. SBK_QTWEBVIEW_CONVERTERS_IDX_COUNT = 4,
  39. };
  40. // Converter indices
  41. enum : int {
  42. SBK_QtWebView_QList_int_IDX = 0, // QList<int>
  43. SBK_QtWebView_QList_QVariant_IDX = 1, // QList<QVariant>
  44. SBK_QtWebView_QList_QString_IDX = 2, // QList<QString>
  45. SBK_QtWebView_QMap_QString_QVariant_IDX = 3, // QMap<QString,QVariant>
  46. SBK_QtWebView_CONVERTERS_IDX_COUNT = 4,
  47. };
  48. // Macros for type check
  49. #endif // SBK_QTWEBVIEW_PYTHON_H