QtQuick3D.pyi 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290
  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. """
  4. This file contains the exact signatures for all functions in module
  5. PySide6.QtQuick3D, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtQuick3D`
  9. import PySide6.QtQuick3D
  10. import PySide6.QtCore
  11. import PySide6.QtGui
  12. import PySide6.QtQml
  13. import enum
  14. import typing
  15. from PySide6.QtCore import Signal
  16. from shiboken6 import Shiboken
  17. class QIntList: ...
  18. class QQuick3D(Shiboken.Object):
  19. def __init__(self, /) -> None: ...
  20. @staticmethod
  21. def idealSurfaceFormat(samples: int = ...) -> PySide6.QtGui.QSurfaceFormat: ...
  22. class QQuick3DGeometry(PySide6.QtQuick3D.QQuick3DObject):
  23. geometryChanged : typing.ClassVar[Signal] = ... # geometryChanged()
  24. geometryNodeDirty : typing.ClassVar[Signal] = ... # geometryNodeDirty()
  25. class Attribute(Shiboken.Object):
  26. class ComponentType(enum.Enum):
  27. U16Type = 0x0
  28. U32Type = 0x1
  29. I32Type = 0x2
  30. F32Type = 0x3
  31. class Semantic(enum.Enum):
  32. IndexSemantic = 0x0
  33. PositionSemantic = 0x1
  34. NormalSemantic = 0x2
  35. TexCoord0Semantic = 0x3
  36. TexCoordSemantic = 0x3
  37. TangentSemantic = 0x4
  38. BinormalSemantic = 0x5
  39. JointSemantic = 0x6
  40. WeightSemantic = 0x7
  41. ColorSemantic = 0x8
  42. TargetPositionSemantic = 0x9
  43. TargetNormalSemantic = 0xa
  44. TargetTangentSemantic = 0xb
  45. TargetBinormalSemantic = 0xc
  46. TexCoord1Semantic = 0xd
  47. @typing.overload
  48. def __init__(self, /) -> None: ...
  49. @typing.overload
  50. def __init__(self, Attribute: PySide6.QtQuick3D.QQuick3DGeometry.Attribute, /) -> None: ...
  51. def __copy__(self, /) -> typing.Self: ...
  52. class PrimitiveType(enum.Enum):
  53. Points = 0x0
  54. LineStrip = 0x1
  55. Lines = 0x2
  56. TriangleStrip = 0x3
  57. TriangleFan = 0x4
  58. Triangles = 0x5
  59. class TargetAttribute(Shiboken.Object):
  60. @typing.overload
  61. def __init__(self, /) -> None: ...
  62. @typing.overload
  63. def __init__(self, TargetAttribute: PySide6.QtQuick3D.QQuick3DGeometry.TargetAttribute, /) -> None: ...
  64. def __copy__(self, /) -> typing.Self: ...
  65. def __init__(self, /, parent: PySide6.QtQuick3D.QQuick3DObject | None = ...) -> None: ...
  66. @typing.overload
  67. def addAttribute(self, att: PySide6.QtQuick3D.QQuick3DGeometry.Attribute, /) -> None: ...
  68. @typing.overload
  69. def addAttribute(self, semantic: PySide6.QtQuick3D.QQuick3DGeometry.Attribute.Semantic, offset: int, componentType: PySide6.QtQuick3D.QQuick3DGeometry.Attribute.ComponentType, /) -> None: ...
  70. def addSubset(self, offset: int, count: int, boundsMin: PySide6.QtGui.QVector3D, boundsMax: PySide6.QtGui.QVector3D, /, name: str = ...) -> None: ...
  71. @typing.overload
  72. def addTargetAttribute(self, att: PySide6.QtQuick3D.QQuick3DGeometry.TargetAttribute, /) -> None: ...
  73. @typing.overload
  74. def addTargetAttribute(self, targetId: int, semantic: PySide6.QtQuick3D.QQuick3DGeometry.Attribute.Semantic, offset: int, /, stride: int | None = ...) -> None: ...
  75. def attribute(self, index: int, /) -> PySide6.QtQuick3D.QQuick3DGeometry.Attribute: ...
  76. def attributeCount(self, /) -> int: ...
  77. def boundsMax(self, /) -> PySide6.QtGui.QVector3D: ...
  78. def boundsMin(self, /) -> PySide6.QtGui.QVector3D: ...
  79. def clear(self, /) -> None: ...
  80. def indexData(self, /) -> PySide6.QtCore.QByteArray: ...
  81. def markAllDirty(self, /) -> None: ...
  82. def primitiveType(self, /) -> PySide6.QtQuick3D.QQuick3DGeometry.PrimitiveType: ...
  83. def setBounds(self, min: PySide6.QtGui.QVector3D, max: PySide6.QtGui.QVector3D, /) -> None: ...
  84. @typing.overload
  85. def setIndexData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  86. @typing.overload
  87. def setIndexData(self, offset: int, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  88. def setPrimitiveType(self, type: PySide6.QtQuick3D.QQuick3DGeometry.PrimitiveType, /) -> None: ...
  89. def setStride(self, stride: int, /) -> None: ...
  90. @typing.overload
  91. def setTargetData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  92. @typing.overload
  93. def setTargetData(self, offset: int, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  94. @typing.overload
  95. def setVertexData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  96. @typing.overload
  97. def setVertexData(self, offset: int, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  98. def stride(self, /) -> int: ...
  99. def subsetBoundsMax(self, subset: int, /) -> PySide6.QtGui.QVector3D: ...
  100. def subsetBoundsMin(self, subset: int, /) -> PySide6.QtGui.QVector3D: ...
  101. @typing.overload
  102. def subsetCount(self, /) -> int: ...
  103. @typing.overload
  104. def subsetCount(self, subset: int, /) -> int: ...
  105. def subsetName(self, subset: int, /) -> str: ...
  106. def subsetOffset(self, subset: int, /) -> int: ...
  107. def targetAttribute(self, index: int, /) -> PySide6.QtQuick3D.QQuick3DGeometry.TargetAttribute: ...
  108. def targetAttributeCount(self, /) -> int: ...
  109. def targetData(self, /) -> PySide6.QtCore.QByteArray: ...
  110. def vertexData(self, /) -> PySide6.QtCore.QByteArray: ...
  111. class QQuick3DInstancing(PySide6.QtQuick3D.QQuick3DObject):
  112. depthSortingEnabledChanged: typing.ClassVar[Signal] = ... # depthSortingEnabledChanged()
  113. hasTransparencyChanged : typing.ClassVar[Signal] = ... # hasTransparencyChanged()
  114. instanceCountOverrideChanged: typing.ClassVar[Signal] = ... # instanceCountOverrideChanged()
  115. instanceNodeDirty : typing.ClassVar[Signal] = ... # instanceNodeDirty()
  116. instanceTableChanged : typing.ClassVar[Signal] = ... # instanceTableChanged()
  117. shadowBoundsMaximumChanged: typing.ClassVar[Signal] = ... # shadowBoundsMaximumChanged()
  118. shadowBoundsMinimumChanged: typing.ClassVar[Signal] = ... # shadowBoundsMinimumChanged()
  119. class InstanceTableEntry(Shiboken.Object):
  120. @typing.overload
  121. def __init__(self, /) -> None: ...
  122. @typing.overload
  123. def __init__(self, InstanceTableEntry: PySide6.QtQuick3D.QQuick3DInstancing.InstanceTableEntry, /) -> None: ...
  124. def __copy__(self, /) -> typing.Self: ...
  125. def getColor(self, /) -> PySide6.QtGui.QColor: ...
  126. def getPosition(self, /) -> PySide6.QtGui.QVector3D: ...
  127. def getRotation(self, /) -> PySide6.QtGui.QQuaternion: ...
  128. def getScale(self, /) -> PySide6.QtGui.QVector3D: ...
  129. def __init__(self, /, parent: PySide6.QtQuick3D.QQuick3DObject | None = ..., *, instanceCountOverride: int | None = ..., hasTransparency: bool | None = ..., depthSortingEnabled: bool | None = ..., shadowBoundsMinimum: PySide6.QtGui.QVector3D | None = ..., shadowBoundsMaximum: PySide6.QtGui.QVector3D | None = ...) -> None: ...
  130. @staticmethod
  131. def calculateTableEntry(position: PySide6.QtGui.QVector3D, scale: PySide6.QtGui.QVector3D, eulerRotation: PySide6.QtGui.QVector3D, color: typing.Union[PySide6.QtGui.QColor, str, PySide6.QtGui.QRgba64, typing.Any, PySide6.QtCore.Qt.GlobalColor, int], /, customData: PySide6.QtGui.QVector4D = ...) -> PySide6.QtQuick3D.QQuick3DInstancing.InstanceTableEntry: ...
  132. @staticmethod
  133. def calculateTableEntryFromQuaternion(position: PySide6.QtGui.QVector3D, scale: PySide6.QtGui.QVector3D, rotation: PySide6.QtGui.QQuaternion, color: typing.Union[PySide6.QtGui.QColor, str, PySide6.QtGui.QRgba64, typing.Any, PySide6.QtCore.Qt.GlobalColor, int], /, customData: PySide6.QtGui.QVector4D = ...) -> PySide6.QtQuick3D.QQuick3DInstancing.InstanceTableEntry: ...
  134. def depthSortingEnabled(self, /) -> bool: ...
  135. def getInstanceBuffer(self, /) -> typing.Tuple[bool, str]: ...
  136. def hasTransparency(self, /) -> bool: ...
  137. def instanceBuffer(self, /) -> typing.Tuple[PySide6.QtCore.QByteArray, int]: ...
  138. def instanceColor(self, index: int, /) -> PySide6.QtGui.QColor: ...
  139. def instanceCountOverride(self, /) -> int: ...
  140. def instanceCustomData(self, index: int, /) -> PySide6.QtGui.QVector4D: ...
  141. def instancePosition(self, index: int, /) -> PySide6.QtGui.QVector3D: ...
  142. def instanceRotation(self, index: int, /) -> PySide6.QtGui.QQuaternion: ...
  143. def instanceScale(self, index: int, /) -> PySide6.QtGui.QVector3D: ...
  144. def markDirty(self, /) -> None: ...
  145. def setDepthSortingEnabled(self, enabled: bool, /) -> None: ...
  146. def setHasTransparency(self, hasTransparency: bool, /) -> None: ...
  147. def setInstanceCountOverride(self, instanceCountOverride: int, /) -> None: ...
  148. def setShadowBoundsMaximum(self, newShadowBoundsMinimum: PySide6.QtGui.QVector3D, /) -> None: ...
  149. def setShadowBoundsMinimum(self, newShadowBoundsMinimum: PySide6.QtGui.QVector3D, /) -> None: ...
  150. def shadowBoundsMaximum(self, /) -> PySide6.QtGui.QVector3D: ...
  151. def shadowBoundsMinimum(self, /) -> PySide6.QtGui.QVector3D: ...
  152. class QQuick3DObject(PySide6.QtCore.QObject, PySide6.QtQml.QQmlParserStatus):
  153. childrenChanged : typing.ClassVar[Signal] = ... # childrenChanged()
  154. parentChanged : typing.ClassVar[Signal] = ... # parentChanged()
  155. stateChanged : typing.ClassVar[Signal] = ... # stateChanged()
  156. class ItemChange(enum.Enum):
  157. ItemChildAddedChange = 0x0
  158. ItemChildRemovedChange = 0x1
  159. ItemSceneChange = 0x2
  160. ItemVisibleHasChanged = 0x3
  161. ItemParentHasChanged = 0x4
  162. ItemOpacityHasChanged = 0x5
  163. ItemActiveFocusHasChanged = 0x6
  164. ItemRotationHasChanged = 0x7
  165. ItemAntialiasingHasChanged = 0x8
  166. ItemDevicePixelRatioHasChanged = 0x9
  167. ItemEnabledHasChanged = 0xa
  168. def childItems(self, /) -> typing.List[PySide6.QtQuick3D.QQuick3DObject]: ...
  169. def classBegin(self, /) -> None: ...
  170. def componentComplete(self, /) -> None: ...
  171. def isComponentComplete(self, /) -> bool: ...
  172. def markAllDirty(self, /) -> None: ...
  173. def parentItem(self, /) -> PySide6.QtQuick3D.QQuick3DObject: ...
  174. def preSync(self, /) -> None: ...
  175. def setParentItem(self, parentItem: PySide6.QtQuick3D.QQuick3DObject, /) -> None: ...
  176. def setState(self, state: str, /) -> None: ...
  177. def state(self, /) -> str: ...
  178. def update(self, /) -> None: ...
  179. class QQuick3DRenderExtension(PySide6.QtQuick3D.QQuick3DObject):
  180. def __init__(self, /, parent: PySide6.QtQuick3D.QQuick3DObject | None = ...) -> None: ...
  181. class QQuick3DTextureData(PySide6.QtQuick3D.QQuick3DObject):
  182. textureDataNodeDirty : typing.ClassVar[Signal] = ... # textureDataNodeDirty()
  183. class Format(enum.Enum):
  184. None_ = 0x0
  185. RGBA8 = 0x1
  186. RGBA16F = 0x2
  187. RGBA32F = 0x3
  188. RGBE8 = 0x4
  189. R8 = 0x5
  190. R16 = 0x6
  191. R16F = 0x7
  192. R32F = 0x8
  193. BC1 = 0x9
  194. BC2 = 0xa
  195. BC3 = 0xb
  196. BC4 = 0xc
  197. BC5 = 0xd
  198. BC6H = 0xe
  199. BC7 = 0xf
  200. DXT1_RGBA = 0x10
  201. DXT1_RGB = 0x11
  202. DXT3_RGBA = 0x12
  203. DXT5_RGBA = 0x13
  204. ETC2_RGB8 = 0x14
  205. ETC2_RGB8A1 = 0x15
  206. ETC2_RGBA8 = 0x16
  207. ASTC_4x4 = 0x17
  208. ASTC_5x4 = 0x18
  209. ASTC_5x5 = 0x19
  210. ASTC_6x5 = 0x1a
  211. ASTC_6x6 = 0x1b
  212. ASTC_8x5 = 0x1c
  213. ASTC_8x6 = 0x1d
  214. ASTC_8x8 = 0x1e
  215. ASTC_10x5 = 0x1f
  216. ASTC_10x6 = 0x20
  217. ASTC_10x8 = 0x21
  218. ASTC_10x10 = 0x22
  219. ASTC_12x10 = 0x23
  220. ASTC_12x12 = 0x24
  221. def __init__(self, /, parent: PySide6.QtQuick3D.QQuick3DObject | None = ...) -> None: ...
  222. def depth(self, /) -> int: ...
  223. def format(self, /) -> PySide6.QtQuick3D.QQuick3DTextureData.Format: ...
  224. def hasTransparency(self, /) -> bool: ...
  225. def markAllDirty(self, /) -> None: ...
  226. def setDepth(self, depth: int, /) -> None: ...
  227. def setFormat(self, format: PySide6.QtQuick3D.QQuick3DTextureData.Format, /) -> None: ...
  228. def setHasTransparency(self, hasTransparency: bool, /) -> None: ...
  229. def setSize(self, size: PySide6.QtCore.QSize, /) -> None: ...
  230. def setTextureData(self, data: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  231. def size(self, /) -> PySide6.QtCore.QSize: ...
  232. def textureData(self, /) -> PySide6.QtCore.QByteArray: ...
  233. # eof