pyside6_qt3dinput_python.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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_QT3DINPUT_PYTHON_H
  4. #define SBK_QT3DINPUT_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 <Qt3DInput/qabstractactioninput.h>
  14. #include <Qt3DInput/qaxisaccumulator.h>
  15. #include <Qt3DInput/qmousedevice.h>
  16. #include <Qt3DInput/qmouseevent.h>
  17. QT_BEGIN_NAMESPACE
  18. namespace Qt3DInput {
  19. class QAbstractActionInput;
  20. class QAbstractAxisInput;
  21. class QAbstractPhysicalDevice;
  22. class QAction;
  23. class QActionInput;
  24. class QAnalogAxisInput;
  25. class QAxis;
  26. class QAxisSetting;
  27. class QButtonAxisInput;
  28. class QInputAspect;
  29. class QInputChord;
  30. class QInputSequence;
  31. class QInputSettings;
  32. class QKeyEvent;
  33. class QKeyboardDevice;
  34. class QKeyboardHandler;
  35. class QLogicalDevice;
  36. class QMouseHandler;
  37. }
  38. QT_END_NAMESPACE
  39. // Type indices
  40. enum [[deprecated]] : int {
  41. SBK_QT3DINPUTQT3DINPUT_IDX = 0,
  42. SBK_QT3DINPUT_QABSTRACTACTIONINPUT_IDX = 2,
  43. SBK_QT3DINPUT_QABSTRACTAXISINPUT_IDX = 4,
  44. SBK_QT3DINPUT_QABSTRACTPHYSICALDEVICE_IDX = 6,
  45. SBK_QT3DINPUT_QACTION_IDX = 8,
  46. SBK_QT3DINPUT_QACTIONINPUT_IDX = 10,
  47. SBK_QT3DINPUT_QANALOGAXISINPUT_IDX = 12,
  48. SBK_QT3DINPUT_QAXIS_IDX = 14,
  49. SBK_QT3DINPUT_QAXISACCUMULATOR_SOURCEAXISTYPE_IDX = 18,
  50. SBK_QT3DINPUT_QAXISACCUMULATOR_IDX = 16,
  51. SBK_QT3DINPUT_QAXISSETTING_IDX = 20,
  52. SBK_QT3DINPUT_QBUTTONAXISINPUT_IDX = 22,
  53. SBK_QT3DINPUT_QINPUTASPECT_IDX = 24,
  54. SBK_QT3DINPUT_QINPUTCHORD_IDX = 26,
  55. SBK_QT3DINPUT_QINPUTSEQUENCE_IDX = 28,
  56. SBK_QT3DINPUT_QINPUTSETTINGS_IDX = 30,
  57. SBK_QT3DINPUT_QKEYEVENT_IDX = 32,
  58. SBK_QT3DINPUT_QKEYBOARDDEVICE_IDX = 34,
  59. SBK_QT3DINPUT_QKEYBOARDHANDLER_IDX = 36,
  60. SBK_QT3DINPUT_QLOGICALDEVICE_IDX = 38,
  61. SBK_QT3DINPUT_QMOUSEDEVICE_AXIS_IDX = 42,
  62. SBK_QT3DINPUT_QMOUSEDEVICE_IDX = 40,
  63. SBK_QT3DINPUT_QMOUSEEVENT_BUTTONS_IDX = 46,
  64. SBK_QT3DINPUT_QMOUSEEVENT_MODIFIERS_IDX = 48,
  65. SBK_QT3DINPUT_QMOUSEEVENT_IDX = 44,
  66. SBK_QT3DINPUT_QMOUSEHANDLER_IDX = 50,
  67. SBK_QT3DINPUT_QWHEELEVENT_BUTTONS_IDX = 54,
  68. SBK_QT3DINPUT_QWHEELEVENT_MODIFIERS_IDX = 56,
  69. SBK_QT3DINPUT_QWHEELEVENT_IDX = 52,
  70. SBK_QT3DINPUT_IDX_COUNT = 58,
  71. };
  72. // Type indices
  73. enum : int {
  74. SBK_Qt3DInputQt3DInput_IDX = 0,
  75. SBK_Qt3DInput_QAbstractActionInput_IDX = 1,
  76. SBK_Qt3DInput_QAbstractAxisInput_IDX = 2,
  77. SBK_Qt3DInput_QAbstractPhysicalDevice_IDX = 3,
  78. SBK_Qt3DInput_QAction_IDX = 4,
  79. SBK_Qt3DInput_QActionInput_IDX = 5,
  80. SBK_Qt3DInput_QAnalogAxisInput_IDX = 6,
  81. SBK_Qt3DInput_QAxis_IDX = 7,
  82. SBK_Qt3DInput_QAxisAccumulator_SourceAxisType_IDX = 9,
  83. SBK_Qt3DInput_QAxisAccumulator_IDX = 8,
  84. SBK_Qt3DInput_QAxisSetting_IDX = 10,
  85. SBK_Qt3DInput_QButtonAxisInput_IDX = 11,
  86. SBK_Qt3DInput_QInputAspect_IDX = 12,
  87. SBK_Qt3DInput_QInputChord_IDX = 13,
  88. SBK_Qt3DInput_QInputSequence_IDX = 14,
  89. SBK_Qt3DInput_QInputSettings_IDX = 15,
  90. SBK_Qt3DInput_QKeyEvent_IDX = 16,
  91. SBK_Qt3DInput_QKeyboardDevice_IDX = 17,
  92. SBK_Qt3DInput_QKeyboardHandler_IDX = 18,
  93. SBK_Qt3DInput_QLogicalDevice_IDX = 19,
  94. SBK_Qt3DInput_QMouseDevice_Axis_IDX = 21,
  95. SBK_Qt3DInput_QMouseDevice_IDX = 20,
  96. SBK_Qt3DInput_QMouseEvent_Buttons_IDX = 23,
  97. SBK_Qt3DInput_QMouseEvent_Modifiers_IDX = 24,
  98. SBK_Qt3DInput_QMouseEvent_IDX = 22,
  99. SBK_Qt3DInput_QMouseHandler_IDX = 25,
  100. SBK_Qt3DInput_QWheelEvent_Buttons_IDX = 27,
  101. SBK_Qt3DInput_QWheelEvent_Modifiers_IDX = 28,
  102. SBK_Qt3DInput_QWheelEvent_IDX = 26,
  103. SBK_Qt3DInput_IDX_COUNT = 29,
  104. };
  105. // This variable stores all Python types exported by this module.
  106. extern Shiboken::Module::TypeInitStruct *SbkPySide6_Qt3DInputTypeStructs;
  107. // This variable stores all Python types exported by this module in a backwards compatible way with identical indexing.
  108. [[deprecated]] extern PyTypeObject **SbkPySide6_Qt3DInputTypes;
  109. // This variable stores the Python module object exported by this module.
  110. extern PyObject *SbkPySide6_Qt3DInputModuleObject;
  111. // This variable stores all type converters exported by this module.
  112. extern SbkConverter **SbkPySide6_Qt3DInputTypeConverters;
  113. // Converter indices
  114. enum [[deprecated]] : int {
  115. SBK_QT3DINPUT_QLIST_INT_IDX = 0, // QList<int>
  116. SBK_QT3DINPUT_QLIST_QT3DINPUT_QABSTRACTACTIONINPUTPTR_IDX = 1, // QList<Qt3DInput::QAbstractActionInput*>
  117. SBK_QT3DINPUT_QLIST_QT3DINPUT_QAXISSETTINGPTR_IDX = 2, // QList<Qt3DInput::QAxisSetting*>
  118. SBK_QT3DINPUT_QLIST_QT3DINPUT_QABSTRACTAXISINPUTPTR_IDX = 3, // QList<Qt3DInput::QAbstractAxisInput*>
  119. SBK_QT3DINPUT_STD_VECTOR_QSHAREDPOINTER_QT3DCORE_QASPECTJOB_IDX = 4, // std::vector<QSharedPointer<Qt3DCore::QAspectJob>>
  120. SBK_QT3DINPUT_QLIST_QT3DINPUT_QACTIONPTR_IDX = 5, // QList<Qt3DInput::QAction*>
  121. SBK_QT3DINPUT_QLIST_QT3DINPUT_QAXISPTR_IDX = 6, // QList<Qt3DInput::QAxis*>
  122. SBK_QT3DINPUT_QLIST_QVARIANT_IDX = 7, // QList<QVariant>
  123. SBK_QT3DINPUT_QLIST_QSTRING_IDX = 8, // QList<QString>
  124. SBK_QT3DINPUT_QMAP_QSTRING_QVARIANT_IDX = 9, // QMap<QString,QVariant>
  125. SBK_QT3DINPUT_CONVERTERS_IDX_COUNT = 10,
  126. };
  127. // Converter indices
  128. enum : int {
  129. SBK_Qt3DInput_QList_int_IDX = 0, // QList<int>
  130. SBK_Qt3DInput_QList_Qt3DInput_QAbstractActionInputPTR_IDX = 1, // QList<Qt3DInput::QAbstractActionInput*>
  131. SBK_Qt3DInput_QList_Qt3DInput_QAxisSettingPTR_IDX = 2, // QList<Qt3DInput::QAxisSetting*>
  132. SBK_Qt3DInput_QList_Qt3DInput_QAbstractAxisInputPTR_IDX = 3, // QList<Qt3DInput::QAbstractAxisInput*>
  133. SBK_Qt3DInput_std_vector_QSharedPointer_Qt3DCore_QAspectJob_IDX = 4, // std::vector<QSharedPointer<Qt3DCore::QAspectJob>>
  134. SBK_Qt3DInput_QList_Qt3DInput_QActionPTR_IDX = 5, // QList<Qt3DInput::QAction*>
  135. SBK_Qt3DInput_QList_Qt3DInput_QAxisPTR_IDX = 6, // QList<Qt3DInput::QAxis*>
  136. SBK_Qt3DInput_QList_QVariant_IDX = 7, // QList<QVariant>
  137. SBK_Qt3DInput_QList_QString_IDX = 8, // QList<QString>
  138. SBK_Qt3DInput_QMap_QString_QVariant_IDX = 9, // QMap<QString,QVariant>
  139. SBK_Qt3DInput_CONVERTERS_IDX_COUNT = 10,
  140. };
  141. // Macros for type check
  142. QT_WARNING_PUSH
  143. QT_WARNING_DISABLE_DEPRECATED
  144. namespace Shiboken
  145. {
  146. // PyType functions, to get the PyObjectType for a type T
  147. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAbstractActionInput >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAbstractActionInput_IDX]); }
  148. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAbstractAxisInput >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAbstractAxisInput_IDX]); }
  149. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAbstractPhysicalDevice >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAbstractPhysicalDevice_IDX]); }
  150. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAction >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAction_IDX]); }
  151. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QActionInput >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QActionInput_IDX]); }
  152. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAnalogAxisInput >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAnalogAxisInput_IDX]); }
  153. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAxis >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAxis_IDX]); }
  154. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAxisAccumulator::SourceAxisType >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAxisAccumulator_SourceAxisType_IDX]); }
  155. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAxisAccumulator >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAxisAccumulator_IDX]); }
  156. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QAxisSetting >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QAxisSetting_IDX]); }
  157. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QButtonAxisInput >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QButtonAxisInput_IDX]); }
  158. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QInputAspect >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QInputAspect_IDX]); }
  159. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QInputChord >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QInputChord_IDX]); }
  160. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QInputSequence >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QInputSequence_IDX]); }
  161. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QInputSettings >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QInputSettings_IDX]); }
  162. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QKeyEvent >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QKeyEvent_IDX]); }
  163. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QKeyboardDevice >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QKeyboardDevice_IDX]); }
  164. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QKeyboardHandler >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QKeyboardHandler_IDX]); }
  165. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QLogicalDevice >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QLogicalDevice_IDX]); }
  166. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseDevice::Axis >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseDevice_Axis_IDX]); }
  167. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseDevice >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseDevice_IDX]); }
  168. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseEvent::Buttons >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseEvent_Buttons_IDX]); }
  169. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseEvent::Modifiers >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseEvent_Modifiers_IDX]); }
  170. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseEvent >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseEvent_IDX]); }
  171. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QMouseHandler >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QMouseHandler_IDX]); }
  172. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QWheelEvent::Buttons >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QWheelEvent_Buttons_IDX]); }
  173. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QWheelEvent::Modifiers >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QWheelEvent_Modifiers_IDX]); }
  174. template<> inline PyTypeObject *SbkType< ::Qt3DInput::QWheelEvent >() { return Shiboken::Module::get(SbkPySide6_Qt3DInputTypeStructs[SBK_Qt3DInput_QWheelEvent_IDX]); }
  175. } // namespace Shiboken
  176. QT_WARNING_POP
  177. #endif // SBK_QT3DINPUT_PYTHON_H