pyside6_qtwebenginewidgets_python.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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_QTWEBENGINEWIDGETS_PYTHON_H
  4. #define SBK_QTWEBENGINEWIDGETS_PYTHON_H
  5. #include <sbkpython.h>
  6. #include <sbkmodule.h>
  7. #include <sbkconverter.h>
  8. // Module Includes
  9. #include <pyside6_qtcore_python.h>
  10. #include <pyside6_qtgui_python.h>
  11. #include <pyside6_qtwidgets_python.h>
  12. #include <pyside6_qtnetwork_python.h>
  13. #include <pyside6_qtwebenginecore_python.h>
  14. #include <pyside6_qtprintsupport_python.h>
  15. #include <pyside6_qtwebchannel_python.h>
  16. // Bound library includes
  17. QT_BEGIN_NAMESPACE
  18. class QWebEngineView;
  19. QT_END_NAMESPACE
  20. // Type indices
  21. enum [[deprecated]] : int {
  22. SBK_QWEBENGINEVIEW_IDX = 0,
  23. SBK_QTWEBENGINEWIDGETS_IDX_COUNT = 2,
  24. };
  25. // Type indices
  26. enum : int {
  27. SBK_QWebEngineView_IDX = 0,
  28. SBK_QtWebEngineWidgets_IDX_COUNT = 1,
  29. };
  30. // This variable stores all Python types exported by this module.
  31. extern Shiboken::Module::TypeInitStruct *SbkPySide6_QtWebEngineWidgetsTypeStructs;
  32. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  33. [[deprecated]] extern PyTypeObject **SbkPySide6_QtWebEngineWidgetsTypes;
  34. // This variable stores the Python module object exported by this module.
  35. extern PyObject *SbkPySide6_QtWebEngineWidgetsModuleObject;
  36. // This variable stores all type converters exported by this module.
  37. extern SbkConverter **SbkPySide6_QtWebEngineWidgetsTypeConverters;
  38. // Converter indices
  39. enum [[deprecated]] : int {
  40. SBK_QTWEBENGINEWIDGETS_QLIST_INT_IDX = 0, // QList<int>
  41. SBK_QTWEBENGINEWIDGETS_QLIST_QVARIANT_IDX = 1, // QList<QVariant>
  42. SBK_QTWEBENGINEWIDGETS_QLIST_QSTRING_IDX = 2, // QList<QString>
  43. SBK_QTWEBENGINEWIDGETS_QMAP_QSTRING_QVARIANT_IDX = 3, // QMap<QString,QVariant>
  44. SBK_QTWEBENGINEWIDGETS_CONVERTERS_IDX_COUNT = 4,
  45. };
  46. // Converter indices
  47. enum : int {
  48. SBK_QtWebEngineWidgets_QList_int_IDX = 0, // QList<int>
  49. SBK_QtWebEngineWidgets_QList_QVariant_IDX = 1, // QList<QVariant>
  50. SBK_QtWebEngineWidgets_QList_QString_IDX = 2, // QList<QString>
  51. SBK_QtWebEngineWidgets_QMap_QString_QVariant_IDX = 3, // QMap<QString,QVariant>
  52. SBK_QtWebEngineWidgets_CONVERTERS_IDX_COUNT = 4,
  53. };
  54. // Macros for type check
  55. QT_WARNING_PUSH
  56. QT_WARNING_DISABLE_DEPRECATED
  57. namespace Shiboken
  58. {
  59. // PyType functions, to get the PyObjectType for a type T
  60. template<> inline PyTypeObject *SbkType< ::QWebEngineView >() { return Shiboken::Module::get(SbkPySide6_QtWebEngineWidgetsTypeStructs[SBK_QWebEngineView_IDX]); }
  61. } // namespace Shiboken
  62. QT_WARNING_POP
  63. #endif // SBK_QTWEBENGINEWIDGETS_PYTHON_H