pyside6_qtquickwidgets_python.h 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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_QTQUICKWIDGETS_PYTHON_H
  4. #define SBK_QTQUICKWIDGETS_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_qtquick_python.h>
  12. #include <pyside6_qtnetwork_python.h>
  13. #include <pyside6_qtopengl_python.h>
  14. #include <pyside6_qtqml_python.h>
  15. #include <pyside6_qtwidgets_python.h>
  16. // Bound library includes
  17. #include <QtQuickWidgets/qquickwidget.h>
  18. QT_BEGIN_NAMESPACE
  19. QT_END_NAMESPACE
  20. // Type indices
  21. enum [[deprecated]] : int {
  22. SBK_QQUICKWIDGET_RESIZEMODE_IDX = 2,
  23. SBK_QQUICKWIDGET_STATUS_IDX = 4,
  24. SBK_QQUICKWIDGET_IDX = 0,
  25. SBK_QTQUICKWIDGETS_IDX_COUNT = 6,
  26. };
  27. // Type indices
  28. enum : int {
  29. SBK_QQuickWidget_ResizeMode_IDX = 1,
  30. SBK_QQuickWidget_Status_IDX = 2,
  31. SBK_QQuickWidget_IDX = 0,
  32. SBK_QtQuickWidgets_IDX_COUNT = 3,
  33. };
  34. // This variable stores all Python types exported by this module.
  35. extern Shiboken::Module::TypeInitStruct *SbkPySide6_QtQuickWidgetsTypeStructs;
  36. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  37. [[deprecated]] extern PyTypeObject **SbkPySide6_QtQuickWidgetsTypes;
  38. // This variable stores the Python module object exported by this module.
  39. extern PyObject *SbkPySide6_QtQuickWidgetsModuleObject;
  40. // This variable stores all type converters exported by this module.
  41. extern SbkConverter **SbkPySide6_QtQuickWidgetsTypeConverters;
  42. // Converter indices
  43. enum [[deprecated]] : int {
  44. SBK_QTQUICKWIDGETS_QLIST_INT_IDX = 0, // QList<int>
  45. SBK_QTQUICKWIDGETS_QLIST_QQMLERROR_IDX = 1, // QList<QQmlError>
  46. SBK_QTQUICKWIDGETS_QMAP_QSTRING_QVARIANT_IDX = 2, // QMap<QString,QVariant>
  47. SBK_QTQUICKWIDGETS_QLIST_QVARIANT_IDX = 3, // QList<QVariant>
  48. SBK_QTQUICKWIDGETS_QLIST_QSTRING_IDX = 4, // QList<QString>
  49. SBK_QTQUICKWIDGETS_CONVERTERS_IDX_COUNT = 5,
  50. };
  51. // Converter indices
  52. enum : int {
  53. SBK_QtQuickWidgets_QList_int_IDX = 0, // QList<int>
  54. SBK_QtQuickWidgets_QList_QQmlError_IDX = 1, // QList<QQmlError>
  55. SBK_QtQuickWidgets_QMap_QString_QVariant_IDX = 2, // QMap<QString,QVariant>
  56. SBK_QtQuickWidgets_QList_QVariant_IDX = 3, // QList<QVariant>
  57. SBK_QtQuickWidgets_QList_QString_IDX = 4, // QList<QString>
  58. SBK_QtQuickWidgets_CONVERTERS_IDX_COUNT = 5,
  59. };
  60. // Macros for type check
  61. QT_WARNING_PUSH
  62. QT_WARNING_DISABLE_DEPRECATED
  63. namespace Shiboken
  64. {
  65. // PyType functions, to get the PyObjectType for a type T
  66. template<> inline PyTypeObject *SbkType< ::QQuickWidget::ResizeMode >() { return Shiboken::Module::get(SbkPySide6_QtQuickWidgetsTypeStructs[SBK_QQuickWidget_ResizeMode_IDX]); }
  67. template<> inline PyTypeObject *SbkType< ::QQuickWidget::Status >() { return Shiboken::Module::get(SbkPySide6_QtQuickWidgetsTypeStructs[SBK_QQuickWidget_Status_IDX]); }
  68. template<> inline PyTypeObject *SbkType< ::QQuickWidget >() { return Shiboken::Module::get(SbkPySide6_QtQuickWidgetsTypeStructs[SBK_QQuickWidget_IDX]); }
  69. } // namespace Shiboken
  70. QT_WARNING_POP
  71. #endif // SBK_QTQUICKWIDGETS_PYTHON_H