pyside6_qt3dlogic_python.h 3.4 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_QT3DLOGIC_PYTHON_H
  4. #define SBK_QT3DLOGIC_PYTHON_H
  5. #include <sbkpython.h>
  6. #include <sbkmodule.h>
  7. #include <sbkconverter.h>
  8. // Module Includes
  9. #include <pyside6_qt3dcore_python.h>
  10. #include <pyside6_qtgui_python.h>
  11. #include <pyside6_qtcore_python.h>
  12. // Bound library includes
  13. #include <Qt3DLogic/qframeaction.h>
  14. QT_BEGIN_NAMESPACE
  15. namespace Qt3DLogic {
  16. class QFrameAction;
  17. class QLogicAspect;
  18. }
  19. QT_END_NAMESPACE
  20. // Type indices
  21. enum [[deprecated]] : int {
  22. SBK_QT3DLOGICQT3DLOGIC_IDX = 0,
  23. SBK_QT3DLOGIC_QFRAMEACTION_IDX = 2,
  24. SBK_QT3DLOGIC_QLOGICASPECT_IDX = 4,
  25. SBK_QT3DLOGIC_IDX_COUNT = 6,
  26. };
  27. // Type indices
  28. enum : int {
  29. SBK_Qt3DLogicQt3DLogic_IDX = 0,
  30. SBK_Qt3DLogic_QFrameAction_IDX = 1,
  31. SBK_Qt3DLogic_QLogicAspect_IDX = 2,
  32. SBK_Qt3DLogic_IDX_COUNT = 3,
  33. };
  34. // This variable stores all Python types exported by this module.
  35. extern Shiboken::Module::TypeInitStruct *SbkPySide6_Qt3DLogicTypeStructs;
  36. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  37. [[deprecated]] extern PyTypeObject **SbkPySide6_Qt3DLogicTypes;
  38. // This variable stores the Python module object exported by this module.
  39. extern PyObject *SbkPySide6_Qt3DLogicModuleObject;
  40. // This variable stores all type converters exported by this module.
  41. extern SbkConverter **SbkPySide6_Qt3DLogicTypeConverters;
  42. // Converter indices
  43. enum [[deprecated]] : int {
  44. SBK_QT3DLOGIC_QLIST_INT_IDX = 0, // QList<int>
  45. SBK_QT3DLOGIC_STD_VECTOR_QSHAREDPOINTER_QT3DCORE_QASPECTJOB_IDX = 1, // std::vector<QSharedPointer<Qt3DCore::QAspectJob>>
  46. SBK_QT3DLOGIC_QLIST_QVARIANT_IDX = 2, // QList<QVariant>
  47. SBK_QT3DLOGIC_QLIST_QSTRING_IDX = 3, // QList<QString>
  48. SBK_QT3DLOGIC_QMAP_QSTRING_QVARIANT_IDX = 4, // QMap<QString,QVariant>
  49. SBK_QT3DLOGIC_CONVERTERS_IDX_COUNT = 5,
  50. };
  51. // Converter indices
  52. enum : int {
  53. SBK_Qt3DLogic_QList_int_IDX = 0, // QList<int>
  54. SBK_Qt3DLogic_std_vector_QSharedPointer_Qt3DCore_QAspectJob_IDX = 1, // std::vector<QSharedPointer<Qt3DCore::QAspectJob>>
  55. SBK_Qt3DLogic_QList_QVariant_IDX = 2, // QList<QVariant>
  56. SBK_Qt3DLogic_QList_QString_IDX = 3, // QList<QString>
  57. SBK_Qt3DLogic_QMap_QString_QVariant_IDX = 4, // QMap<QString,QVariant>
  58. SBK_Qt3DLogic_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< ::Qt3DLogic::QFrameAction >() { return Shiboken::Module::get(SbkPySide6_Qt3DLogicTypeStructs[SBK_Qt3DLogic_QFrameAction_IDX]); }
  67. template<> inline PyTypeObject *SbkType< ::Qt3DLogic::QLogicAspect >() { return Shiboken::Module::get(SbkPySide6_Qt3DLogicTypeStructs[SBK_Qt3DLogic_QLogicAspect_IDX]); }
  68. } // namespace Shiboken
  69. QT_WARNING_POP
  70. #endif // SBK_QT3DLOGIC_PYTHON_H