pyside6_qtsvgwidgets_python.h 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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_QTSVGWIDGETS_PYTHON_H
  4. #define SBK_QTSVGWIDGETS_PYTHON_H
  5. #include <sbkpython.h>
  6. #include <sbkmodule.h>
  7. #include <sbkconverter.h>
  8. // Module Includes
  9. #include <pyside6_qtsvg_python.h>
  10. #include <pyside6_qtgui_python.h>
  11. #include <pyside6_qtcore_python.h>
  12. #include <pyside6_qtwidgets_python.h>
  13. // Bound library includes
  14. QT_BEGIN_NAMESPACE
  15. class QGraphicsSvgItem;
  16. class QSvgWidget;
  17. QT_END_NAMESPACE
  18. // Type indices
  19. enum [[deprecated]] : int {
  20. SBK_QGRAPHICSSVGITEM_IDX = 0,
  21. SBK_QSVGWIDGET_IDX = 2,
  22. SBK_QTSVGWIDGETS_IDX_COUNT = 4,
  23. };
  24. // Type indices
  25. enum : int {
  26. SBK_QGraphicsSvgItem_IDX = 0,
  27. SBK_QSvgWidget_IDX = 1,
  28. SBK_QtSvgWidgets_IDX_COUNT = 2,
  29. };
  30. // This variable stores all Python types exported by this module.
  31. extern Shiboken::Module::TypeInitStruct *SbkPySide6_QtSvgWidgetsTypeStructs;
  32. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  33. [[deprecated]] extern PyTypeObject **SbkPySide6_QtSvgWidgetsTypes;
  34. // This variable stores the Python module object exported by this module.
  35. extern PyObject *SbkPySide6_QtSvgWidgetsModuleObject;
  36. // This variable stores all type converters exported by this module.
  37. extern SbkConverter **SbkPySide6_QtSvgWidgetsTypeConverters;
  38. // Converter indices
  39. enum [[deprecated]] : int {
  40. SBK_QTSVGWIDGETS_QLIST_INT_IDX = 0, // QList<int>
  41. SBK_QTSVGWIDGETS_QLIST_QVARIANT_IDX = 1, // QList<QVariant>
  42. SBK_QTSVGWIDGETS_QLIST_QSTRING_IDX = 2, // QList<QString>
  43. SBK_QTSVGWIDGETS_QMAP_QSTRING_QVARIANT_IDX = 3, // QMap<QString,QVariant>
  44. SBK_QTSVGWIDGETS_CONVERTERS_IDX_COUNT = 4,
  45. };
  46. // Converter indices
  47. enum : int {
  48. SBK_QtSvgWidgets_QList_int_IDX = 0, // QList<int>
  49. SBK_QtSvgWidgets_QList_QVariant_IDX = 1, // QList<QVariant>
  50. SBK_QtSvgWidgets_QList_QString_IDX = 2, // QList<QString>
  51. SBK_QtSvgWidgets_QMap_QString_QVariant_IDX = 3, // QMap<QString,QVariant>
  52. SBK_QtSvgWidgets_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< ::QGraphicsSvgItem >() { return Shiboken::Module::get(SbkPySide6_QtSvgWidgetsTypeStructs[SBK_QGraphicsSvgItem_IDX]); }
  61. template<> inline PyTypeObject *SbkType< ::QSvgWidget >() { return Shiboken::Module::get(SbkPySide6_QtSvgWidgetsTypeStructs[SBK_QSvgWidget_IDX]); }
  62. } // namespace Shiboken
  63. QT_WARNING_POP
  64. #endif // SBK_QTSVGWIDGETS_PYTHON_H