pyside6_qtmultimediawidgets_python.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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_QTMULTIMEDIAWIDGETS_PYTHON_H
  4. #define SBK_QTMULTIMEDIAWIDGETS_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_qtmultimedia_python.h>
  12. #include <pyside6_qtnetwork_python.h>
  13. #include <pyside6_qtwidgets_python.h>
  14. // Bound library includes
  15. QT_BEGIN_NAMESPACE
  16. class QGraphicsVideoItem;
  17. class QVideoWidget;
  18. QT_END_NAMESPACE
  19. // Type indices
  20. enum [[deprecated]] : int {
  21. SBK_QGRAPHICSVIDEOITEM_IDX = 0,
  22. SBK_QVIDEOWIDGET_IDX = 2,
  23. SBK_QTMULTIMEDIAWIDGETS_IDX_COUNT = 4,
  24. };
  25. // Type indices
  26. enum : int {
  27. SBK_QGraphicsVideoItem_IDX = 0,
  28. SBK_QVideoWidget_IDX = 1,
  29. SBK_QtMultimediaWidgets_IDX_COUNT = 2,
  30. };
  31. // This variable stores all Python types exported by this module.
  32. extern Shiboken::Module::TypeInitStruct *SbkPySide6_QtMultimediaWidgetsTypeStructs;
  33. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  34. [[deprecated]] extern PyTypeObject **SbkPySide6_QtMultimediaWidgetsTypes;
  35. // This variable stores the Python module object exported by this module.
  36. extern PyObject *SbkPySide6_QtMultimediaWidgetsModuleObject;
  37. // This variable stores all type converters exported by this module.
  38. extern SbkConverter **SbkPySide6_QtMultimediaWidgetsTypeConverters;
  39. // Converter indices
  40. enum [[deprecated]] : int {
  41. SBK_QTMULTIMEDIAWIDGETS_QLIST_INT_IDX = 0, // QList<int>
  42. SBK_QTMULTIMEDIAWIDGETS_QLIST_QVARIANT_IDX = 1, // QList<QVariant>
  43. SBK_QTMULTIMEDIAWIDGETS_QLIST_QSTRING_IDX = 2, // QList<QString>
  44. SBK_QTMULTIMEDIAWIDGETS_QMAP_QSTRING_QVARIANT_IDX = 3, // QMap<QString,QVariant>
  45. SBK_QTMULTIMEDIAWIDGETS_CONVERTERS_IDX_COUNT = 4,
  46. };
  47. // Converter indices
  48. enum : int {
  49. SBK_QtMultimediaWidgets_QList_int_IDX = 0, // QList<int>
  50. SBK_QtMultimediaWidgets_QList_QVariant_IDX = 1, // QList<QVariant>
  51. SBK_QtMultimediaWidgets_QList_QString_IDX = 2, // QList<QString>
  52. SBK_QtMultimediaWidgets_QMap_QString_QVariant_IDX = 3, // QMap<QString,QVariant>
  53. SBK_QtMultimediaWidgets_CONVERTERS_IDX_COUNT = 4,
  54. };
  55. // Macros for type check
  56. QT_WARNING_PUSH
  57. QT_WARNING_DISABLE_DEPRECATED
  58. namespace Shiboken
  59. {
  60. // PyType functions, to get the PyObjectType for a type T
  61. template<> inline PyTypeObject *SbkType< ::QGraphicsVideoItem >() { return Shiboken::Module::get(SbkPySide6_QtMultimediaWidgetsTypeStructs[SBK_QGraphicsVideoItem_IDX]); }
  62. template<> inline PyTypeObject *SbkType< ::QVideoWidget >() { return Shiboken::Module::get(SbkPySide6_QtMultimediaWidgetsTypeStructs[SBK_QVideoWidget_IDX]); }
  63. } // namespace Shiboken
  64. QT_WARNING_POP
  65. #endif // SBK_QTMULTIMEDIAWIDGETS_PYTHON_H