QtQuick.pyi 66 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419
  1. # The PEP 484 type hints stub file for the QtQuick module.
  2. #
  3. # Generated by SIP 6.15.3
  4. #
  5. # Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. #
  7. # This file is part of PyQt6.
  8. #
  9. # This file may be used under the terms of the GNU General Public License
  10. # version 3.0 as published by the Free Software Foundation and appearing in
  11. # the file LICENSE included in the packaging of this file. Please review the
  12. # following information to ensure the GNU General Public License version 3.0
  13. # requirements will be met: http://www.gnu.org/copyleft/gpl.html.
  14. #
  15. # If you do not wish to use this file under the terms of the GPL version 3.0
  16. # then you may purchase a commercial license. For more information contact
  17. # info@riverbankcomputing.com.
  18. #
  19. # This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
  20. # WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  21. import collections, re, typing, enum
  22. try:
  23. from warnings import deprecated
  24. except ImportError:
  25. pass
  26. import PyQt6.sip
  27. from PyQt6 import QtCore
  28. from PyQt6 import QtGui
  29. from PyQt6 import QtNetwork
  30. from PyQt6 import QtQml
  31. # Support for QDate, QDateTime and QTime.
  32. import datetime
  33. # Convenient type aliases.
  34. PYQT_SIGNAL = typing.Union[QtCore.pyqtSignal, QtCore.pyqtBoundSignal]
  35. PYQT_SLOT = typing.Union[collections.abc.Callable[..., Any], QtCore.pyqtBoundSignal]
  36. class QQuickItem(QtCore.QObject, QtQml.QQmlParserStatus):
  37. class TransformOrigin(enum.Enum):
  38. TopLeft = ... # type: QQuickItem.TransformOrigin
  39. Top = ... # type: QQuickItem.TransformOrigin
  40. TopRight = ... # type: QQuickItem.TransformOrigin
  41. Left = ... # type: QQuickItem.TransformOrigin
  42. Center = ... # type: QQuickItem.TransformOrigin
  43. Right = ... # type: QQuickItem.TransformOrigin
  44. BottomLeft = ... # type: QQuickItem.TransformOrigin
  45. Bottom = ... # type: QQuickItem.TransformOrigin
  46. BottomRight = ... # type: QQuickItem.TransformOrigin
  47. class ItemChange(enum.Enum):
  48. ItemChildAddedChange = ... # type: QQuickItem.ItemChange
  49. ItemChildRemovedChange = ... # type: QQuickItem.ItemChange
  50. ItemSceneChange = ... # type: QQuickItem.ItemChange
  51. ItemVisibleHasChanged = ... # type: QQuickItem.ItemChange
  52. ItemParentHasChanged = ... # type: QQuickItem.ItemChange
  53. ItemOpacityHasChanged = ... # type: QQuickItem.ItemChange
  54. ItemActiveFocusHasChanged = ... # type: QQuickItem.ItemChange
  55. ItemRotationHasChanged = ... # type: QQuickItem.ItemChange
  56. ItemAntialiasingHasChanged = ... # type: QQuickItem.ItemChange
  57. ItemDevicePixelRatioHasChanged = ... # type: QQuickItem.ItemChange
  58. ItemEnabledHasChanged = ... # type: QQuickItem.ItemChange
  59. ItemScaleHasChanged = ... # type: QQuickItem.ItemChange
  60. ItemTransformHasChanged = ... # type: QQuickItem.ItemChange
  61. class Flag(enum.Flag):
  62. ItemClipsChildrenToShape = ... # type: QQuickItem.Flag
  63. ItemAcceptsInputMethod = ... # type: QQuickItem.Flag
  64. ItemIsFocusScope = ... # type: QQuickItem.Flag
  65. ItemHasContents = ... # type: QQuickItem.Flag
  66. ItemAcceptsDrops = ... # type: QQuickItem.Flag
  67. ItemIsViewport = ... # type: QQuickItem.Flag
  68. ItemObservesViewport = ... # type: QQuickItem.Flag
  69. class ItemChangeData(PyQt6.sip.simplewrapper):
  70. boolValue = ... # type: bool
  71. item = ... # type: 'QQuickItem'
  72. realValue = ... # type: float
  73. window = ... # type: 'QQuickWindow'
  74. @typing.overload
  75. def __init__(self, v: 'QQuickItem|None') -> None: ...
  76. @typing.overload
  77. def __init__(self, v: 'QQuickWindow|None') -> None: ...
  78. @typing.overload
  79. def __init__(self, v: float) -> None: ...
  80. @typing.overload
  81. def __init__(self, v: bool) -> None: ...
  82. @typing.overload
  83. def __init__(self, a0: 'QQuickItem.ItemChangeData') -> None: ...
  84. class UpdatePaintNodeData(PyQt6.sip.simplewrapper):
  85. transformNode = ... # type: 'QSGTransformNode'
  86. def __init__(self, a0: 'QQuickItem.UpdatePaintNodeData') -> None: ...
  87. def __init__(self, parent: 'QQuickItem|None' = ...) -> None: ...
  88. focusPolicyChanged: typing.ClassVar[QtCore.pyqtSignal]
  89. def setFocusPolicy(self, policy: QtCore.Qt.FocusPolicy) -> None: ...
  90. def focusPolicy(self) -> QtCore.Qt.FocusPolicy: ...
  91. def dumpItemTree(self) -> None: ...
  92. def ensurePolished(self) -> None: ...
  93. def viewportItem(self) -> 'QQuickItem|None': ...
  94. containmentMaskChanged: typing.ClassVar[QtCore.pyqtSignal]
  95. def setContainmentMask(self, mask: QtCore.QObject|None) -> None: ...
  96. def containmentMask(self) -> QtCore.QObject|None: ...
  97. def setAcceptTouchEvents(self, accept: bool) -> None: ...
  98. def acceptTouchEvents(self) -> bool: ...
  99. def size(self) -> QtCore.QSizeF: ...
  100. def mapFromGlobal(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  101. def mapToGlobal(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  102. def isAncestorOf(self, child: 'QQuickItem|None') -> bool: ...
  103. def grabToImage(self, targetSize: QtCore.QSize = ...) -> 'QQuickItemGrabResult|None': ...
  104. def resetAntialiasing(self) -> None: ...
  105. windowChanged: typing.ClassVar[QtCore.pyqtSignal]
  106. activeFocusOnTabChanged: typing.ClassVar[QtCore.pyqtSignal]
  107. def nextItemInFocusChain(self, forward: bool = ...) -> 'QQuickItem|None': ...
  108. def setActiveFocusOnTab(self, a0: bool) -> None: ...
  109. def activeFocusOnTab(self) -> bool: ...
  110. def updatePolish(self) -> None: ...
  111. def releaseResources(self) -> None: ...
  112. def updatePaintNode(self, a0: 'QSGNode|None', a1: 'QQuickItem.UpdatePaintNodeData|None') -> 'QSGNode|None': ...
  113. def geometryChange(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ...
  114. def childMouseEventFilter(self, a0: 'QQuickItem|None', a1: QtCore.QEvent|None) -> bool: ...
  115. def dropEvent(self, a0: QtGui.QDropEvent|None) -> None: ...
  116. def dragLeaveEvent(self, a0: QtGui.QDragLeaveEvent|None) -> None: ...
  117. def dragMoveEvent(self, a0: QtGui.QDragMoveEvent|None) -> None: ...
  118. def dragEnterEvent(self, a0: QtGui.QDragEnterEvent|None) -> None: ...
  119. def hoverLeaveEvent(self, event: QtGui.QHoverEvent|None) -> None: ...
  120. def hoverMoveEvent(self, event: QtGui.QHoverEvent|None) -> None: ...
  121. def hoverEnterEvent(self, event: QtGui.QHoverEvent|None) -> None: ...
  122. def touchEvent(self, event: QtGui.QTouchEvent|None) -> None: ...
  123. def wheelEvent(self, event: QtGui.QWheelEvent|None) -> None: ...
  124. def touchUngrabEvent(self) -> None: ...
  125. def mouseUngrabEvent(self) -> None: ...
  126. def mouseDoubleClickEvent(self, event: QtGui.QMouseEvent|None) -> None: ...
  127. def mouseReleaseEvent(self, event: QtGui.QMouseEvent|None) -> None: ...
  128. def mouseMoveEvent(self, event: QtGui.QMouseEvent|None) -> None: ...
  129. def mousePressEvent(self, event: QtGui.QMouseEvent|None) -> None: ...
  130. def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ...
  131. def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ...
  132. def inputMethodEvent(self, a0: QtGui.QInputMethodEvent|None) -> None: ...
  133. def keyReleaseEvent(self, event: QtGui.QKeyEvent|None) -> None: ...
  134. def keyPressEvent(self, event: QtGui.QKeyEvent|None) -> None: ...
  135. def componentComplete(self) -> None: ...
  136. def classBegin(self) -> None: ...
  137. def heightValid(self) -> bool: ...
  138. def widthValid(self) -> bool: ...
  139. def updateInputMethod(self, queries: QtCore.Qt.InputMethodQuery = ...) -> None: ...
  140. def itemChange(self, a0: 'QQuickItem.ItemChange', a1: 'QQuickItem.ItemChangeData') -> None: ...
  141. def isComponentComplete(self) -> bool: ...
  142. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  143. implicitHeightChanged: typing.ClassVar[QtCore.pyqtSignal]
  144. implicitWidthChanged: typing.ClassVar[QtCore.pyqtSignal]
  145. zChanged: typing.ClassVar[QtCore.pyqtSignal]
  146. heightChanged: typing.ClassVar[QtCore.pyqtSignal]
  147. widthChanged: typing.ClassVar[QtCore.pyqtSignal]
  148. yChanged: typing.ClassVar[QtCore.pyqtSignal]
  149. xChanged: typing.ClassVar[QtCore.pyqtSignal]
  150. scaleChanged: typing.ClassVar[QtCore.pyqtSignal]
  151. rotationChanged: typing.ClassVar[QtCore.pyqtSignal]
  152. visibleChanged: typing.ClassVar[QtCore.pyqtSignal]
  153. enabledChanged: typing.ClassVar[QtCore.pyqtSignal]
  154. opacityChanged: typing.ClassVar[QtCore.pyqtSignal]
  155. clipChanged: typing.ClassVar[QtCore.pyqtSignal]
  156. antialiasingChanged: typing.ClassVar[QtCore.pyqtSignal]
  157. smoothChanged: typing.ClassVar[QtCore.pyqtSignal]
  158. transformOriginChanged: typing.ClassVar[QtCore.pyqtSignal]
  159. parentChanged: typing.ClassVar[QtCore.pyqtSignal]
  160. activeFocusChanged: typing.ClassVar[QtCore.pyqtSignal]
  161. focusChanged: typing.ClassVar[QtCore.pyqtSignal]
  162. stateChanged: typing.ClassVar[QtCore.pyqtSignal]
  163. baselineOffsetChanged: typing.ClassVar[QtCore.pyqtSignal]
  164. childrenRectChanged: typing.ClassVar[QtCore.pyqtSignal]
  165. def update(self) -> None: ...
  166. def textureProvider(self) -> 'QSGTextureProvider|None': ...
  167. def isTextureProvider(self) -> bool: ...
  168. def inputMethodQuery(self, query: QtCore.Qt.InputMethodQuery) -> typing.Any: ...
  169. def childAt(self, x: float, y: float) -> 'QQuickItem|None': ...
  170. @typing.overload
  171. def forceActiveFocus(self) -> None: ...
  172. @typing.overload
  173. def forceActiveFocus(self, reason: QtCore.Qt.FocusReason) -> None: ...
  174. def polish(self) -> None: ...
  175. def mapRectFromScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ...
  176. def mapRectFromItem(self, item: 'QQuickItem|None', rect: QtCore.QRectF) -> QtCore.QRectF: ...
  177. def mapFromScene(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  178. def mapFromItem(self, item: 'QQuickItem|None', point: QtCore.QPointF) -> QtCore.QPointF: ...
  179. def mapRectToScene(self, rect: QtCore.QRectF) -> QtCore.QRectF: ...
  180. def mapRectToItem(self, item: 'QQuickItem|None', rect: QtCore.QRectF) -> QtCore.QRectF: ...
  181. def mapToScene(self, point: QtCore.QPointF) -> QtCore.QPointF: ...
  182. def mapToItem(self, item: 'QQuickItem|None', point: QtCore.QPointF) -> QtCore.QPointF: ...
  183. def contains(self, point: QtCore.QPointF) -> bool: ...
  184. def setKeepTouchGrab(self, a0: bool) -> None: ...
  185. def keepTouchGrab(self) -> bool: ...
  186. def ungrabTouchPoints(self) -> None: ...
  187. def grabTouchPoints(self, ids: collections.abc.Iterable[int]) -> None: ...
  188. def setFiltersChildMouseEvents(self, filter: bool) -> None: ...
  189. def filtersChildMouseEvents(self) -> bool: ...
  190. def setKeepMouseGrab(self, a0: bool) -> None: ...
  191. def keepMouseGrab(self) -> bool: ...
  192. def ungrabMouse(self) -> None: ...
  193. def grabMouse(self) -> None: ...
  194. def unsetCursor(self) -> None: ...
  195. def setCursor(self, cursor: QtGui.QCursor|QtCore.Qt.CursorShape) -> None: ...
  196. def cursor(self) -> QtGui.QCursor: ...
  197. def setAcceptHoverEvents(self, enabled: bool) -> None: ...
  198. def acceptHoverEvents(self) -> bool: ...
  199. def setAcceptedMouseButtons(self, buttons: QtCore.Qt.MouseButton) -> None: ...
  200. def acceptedMouseButtons(self) -> QtCore.Qt.MouseButton: ...
  201. def scopedFocusItem(self) -> 'QQuickItem|None': ...
  202. def isFocusScope(self) -> bool: ...
  203. @typing.overload
  204. def setFocus(self, a0: bool) -> None: ...
  205. @typing.overload
  206. def setFocus(self, focus: bool, reason: QtCore.Qt.FocusReason) -> None: ...
  207. def hasFocus(self) -> bool: ...
  208. def hasActiveFocus(self) -> bool: ...
  209. def setFlags(self, flags: 'QQuickItem.Flag') -> None: ...
  210. def setFlag(self, flag: 'QQuickItem.Flag', enabled: bool = ...) -> None: ...
  211. def flags(self) -> 'QQuickItem.Flag': ...
  212. def setAntialiasing(self, a0: bool) -> None: ...
  213. def antialiasing(self) -> bool: ...
  214. def setSmooth(self, a0: bool) -> None: ...
  215. def smooth(self) -> bool: ...
  216. def setEnabled(self, a0: bool) -> None: ...
  217. def isEnabled(self) -> bool: ...
  218. def setVisible(self, a0: bool) -> None: ...
  219. def isVisible(self) -> bool: ...
  220. def setOpacity(self, a0: float) -> None: ...
  221. def opacity(self) -> float: ...
  222. def setScale(self, a0: float) -> None: ...
  223. def scale(self) -> float: ...
  224. def setRotation(self, a0: float) -> None: ...
  225. def rotation(self) -> float: ...
  226. def setZ(self, a0: float) -> None: ...
  227. def z(self) -> float: ...
  228. def setTransformOrigin(self, a0: 'QQuickItem.TransformOrigin') -> None: ...
  229. def transformOrigin(self) -> 'QQuickItem.TransformOrigin': ...
  230. def setSize(self, size: QtCore.QSizeF) -> None: ...
  231. def implicitHeight(self) -> float: ...
  232. def setImplicitHeight(self, a0: float) -> None: ...
  233. def resetHeight(self) -> None: ...
  234. def setHeight(self, a0: float) -> None: ...
  235. def height(self) -> float: ...
  236. def implicitWidth(self) -> float: ...
  237. def setImplicitWidth(self, a0: float) -> None: ...
  238. def resetWidth(self) -> None: ...
  239. def setWidth(self, a0: float) -> None: ...
  240. def width(self) -> float: ...
  241. def setY(self, a0: float) -> None: ...
  242. def setX(self, a0: float) -> None: ...
  243. def y(self) -> float: ...
  244. def x(self) -> float: ...
  245. def setBaselineOffset(self, a0: float) -> None: ...
  246. def baselineOffset(self) -> float: ...
  247. def setState(self, a0: str|None) -> None: ...
  248. def state(self) -> str: ...
  249. def setClip(self, a0: bool) -> None: ...
  250. def clip(self) -> bool: ...
  251. def childItems(self) -> list['QQuickItem']: ...
  252. def childrenRect(self) -> QtCore.QRectF: ...
  253. def stackAfter(self, a0: 'QQuickItem|None') -> None: ...
  254. def stackBefore(self, a0: 'QQuickItem|None') -> None: ...
  255. def setParentItem(self, parent: 'QQuickItem|None') -> None: ...
  256. def parentItem(self) -> 'QQuickItem|None': ...
  257. def window(self) -> 'QQuickWindow|None': ...
  258. class QQuickFramebufferObject(QQuickItem):
  259. class Renderer(PyQt6.sip.wrapper):
  260. try:
  261. from PyQt6.QtOpenGL import QOpenGLFramebufferObject
  262. except ImportError:
  263. pass
  264. @typing.overload
  265. def __init__(self) -> None: ...
  266. @typing.overload
  267. def __init__(self, a0: 'QQuickFramebufferObject.Renderer') -> None: ...
  268. def invalidateFramebufferObject(self) -> None: ...
  269. def update(self) -> None: ...
  270. def framebufferObject(self) -> QOpenGLFramebufferObject|None: ...
  271. def synchronize(self, a0: 'QQuickFramebufferObject|None') -> None: ...
  272. def createFramebufferObject(self, size: QtCore.QSize) -> QOpenGLFramebufferObject|None: ...
  273. def render(self) -> None: ...
  274. def __init__(self, parent: QQuickItem|None = ...) -> None: ...
  275. mirrorVerticallyChanged: typing.ClassVar[QtCore.pyqtSignal]
  276. def setMirrorVertically(self, enable: bool) -> None: ...
  277. def mirrorVertically(self) -> bool: ...
  278. def releaseResources(self) -> None: ...
  279. def textureProvider(self) -> 'QSGTextureProvider|None': ...
  280. def isTextureProvider(self) -> bool: ...
  281. textureFollowsItemSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  282. def updatePaintNode(self, a0: 'QSGNode|None', a1: QQuickItem.UpdatePaintNodeData|None) -> 'QSGNode|None': ...
  283. def geometryChange(self, newGeometry: QtCore.QRectF, oldGeometry: QtCore.QRectF) -> None: ...
  284. def createRenderer(self) -> 'QQuickFramebufferObject.Renderer|None': ...
  285. def setTextureFollowsItemSize(self, follows: bool) -> None: ...
  286. def textureFollowsItemSize(self) -> bool: ...
  287. class QQuickGraphicsConfiguration(PyQt6.sip.simplewrapper):
  288. @typing.overload
  289. def __init__(self) -> None: ...
  290. @typing.overload
  291. def __init__(self, other: 'QQuickGraphicsConfiguration') -> None: ...
  292. def timestampsEnabled(self) -> bool: ...
  293. def setTimestamps(self, enable: bool) -> None: ...
  294. def pipelineCacheLoadFile(self) -> str: ...
  295. def setPipelineCacheLoadFile(self, filename: str|None) -> None: ...
  296. def pipelineCacheSaveFile(self) -> str: ...
  297. def setPipelineCacheSaveFile(self, filename: str|None) -> None: ...
  298. def isAutomaticPipelineCacheEnabled(self) -> bool: ...
  299. def setAutomaticPipelineCache(self, enable: bool) -> None: ...
  300. def prefersSoftwareDevice(self) -> bool: ...
  301. def setPreferSoftwareDevice(self, enable: bool) -> None: ...
  302. def isDebugMarkersEnabled(self) -> bool: ...
  303. def setDebugMarkers(self, enable: bool) -> None: ...
  304. def isDebugLayerEnabled(self) -> bool: ...
  305. def setDebugLayer(self, enable: bool) -> None: ...
  306. @staticmethod
  307. def preferredInstanceExtensions() -> list[QtCore.QByteArray]: ...
  308. def isDepthBufferEnabledFor2D(self) -> bool: ...
  309. def setDepthBufferFor2D(self, enable: bool) -> None: ...
  310. def deviceExtensions(self) -> list[QtCore.QByteArray]: ...
  311. def setDeviceExtensions(self, extensions: collections.abc.Iterable[QtCore.QByteArray|bytes|bytearray|memoryview]) -> None: ...
  312. class QQuickGraphicsDevice(PyQt6.sip.simplewrapper):
  313. @typing.overload
  314. def __init__(self) -> None: ...
  315. @typing.overload
  316. def __init__(self, other: 'QQuickGraphicsDevice') -> None: ...
  317. @staticmethod
  318. def fromOpenGLContext(context: QtGui.QOpenGLContext|None) -> 'QQuickGraphicsDevice': ...
  319. def isNull(self) -> bool: ...
  320. class QQuickTextureFactory(QtCore.QObject):
  321. def __init__(self) -> None: ...
  322. @staticmethod
  323. def textureFactoryForImage(image: QtGui.QImage) -> 'QQuickTextureFactory|None': ...
  324. def image(self) -> QtGui.QImage: ...
  325. def textureByteCount(self) -> int: ...
  326. def textureSize(self) -> QtCore.QSize: ...
  327. def createTexture(self, window: 'QQuickWindow|None') -> 'QSGTexture|None': ...
  328. class QQuickImageProvider(QtQml.QQmlImageProviderBase):
  329. def __init__(self, type: QtQml.QQmlImageProviderBase.ImageType, flags: QtQml.QQmlImageProviderBase.Flag = ...) -> None: ...
  330. def requestTexture(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QQuickTextureFactory|None, QtCore.QSize|None]: ...
  331. def requestPixmap(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QPixmap, QtCore.QSize|None]: ...
  332. def requestImage(self, id: str|None, requestedSize: QtCore.QSize) -> typing.Tuple[QtGui.QImage, QtCore.QSize|None]: ...
  333. def flags(self) -> QtQml.QQmlImageProviderBase.Flag: ...
  334. def imageType(self) -> QtQml.QQmlImageProviderBase.ImageType: ...
  335. class QQuickImageResponse(QtCore.QObject):
  336. def __init__(self) -> None: ...
  337. finished: typing.ClassVar[QtCore.pyqtSignal]
  338. def cancel(self) -> None: ...
  339. def errorString(self) -> str: ...
  340. def textureFactory(self) -> QQuickTextureFactory|None: ...
  341. class QQuickAsyncImageProvider(QQuickImageProvider):
  342. def __init__(self) -> None: ...
  343. def requestImageResponse(self, id: str|None, requestedSize: QtCore.QSize) -> QQuickImageResponse|None: ...
  344. class QQuickItemGrabResult(QtCore.QObject):
  345. ready: typing.ClassVar[QtCore.pyqtSignal]
  346. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  347. @typing.overload
  348. def saveToFile(self, fileName: str|None) -> bool: ...
  349. @typing.overload
  350. def saveToFile(self, fileName: QtCore.QUrl) -> bool: ...
  351. def url(self) -> QtCore.QUrl: ...
  352. def image(self) -> QtGui.QImage: ...
  353. class QQuickPaintedItem(QQuickItem):
  354. class PerformanceHint(enum.Flag):
  355. FastFBOResizing = ... # type: QQuickPaintedItem.PerformanceHint
  356. class RenderTarget(enum.Enum):
  357. Image = ... # type: QQuickPaintedItem.RenderTarget
  358. FramebufferObject = ... # type: QQuickPaintedItem.RenderTarget
  359. InvertedYFramebufferObject = ... # type: QQuickPaintedItem.RenderTarget
  360. def __init__(self, parent: QQuickItem|None = ...) -> None: ...
  361. textureSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  362. def setTextureSize(self, size: QtCore.QSize) -> None: ...
  363. def textureSize(self) -> QtCore.QSize: ...
  364. def itemChange(self, a0: QQuickItem.ItemChange, a1: QQuickItem.ItemChangeData) -> None: ...
  365. def releaseResources(self) -> None: ...
  366. def textureProvider(self) -> 'QSGTextureProvider|None': ...
  367. def isTextureProvider(self) -> bool: ...
  368. def updatePaintNode(self, a0: 'QSGNode|None', a1: QQuickItem.UpdatePaintNodeData|None) -> 'QSGNode|None': ...
  369. renderTargetChanged: typing.ClassVar[QtCore.pyqtSignal]
  370. contentsScaleChanged: typing.ClassVar[QtCore.pyqtSignal]
  371. contentsSizeChanged: typing.ClassVar[QtCore.pyqtSignal]
  372. fillColorChanged: typing.ClassVar[QtCore.pyqtSignal]
  373. def paint(self, painter: QtGui.QPainter|None) -> None: ...
  374. def setRenderTarget(self, target: 'QQuickPaintedItem.RenderTarget') -> None: ...
  375. def renderTarget(self) -> 'QQuickPaintedItem.RenderTarget': ...
  376. def setFillColor(self, a0: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  377. def fillColor(self) -> QtGui.QColor: ...
  378. def setContentsScale(self, a0: float) -> None: ...
  379. def contentsScale(self) -> float: ...
  380. def resetContentsSize(self) -> None: ...
  381. def setContentsSize(self, a0: QtCore.QSize) -> None: ...
  382. def contentsSize(self) -> QtCore.QSize: ...
  383. def contentsBoundingRect(self) -> QtCore.QRectF: ...
  384. def setPerformanceHints(self, hints: 'QQuickPaintedItem.PerformanceHint') -> None: ...
  385. def setPerformanceHint(self, hint: 'QQuickPaintedItem.PerformanceHint', enabled: bool = ...) -> None: ...
  386. def performanceHints(self) -> 'QQuickPaintedItem.PerformanceHint': ...
  387. def setMipmap(self, enable: bool) -> None: ...
  388. def mipmap(self) -> bool: ...
  389. def setAntialiasing(self, enable: bool) -> None: ...
  390. def antialiasing(self) -> bool: ...
  391. def setOpaquePainting(self, opaque: bool) -> None: ...
  392. def opaquePainting(self) -> bool: ...
  393. def update(self, rect: QtCore.QRect = ...) -> None: ...
  394. class QQuickRenderControl(QtCore.QObject):
  395. def __init__(self, parent: QtCore.QObject|None = ...) -> None: ...
  396. def window(self) -> 'QQuickWindow|None': ...
  397. def endFrame(self) -> None: ...
  398. def beginFrame(self) -> None: ...
  399. def samples(self) -> int: ...
  400. def setSamples(self, sampleCount: int) -> None: ...
  401. sceneChanged: typing.ClassVar[QtCore.pyqtSignal]
  402. renderRequested: typing.ClassVar[QtCore.pyqtSignal]
  403. def prepareThread(self, targetThread: QtCore.QThread|None) -> None: ...
  404. def renderWindow(self, offset: QtCore.QPoint|None) -> QtGui.QWindow|None: ...
  405. @staticmethod
  406. def renderWindowFor(win: 'QQuickWindow|None', offset: QtCore.QPoint|None = ...) -> QtGui.QWindow|None: ...
  407. def sync(self) -> bool: ...
  408. def render(self) -> None: ...
  409. def polishItems(self) -> None: ...
  410. def invalidate(self) -> None: ...
  411. def initialize(self) -> bool: ...
  412. class QQuickRenderTarget(PyQt6.sip.simplewrapper):
  413. class Flag(enum.Enum):
  414. MultisampleResolve = ... # type: QQuickRenderTarget.Flag
  415. @typing.overload
  416. def __init__(self) -> None: ...
  417. @typing.overload
  418. def __init__(self, other: 'QQuickRenderTarget') -> None: ...
  419. def __eq__(self, other: object): ...
  420. def __ne__(self, other: object): ...
  421. def setMirrorVertically(self, enable: bool) -> None: ...
  422. def mirrorVertically(self) -> bool: ...
  423. def setDevicePixelRatio(self, ratio: float) -> None: ...
  424. def devicePixelRatio(self) -> float: ...
  425. @staticmethod
  426. def fromPaintDevice(device: QtGui.QPaintDevice|None) -> 'QQuickRenderTarget': ...
  427. @staticmethod
  428. def fromOpenGLRenderBuffer(renderbufferId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ...
  429. @typing.overload
  430. @staticmethod
  431. def fromOpenGLTexture(textureId: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ...
  432. @typing.overload
  433. @staticmethod
  434. def fromOpenGLTexture(textureId: int, format: int, pixelSize: QtCore.QSize, sampleCount: int = ...) -> 'QQuickRenderTarget': ...
  435. @typing.overload
  436. @staticmethod
  437. def fromOpenGLTexture(textureId: int, format: int, pixelSize: QtCore.QSize, sampleCount: int, arraySize: int, flags: 'QQuickRenderTarget.Flag') -> 'QQuickRenderTarget': ...
  438. def isNull(self) -> bool: ...
  439. class QQuickTextDocument(QtCore.QObject):
  440. class Status(enum.Enum):
  441. Null = ... # type: QQuickTextDocument.Status
  442. Loading = ... # type: QQuickTextDocument.Status
  443. Loaded = ... # type: QQuickTextDocument.Status
  444. Saving = ... # type: QQuickTextDocument.Status
  445. Saved = ... # type: QQuickTextDocument.Status
  446. ReadError = ... # type: QQuickTextDocument.Status
  447. WriteError = ... # type: QQuickTextDocument.Status
  448. NonLocalFileError = ... # type: QQuickTextDocument.Status
  449. def __init__(self, parent: QQuickItem|None) -> None: ...
  450. errorStringChanged: typing.ClassVar[QtCore.pyqtSignal]
  451. statusChanged: typing.ClassVar[QtCore.pyqtSignal]
  452. modifiedChanged: typing.ClassVar[QtCore.pyqtSignal]
  453. sourceChanged: typing.ClassVar[QtCore.pyqtSignal]
  454. textDocumentChanged: typing.ClassVar[QtCore.pyqtSignal]
  455. def errorString(self) -> str: ...
  456. def status(self) -> 'QQuickTextDocument.Status': ...
  457. def saveAs(self, url: QtCore.QUrl) -> None: ...
  458. def save(self) -> None: ...
  459. def setTextDocument(self, document: QtGui.QTextDocument|None) -> None: ...
  460. def setModified(self, modified: bool) -> None: ...
  461. def isModified(self) -> bool: ...
  462. def setSource(self, url: QtCore.QUrl) -> None: ...
  463. def source(self) -> QtCore.QUrl: ...
  464. def textDocument(self) -> QtGui.QTextDocument|None: ...
  465. class QQuickWindow(QtGui.QWindow):
  466. class TextRenderType(enum.Enum):
  467. QtTextRendering = ... # type: QQuickWindow.TextRenderType
  468. NativeTextRendering = ... # type: QQuickWindow.TextRenderType
  469. CurveTextRendering = ... # type: QQuickWindow.TextRenderType
  470. class RenderStage(enum.Enum):
  471. BeforeSynchronizingStage = ... # type: QQuickWindow.RenderStage
  472. AfterSynchronizingStage = ... # type: QQuickWindow.RenderStage
  473. BeforeRenderingStage = ... # type: QQuickWindow.RenderStage
  474. AfterRenderingStage = ... # type: QQuickWindow.RenderStage
  475. AfterSwapStage = ... # type: QQuickWindow.RenderStage
  476. NoStage = ... # type: QQuickWindow.RenderStage
  477. class SceneGraphError(enum.Enum):
  478. ContextNotAvailable = ... # type: QQuickWindow.SceneGraphError
  479. class CreateTextureOption(enum.Flag):
  480. TextureHasAlphaChannel = ... # type: QQuickWindow.CreateTextureOption
  481. TextureHasMipmaps = ... # type: QQuickWindow.CreateTextureOption
  482. TextureOwnsGLTexture = ... # type: QQuickWindow.CreateTextureOption
  483. TextureCanUseAtlas = ... # type: QQuickWindow.CreateTextureOption
  484. TextureIsOpaque = ... # type: QQuickWindow.CreateTextureOption
  485. def __init__(self, parent: QtGui.QWindow|None = ...) -> None: ...
  486. devicePixelRatioChanged: typing.ClassVar[QtCore.pyqtSignal]
  487. def graphicsConfiguration(self) -> QQuickGraphicsConfiguration: ...
  488. def setGraphicsConfiguration(self, config: QQuickGraphicsConfiguration) -> None: ...
  489. def graphicsDevice(self) -> QQuickGraphicsDevice: ...
  490. def setGraphicsDevice(self, device: QQuickGraphicsDevice) -> None: ...
  491. @staticmethod
  492. def graphicsApi() -> 'QSGRendererInterface.GraphicsApi': ...
  493. @staticmethod
  494. def setGraphicsApi(api: 'QSGRendererInterface.GraphicsApi') -> None: ...
  495. def isPersistentGraphics(self) -> bool: ...
  496. def setPersistentGraphics(self, persistent: bool) -> None: ...
  497. afterFrameEnd: typing.ClassVar[QtCore.pyqtSignal]
  498. beforeFrameBegin: typing.ClassVar[QtCore.pyqtSignal]
  499. afterRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal]
  500. beforeRenderPassRecording: typing.ClassVar[QtCore.pyqtSignal]
  501. def endExternalCommands(self) -> None: ...
  502. def beginExternalCommands(self) -> None: ...
  503. @staticmethod
  504. def setTextRenderType(renderType: 'QQuickWindow.TextRenderType') -> None: ...
  505. @staticmethod
  506. def textRenderType() -> 'QQuickWindow.TextRenderType': ...
  507. @staticmethod
  508. def sceneGraphBackend() -> str: ...
  509. def createImageNode(self) -> 'QSGImageNode|None': ...
  510. def createRectangleNode(self) -> 'QSGRectangleNode|None': ...
  511. @staticmethod
  512. def setSceneGraphBackend(backend: str|None) -> None: ...
  513. def rendererInterface(self) -> 'QSGRendererInterface|None': ...
  514. def isSceneGraphInitialized(self) -> bool: ...
  515. def effectiveDevicePixelRatio(self) -> float: ...
  516. def scheduleRenderJob(self, job: QtCore.QRunnable|None, schedule: 'QQuickWindow.RenderStage') -> None: ...
  517. sceneGraphError: typing.ClassVar[QtCore.pyqtSignal]
  518. sceneGraphAboutToStop: typing.ClassVar[QtCore.pyqtSignal]
  519. afterAnimating: typing.ClassVar[QtCore.pyqtSignal]
  520. afterSynchronizing: typing.ClassVar[QtCore.pyqtSignal]
  521. activeFocusItemChanged: typing.ClassVar[QtCore.pyqtSignal]
  522. closing: typing.ClassVar[QtCore.pyqtSignal]
  523. @staticmethod
  524. def setDefaultAlphaBuffer(useAlpha: bool) -> None: ...
  525. @staticmethod
  526. def hasDefaultAlphaBuffer() -> bool: ...
  527. def closeEvent(self, a0: QtGui.QCloseEvent|None) -> None: ...
  528. def tabletEvent(self, a0: QtGui.QTabletEvent|None) -> None: ...
  529. def wheelEvent(self, a0: QtGui.QWheelEvent|None) -> None: ...
  530. def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  531. def mouseDoubleClickEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  532. def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  533. def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  534. def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  535. def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  536. def event(self, a0: QtCore.QEvent|None) -> bool: ...
  537. def focusOutEvent(self, a0: QtGui.QFocusEvent|None) -> None: ...
  538. def focusInEvent(self, a0: QtGui.QFocusEvent|None) -> None: ...
  539. def hideEvent(self, a0: QtGui.QHideEvent|None) -> None: ...
  540. def showEvent(self, a0: QtGui.QShowEvent|None) -> None: ...
  541. def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ...
  542. def exposeEvent(self, a0: QtGui.QExposeEvent|None) -> None: ...
  543. def releaseResources(self) -> None: ...
  544. def update(self) -> None: ...
  545. colorChanged: typing.ClassVar[QtCore.pyqtSignal]
  546. afterRendering: typing.ClassVar[QtCore.pyqtSignal]
  547. beforeRendering: typing.ClassVar[QtCore.pyqtSignal]
  548. beforeSynchronizing: typing.ClassVar[QtCore.pyqtSignal]
  549. sceneGraphInvalidated: typing.ClassVar[QtCore.pyqtSignal]
  550. sceneGraphInitialized: typing.ClassVar[QtCore.pyqtSignal]
  551. frameSwapped: typing.ClassVar[QtCore.pyqtSignal]
  552. def isPersistentSceneGraph(self) -> bool: ...
  553. def setPersistentSceneGraph(self, persistent: bool) -> None: ...
  554. def color(self) -> QtGui.QColor: ...
  555. def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  556. @typing.overload
  557. def createTextureFromImage(self, image: QtGui.QImage) -> 'QSGTexture|None': ...
  558. @typing.overload
  559. def createTextureFromImage(self, image: QtGui.QImage, options: 'QQuickWindow.CreateTextureOption') -> 'QSGTexture|None': ...
  560. def createTextNode(self) -> 'QSGTextNode|None': ...
  561. def incubationController(self) -> QtQml.QQmlIncubationController|None: ...
  562. def renderTarget(self) -> QQuickRenderTarget: ...
  563. def setRenderTarget(self, target: QQuickRenderTarget) -> None: ...
  564. def grabWindow(self) -> QtGui.QImage: ...
  565. def mouseGrabberItem(self) -> QQuickItem|None: ...
  566. def focusObject(self) -> QtCore.QObject|None: ...
  567. def activeFocusItem(self) -> QQuickItem|None: ...
  568. def contentItem(self) -> QQuickItem|None: ...
  569. class QQuickView(QQuickWindow):
  570. class Status(enum.Enum):
  571. Null = ... # type: QQuickView.Status
  572. Ready = ... # type: QQuickView.Status
  573. Loading = ... # type: QQuickView.Status
  574. Error = ... # type: QQuickView.Status
  575. class ResizeMode(enum.Enum):
  576. SizeViewToRootObject = ... # type: QQuickView.ResizeMode
  577. SizeRootObjectToView = ... # type: QQuickView.ResizeMode
  578. @typing.overload
  579. def __init__(self, parent: QtGui.QWindow|None = ...) -> None: ...
  580. @typing.overload
  581. def __init__(self, engine: QtQml.QQmlEngine|None, parent: QtGui.QWindow|None) -> None: ...
  582. @typing.overload
  583. def __init__(self, source: QtCore.QUrl, parent: QtGui.QWindow|None = ...) -> None: ...
  584. @typing.overload
  585. def __init__(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, parent: QtGui.QWindow|None = ...) -> None: ...
  586. def mouseMoveEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  587. def mouseReleaseEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  588. def mousePressEvent(self, a0: QtGui.QMouseEvent|None) -> None: ...
  589. def keyReleaseEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  590. def keyPressEvent(self, a0: QtGui.QKeyEvent|None) -> None: ...
  591. def timerEvent(self, a0: QtCore.QTimerEvent|None) -> None: ...
  592. def resizeEvent(self, a0: QtGui.QResizeEvent|None) -> None: ...
  593. statusChanged: typing.ClassVar[QtCore.pyqtSignal]
  594. def loadFromModule(self, uri: QtCore.QByteArray|bytes|bytearray|memoryview|str|None, typeName: QtCore.QByteArray|bytes|bytearray|memoryview|str|None) -> None: ...
  595. def setInitialProperties(self, initialProperties: dict[str|None, typing.Any]) -> None: ...
  596. def setSource(self, a0: QtCore.QUrl) -> None: ...
  597. def initialSize(self) -> QtCore.QSize: ...
  598. def errors(self) -> list[QtQml.QQmlError]: ...
  599. def status(self) -> 'QQuickView.Status': ...
  600. def setResizeMode(self, a0: 'QQuickView.ResizeMode') -> None: ...
  601. def resizeMode(self) -> 'QQuickView.ResizeMode': ...
  602. def rootObject(self) -> QQuickItem|None: ...
  603. def rootContext(self) -> QtQml.QQmlContext|None: ...
  604. def engine(self) -> QtQml.QQmlEngine|None: ...
  605. def source(self) -> QtCore.QUrl: ...
  606. class QQuickCloseEvent(PyQt6.sip.simplewrapper): ...
  607. class QSGMaterial(PyQt6.sip.wrapper):
  608. class Flag(enum.Flag):
  609. Blending = ... # type: QSGMaterial.Flag
  610. RequiresDeterminant = ... # type: QSGMaterial.Flag
  611. RequiresFullMatrixExceptTranslate = ... # type: QSGMaterial.Flag
  612. RequiresFullMatrix = ... # type: QSGMaterial.Flag
  613. NoBatching = ... # type: QSGMaterial.Flag
  614. CustomCompileStep = ... # type: QSGMaterial.Flag
  615. def __init__(self) -> None: ...
  616. def viewCount(self) -> int: ...
  617. def setFlag(self, flags: 'QSGMaterial.Flag', enabled: bool = ...) -> None: ...
  618. def flags(self) -> 'QSGMaterial.Flag': ...
  619. def compare(self, other: 'QSGMaterial|None') -> int: ...
  620. def createShader(self, renderMode: 'QSGRendererInterface.RenderMode') -> 'QSGMaterialShader|None': ...
  621. def type(self) -> 'QSGMaterialType|None': ...
  622. class QSGFlatColorMaterial(QSGMaterial):
  623. def __init__(self) -> None: ...
  624. def compare(self, other: QSGMaterial|None) -> int: ...
  625. def color(self) -> QtGui.QColor: ...
  626. def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  627. def createShader(self, renderMode: 'QSGRendererInterface.RenderMode') -> 'QSGMaterialShader|None': ...
  628. def type(self) -> 'QSGMaterialType|None': ...
  629. class QSGGeometry(PyQt6.sip.wrapper):
  630. class Type(enum.Enum):
  631. ByteType = ... # type: QSGGeometry.Type
  632. UnsignedByteType = ... # type: QSGGeometry.Type
  633. ShortType = ... # type: QSGGeometry.Type
  634. UnsignedShortType = ... # type: QSGGeometry.Type
  635. IntType = ... # type: QSGGeometry.Type
  636. UnsignedIntType = ... # type: QSGGeometry.Type
  637. FloatType = ... # type: QSGGeometry.Type
  638. Bytes2Type = ... # type: QSGGeometry.Type
  639. Bytes3Type = ... # type: QSGGeometry.Type
  640. Bytes4Type = ... # type: QSGGeometry.Type
  641. DoubleType = ... # type: QSGGeometry.Type
  642. class DrawingMode(enum.IntEnum):
  643. DrawPoints = ... # type: QSGGeometry.DrawingMode
  644. DrawLines = ... # type: QSGGeometry.DrawingMode
  645. DrawLineLoop = ... # type: QSGGeometry.DrawingMode
  646. DrawLineStrip = ... # type: QSGGeometry.DrawingMode
  647. DrawTriangles = ... # type: QSGGeometry.DrawingMode
  648. DrawTriangleStrip = ... # type: QSGGeometry.DrawingMode
  649. DrawTriangleFan = ... # type: QSGGeometry.DrawingMode
  650. class AttributeType(enum.Enum):
  651. UnknownAttribute = ... # type: QSGGeometry.AttributeType
  652. PositionAttribute = ... # type: QSGGeometry.AttributeType
  653. ColorAttribute = ... # type: QSGGeometry.AttributeType
  654. TexCoordAttribute = ... # type: QSGGeometry.AttributeType
  655. TexCoord1Attribute = ... # type: QSGGeometry.AttributeType
  656. TexCoord2Attribute = ... # type: QSGGeometry.AttributeType
  657. class DataPattern(enum.Enum):
  658. AlwaysUploadPattern = ... # type: QSGGeometry.DataPattern
  659. StreamPattern = ... # type: QSGGeometry.DataPattern
  660. DynamicPattern = ... # type: QSGGeometry.DataPattern
  661. StaticPattern = ... # type: QSGGeometry.DataPattern
  662. class Attribute(PyQt6.sip.simplewrapper):
  663. attributeType = ... # type: 'QSGGeometry.AttributeType'
  664. isVertexCoordinate = ... # type: int
  665. position = ... # type: int
  666. tupleSize = ... # type: int
  667. type = ... # type: int
  668. @typing.overload
  669. def __init__(self) -> None: ...
  670. @typing.overload
  671. def __init__(self, a0: 'QSGGeometry.Attribute') -> None: ...
  672. @staticmethod
  673. def createWithAttributeType(pos: int, tupleSize: int, primitiveType: int, attributeType: 'QSGGeometry.AttributeType') -> 'QSGGeometry.Attribute': ...
  674. @staticmethod
  675. def create(pos: int, tupleSize: int, primitiveType: int, isPosition: bool = ...) -> 'QSGGeometry.Attribute': ...
  676. class AttributeSet(PyQt6.sip.simplewrapper):
  677. attributes = ... # type: PyQt6.sip.array
  678. count = ... # type: int
  679. stride = ... # type: int
  680. def __init__(self, attributes: collections.abc.Iterable['QSGGeometry.Attribute'], stride: int = ...) -> None: ...
  681. class Point2D(PyQt6.sip.simplewrapper):
  682. x = ... # type: float
  683. y = ... # type: float
  684. @typing.overload
  685. def __init__(self) -> None: ...
  686. @typing.overload
  687. def __init__(self, a0: 'QSGGeometry.Point2D') -> None: ...
  688. def set(self, nx: float, ny: float) -> None: ...
  689. class TexturedPoint2D(PyQt6.sip.simplewrapper):
  690. tx = ... # type: float
  691. ty = ... # type: float
  692. x = ... # type: float
  693. y = ... # type: float
  694. @typing.overload
  695. def __init__(self) -> None: ...
  696. @typing.overload
  697. def __init__(self, a0: 'QSGGeometry.TexturedPoint2D') -> None: ...
  698. def set(self, nx: float, ny: float, ntx: float, nty: float) -> None: ...
  699. class ColoredPoint2D(PyQt6.sip.simplewrapper):
  700. a = ... # type: int
  701. b = ... # type: int
  702. g = ... # type: int
  703. r = ... # type: int
  704. x = ... # type: float
  705. y = ... # type: float
  706. @typing.overload
  707. def __init__(self) -> None: ...
  708. @typing.overload
  709. def __init__(self, a0: 'QSGGeometry.ColoredPoint2D') -> None: ...
  710. def set(self, nx: float, ny: float, nr: int, ng: int, nb: int, na: int) -> None: ...
  711. def __init__(self, attribs: 'QSGGeometry.AttributeSet', vertexCount: int, indexCount: int = ..., indexType: int = ...) -> None: ...
  712. def setIndexCount(self, count: int) -> None: ...
  713. def setVertexCount(self, count: int) -> None: ...
  714. @staticmethod
  715. def updateColoredRectGeometry(g: 'QSGGeometry|None', rect: QtCore.QRectF) -> None: ...
  716. def sizeOfIndex(self) -> int: ...
  717. def vertexDataAsColoredPoint2D(self) -> PyQt6.sip.array: ...
  718. def vertexDataAsTexturedPoint2D(self) -> PyQt6.sip.array: ...
  719. def vertexDataAsPoint2D(self) -> PyQt6.sip.array: ...
  720. def indexDataAsUShort(self) -> PyQt6.sip.array: ...
  721. def indexDataAsUInt(self) -> PyQt6.sip.array: ...
  722. def setLineWidth(self, w: float) -> None: ...
  723. def lineWidth(self) -> float: ...
  724. def markVertexDataDirty(self) -> None: ...
  725. def markIndexDataDirty(self) -> None: ...
  726. def vertexDataPattern(self) -> 'QSGGeometry.DataPattern': ...
  727. def setVertexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ...
  728. def indexDataPattern(self) -> 'QSGGeometry.DataPattern': ...
  729. def setIndexDataPattern(self, p: 'QSGGeometry.DataPattern') -> None: ...
  730. @staticmethod
  731. def updateTexturedRectGeometry(g: 'QSGGeometry|None', rect: QtCore.QRectF, sourceRect: QtCore.QRectF) -> None: ...
  732. @staticmethod
  733. def updateRectGeometry(g: 'QSGGeometry|None', rect: QtCore.QRectF) -> None: ...
  734. def sizeOfVertex(self) -> int: ...
  735. def attributes(self) -> PyQt6.sip.array: ...
  736. def attributeCount(self) -> int: ...
  737. def indexData(self) -> PyQt6.sip.voidptr: ...
  738. def indexCount(self) -> int: ...
  739. def indexType(self) -> int: ...
  740. def vertexData(self) -> PyQt6.sip.voidptr: ...
  741. def vertexCount(self) -> int: ...
  742. def allocate(self, vertexCount: int, indexCount: int = ...) -> None: ...
  743. def drawingMode(self) -> int: ...
  744. def setDrawingMode(self, mode: int) -> None: ...
  745. @staticmethod
  746. def defaultAttributes_ColoredPoint2D() -> 'QSGGeometry.AttributeSet': ...
  747. @staticmethod
  748. def defaultAttributes_TexturedPoint2D() -> 'QSGGeometry.AttributeSet': ...
  749. @staticmethod
  750. def defaultAttributes_Point2D() -> 'QSGGeometry.AttributeSet': ...
  751. class QSGNode(PyQt6.sip.wrapper):
  752. class DirtyStateBit(enum.Flag):
  753. DirtyMatrix = ... # type: QSGNode.DirtyStateBit
  754. DirtyNodeAdded = ... # type: QSGNode.DirtyStateBit
  755. DirtyNodeRemoved = ... # type: QSGNode.DirtyStateBit
  756. DirtyGeometry = ... # type: QSGNode.DirtyStateBit
  757. DirtyMaterial = ... # type: QSGNode.DirtyStateBit
  758. DirtyOpacity = ... # type: QSGNode.DirtyStateBit
  759. class Flag(enum.Flag):
  760. OwnedByParent = ... # type: QSGNode.Flag
  761. UsePreprocess = ... # type: QSGNode.Flag
  762. OwnsGeometry = ... # type: QSGNode.Flag
  763. OwnsMaterial = ... # type: QSGNode.Flag
  764. OwnsOpaqueMaterial = ... # type: QSGNode.Flag
  765. class NodeType(enum.Enum):
  766. BasicNodeType = ... # type: QSGNode.NodeType
  767. GeometryNodeType = ... # type: QSGNode.NodeType
  768. TransformNodeType = ... # type: QSGNode.NodeType
  769. ClipNodeType = ... # type: QSGNode.NodeType
  770. OpacityNodeType = ... # type: QSGNode.NodeType
  771. def __init__(self) -> None: ...
  772. def preprocess(self) -> None: ...
  773. def setFlags(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ...
  774. def setFlag(self, a0: 'QSGNode.Flag', enabled: bool = ...) -> None: ...
  775. def flags(self) -> 'QSGNode.Flag': ...
  776. def isSubtreeBlocked(self) -> bool: ...
  777. def markDirty(self, bits: 'QSGNode.DirtyStateBit') -> None: ...
  778. def type(self) -> 'QSGNode.NodeType': ...
  779. def previousSibling(self) -> 'QSGNode|None': ...
  780. def nextSibling(self) -> 'QSGNode|None': ...
  781. def lastChild(self) -> 'QSGNode|None': ...
  782. def firstChild(self) -> 'QSGNode|None': ...
  783. def childAtIndex(self, i: int) -> 'QSGNode|None': ...
  784. def __len__(self) -> int: ...
  785. def childCount(self) -> int: ...
  786. def insertChildNodeAfter(self, node: 'QSGNode|None', after: 'QSGNode|None') -> None: ...
  787. def insertChildNodeBefore(self, node: 'QSGNode|None', before: 'QSGNode|None') -> None: ...
  788. def appendChildNode(self, node: 'QSGNode|None') -> None: ...
  789. def prependChildNode(self, node: 'QSGNode|None') -> None: ...
  790. def removeAllChildNodes(self) -> None: ...
  791. def removeChildNode(self, node: 'QSGNode|None') -> None: ...
  792. def parent(self) -> 'QSGNode|None': ...
  793. class QSGBasicGeometryNode(QSGNode):
  794. def geometry(self) -> QSGGeometry|None: ...
  795. def setGeometry(self, geometry: QSGGeometry|None) -> None: ...
  796. class QSGGeometryNode(QSGBasicGeometryNode):
  797. def __init__(self) -> None: ...
  798. def opaqueMaterial(self) -> QSGMaterial|None: ...
  799. def setOpaqueMaterial(self, material: QSGMaterial|None) -> None: ...
  800. def material(self) -> QSGMaterial|None: ...
  801. def setMaterial(self, material: QSGMaterial|None) -> None: ...
  802. class QSGImageNode(QSGGeometryNode):
  803. class TextureCoordinatesTransformFlag(enum.Flag):
  804. NoTransform = ... # type: QSGImageNode.TextureCoordinatesTransformFlag
  805. MirrorHorizontally = ... # type: QSGImageNode.TextureCoordinatesTransformFlag
  806. MirrorVertically = ... # type: QSGImageNode.TextureCoordinatesTransformFlag
  807. def anisotropyLevel(self) -> 'QSGTexture.AnisotropyLevel': ...
  808. def setAnisotropyLevel(self, level: 'QSGTexture.AnisotropyLevel') -> None: ...
  809. @staticmethod
  810. def rebuildGeometry(g: QSGGeometry|None, texture: 'QSGTexture|None', rect: QtCore.QRectF, sourceRect: QtCore.QRectF, texCoordMode: 'QSGImageNode.TextureCoordinatesTransformFlag') -> None: ...
  811. def ownsTexture(self) -> bool: ...
  812. def setOwnsTexture(self, owns: bool) -> None: ...
  813. def textureCoordinatesTransform(self) -> 'QSGImageNode.TextureCoordinatesTransformFlag': ...
  814. def setTextureCoordinatesTransform(self, mode: 'QSGImageNode.TextureCoordinatesTransformFlag') -> None: ...
  815. def mipmapFiltering(self) -> 'QSGTexture.Filtering': ...
  816. def setMipmapFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ...
  817. def filtering(self) -> 'QSGTexture.Filtering': ...
  818. def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ...
  819. def texture(self) -> 'QSGTexture|None': ...
  820. def setTexture(self, texture: 'QSGTexture|None') -> None: ...
  821. def sourceRect(self) -> QtCore.QRectF: ...
  822. @typing.overload
  823. def setSourceRect(self, r: QtCore.QRectF) -> None: ...
  824. @typing.overload
  825. def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ...
  826. def rect(self) -> QtCore.QRectF: ...
  827. @typing.overload
  828. def setRect(self, rect: QtCore.QRectF) -> None: ...
  829. @typing.overload
  830. def setRect(self, x: float, y: float, w: float, h: float) -> None: ...
  831. class QSGMaterialShader(PyQt6.sip.simplewrapper):
  832. class Stage(enum.Enum):
  833. VertexStage = ... # type: QSGMaterialShader.Stage
  834. FragmentStage = ... # type: QSGMaterialShader.Stage
  835. class Flag(enum.Flag):
  836. UpdatesGraphicsPipelineState = ... # type: QSGMaterialShader.Flag
  837. class RenderState(PyQt6.sip.simplewrapper):
  838. class DirtyState(enum.Flag):
  839. DirtyMatrix = ... # type: QSGMaterialShader.RenderState.DirtyState
  840. DirtyOpacity = ... # type: QSGMaterialShader.RenderState.DirtyState
  841. DirtyCachedMaterialData = ... # type: QSGMaterialShader.RenderState.DirtyState
  842. DirtyAll = ... # type: QSGMaterialShader.RenderState.DirtyState
  843. @typing.overload
  844. def __init__(self) -> None: ...
  845. @typing.overload
  846. def __init__(self, a0: 'QSGMaterialShader.RenderState') -> None: ...
  847. def uniformData(self) -> QtCore.QByteArray|None: ...
  848. def devicePixelRatio(self) -> float: ...
  849. def determinant(self) -> float: ...
  850. def deviceRect(self) -> QtCore.QRect: ...
  851. def viewportRect(self) -> QtCore.QRect: ...
  852. def projectionMatrix(self) -> QtGui.QMatrix4x4: ...
  853. def modelViewMatrix(self) -> QtGui.QMatrix4x4: ...
  854. def combinedMatrix(self) -> QtGui.QMatrix4x4: ...
  855. def opacity(self) -> float: ...
  856. def isOpacityDirty(self) -> bool: ...
  857. def isMatrixDirty(self) -> bool: ...
  858. def dirtyStates(self) -> 'QSGMaterialShader.RenderState.DirtyState': ...
  859. class GraphicsPipelineState(PyQt6.sip.simplewrapper):
  860. class PolygonMode(enum.Enum):
  861. Fill = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode
  862. Line = ... # type: QSGMaterialShader.GraphicsPipelineState.PolygonMode
  863. class CullMode(enum.Enum):
  864. CullNone = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode
  865. CullFront = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode
  866. CullBack = ... # type: QSGMaterialShader.GraphicsPipelineState.CullMode
  867. class ColorMaskComponent(enum.Flag):
  868. R = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent
  869. G = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent
  870. B = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent
  871. A = ... # type: QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent
  872. class BlendOp(enum.Enum):
  873. Add = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp
  874. Subtract = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp
  875. ReverseSubtract = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp
  876. Min = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp
  877. Max = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendOp
  878. class BlendFactor(enum.Enum):
  879. Zero = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  880. One = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  881. SrcColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  882. OneMinusSrcColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  883. DstColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  884. OneMinusDstColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  885. SrcAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  886. OneMinusSrcAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  887. DstAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  888. OneMinusDstAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  889. ConstantColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  890. OneMinusConstantColor = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  891. ConstantAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  892. OneMinusConstantAlpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  893. SrcAlphaSaturate = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  894. Src1Color = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  895. OneMinusSrc1Color = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  896. Src1Alpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  897. OneMinusSrc1Alpha = ... # type: QSGMaterialShader.GraphicsPipelineState.BlendFactor
  898. blendConstant = ... # type: QtGui.QColor|QtCore.Qt.GlobalColor|int
  899. blendEnable = ... # type: bool
  900. colorWrite = ... # type: 'QSGMaterialShader.GraphicsPipelineState.ColorMaskComponent'
  901. cullMode = ... # type: 'QSGMaterialShader.GraphicsPipelineState.CullMode'
  902. dstAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor'
  903. dstColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor'
  904. opAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendOp'
  905. opColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendOp'
  906. polygonMode = ... # type: 'QSGMaterialShader.GraphicsPipelineState.PolygonMode'
  907. separateBlendFactors = ... # type: bool
  908. srcAlpha = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor'
  909. srcColor = ... # type: 'QSGMaterialShader.GraphicsPipelineState.BlendFactor'
  910. @typing.overload
  911. def __init__(self) -> None: ...
  912. @typing.overload
  913. def __init__(self, a0: 'QSGMaterialShader.GraphicsPipelineState') -> None: ...
  914. def __init__(self) -> None: ...
  915. @typing.overload
  916. def setShaderFileName(self, stage: 'QSGMaterialShader.Stage', filename: str|None) -> None: ...
  917. @typing.overload
  918. def setShaderFileName(self, stage: 'QSGMaterialShader.Stage', filename: str|None, viewCount: int) -> None: ...
  919. def combinedImageSamplerCount(self, binding: int) -> int: ...
  920. def setFlags(self, flags: 'QSGMaterialShader.Flag') -> None: ...
  921. def setFlag(self, flags: 'QSGMaterialShader.Flag', on: bool = ...) -> None: ...
  922. def flags(self) -> 'QSGMaterialShader.Flag': ...
  923. def updateGraphicsPipelineState(self, state: 'QSGMaterialShader.RenderState', ps: 'QSGMaterialShader.GraphicsPipelineState|None', newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> bool: ...
  924. def updateSampledImage(self, state: 'QSGMaterialShader.RenderState', binding: int, newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> 'QSGTexture|None': ...
  925. def updateUniformData(self, state: 'QSGMaterialShader.RenderState', newMaterial: QSGMaterial|None, oldMaterial: QSGMaterial|None) -> bool: ...
  926. class QSGMaterialType(PyQt6.sip.simplewrapper):
  927. @typing.overload
  928. def __init__(self) -> None: ...
  929. @typing.overload
  930. def __init__(self, a0: 'QSGMaterialType') -> None: ...
  931. class QSGClipNode(QSGBasicGeometryNode):
  932. def __init__(self) -> None: ...
  933. def clipRect(self) -> QtCore.QRectF: ...
  934. def setClipRect(self, a0: QtCore.QRectF) -> None: ...
  935. def isRectangular(self) -> bool: ...
  936. def setIsRectangular(self, rectHint: bool) -> None: ...
  937. class QSGTransformNode(QSGNode):
  938. def __init__(self) -> None: ...
  939. def matrix(self) -> QtGui.QMatrix4x4: ...
  940. def setMatrix(self, matrix: QtGui.QMatrix4x4) -> None: ...
  941. class QSGOpacityNode(QSGNode):
  942. def __init__(self) -> None: ...
  943. def opacity(self) -> float: ...
  944. def setOpacity(self, opacity: float) -> None: ...
  945. class QSGRectangleNode(QSGGeometryNode):
  946. def color(self) -> QtGui.QColor: ...
  947. def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  948. def rect(self) -> QtCore.QRectF: ...
  949. @typing.overload
  950. def setRect(self, rect: QtCore.QRectF) -> None: ...
  951. @typing.overload
  952. def setRect(self, x: float, y: float, w: float, h: float) -> None: ...
  953. class QSGRendererInterface(PyQt6.sip.simplewrapper):
  954. class RenderMode(enum.Enum):
  955. RenderMode2D = ... # type: QSGRendererInterface.RenderMode
  956. RenderMode2DNoDepthBuffer = ... # type: QSGRendererInterface.RenderMode
  957. RenderMode3D = ... # type: QSGRendererInterface.RenderMode
  958. class ShaderSourceType(enum.Flag):
  959. ShaderSourceString = ... # type: QSGRendererInterface.ShaderSourceType
  960. ShaderSourceFile = ... # type: QSGRendererInterface.ShaderSourceType
  961. ShaderByteCode = ... # type: QSGRendererInterface.ShaderSourceType
  962. class ShaderCompilationType(enum.Flag):
  963. RuntimeCompilation = ... # type: QSGRendererInterface.ShaderCompilationType
  964. OfflineCompilation = ... # type: QSGRendererInterface.ShaderCompilationType
  965. class ShaderType(enum.Enum):
  966. UnknownShadingLanguage = ... # type: QSGRendererInterface.ShaderType
  967. GLSL = ... # type: QSGRendererInterface.ShaderType
  968. HLSL = ... # type: QSGRendererInterface.ShaderType
  969. RhiShader = ... # type: QSGRendererInterface.ShaderType
  970. class Resource(enum.Enum):
  971. DeviceResource = ... # type: QSGRendererInterface.Resource
  972. CommandQueueResource = ... # type: QSGRendererInterface.Resource
  973. CommandListResource = ... # type: QSGRendererInterface.Resource
  974. PainterResource = ... # type: QSGRendererInterface.Resource
  975. RhiResource = ... # type: QSGRendererInterface.Resource
  976. PhysicalDeviceResource = ... # type: QSGRendererInterface.Resource
  977. OpenGLContextResource = ... # type: QSGRendererInterface.Resource
  978. DeviceContextResource = ... # type: QSGRendererInterface.Resource
  979. CommandEncoderResource = ... # type: QSGRendererInterface.Resource
  980. VulkanInstanceResource = ... # type: QSGRendererInterface.Resource
  981. RenderPassResource = ... # type: QSGRendererInterface.Resource
  982. RhiSwapchainResource = ... # type: QSGRendererInterface.Resource
  983. RhiRedirectCommandBuffer = ... # type: QSGRendererInterface.Resource
  984. RhiRedirectRenderTarget = ... # type: QSGRendererInterface.Resource
  985. RedirectPaintDevice = ... # type: QSGRendererInterface.Resource
  986. GraphicsQueueFamilyIndexResource = ... # type: QSGRendererInterface.Resource
  987. GraphicsQueueIndexResource = ... # type: QSGRendererInterface.Resource
  988. class GraphicsApi(enum.Enum):
  989. Unknown = ... # type: QSGRendererInterface.GraphicsApi
  990. Software = ... # type: QSGRendererInterface.GraphicsApi
  991. OpenGL = ... # type: QSGRendererInterface.GraphicsApi
  992. OpenVG = ... # type: QSGRendererInterface.GraphicsApi
  993. OpenGLRhi = ... # type: QSGRendererInterface.GraphicsApi
  994. Direct3D11Rhi = ... # type: QSGRendererInterface.GraphicsApi
  995. VulkanRhi = ... # type: QSGRendererInterface.GraphicsApi
  996. MetalRhi = ... # type: QSGRendererInterface.GraphicsApi
  997. NullRhi = ... # type: QSGRendererInterface.GraphicsApi
  998. Direct3D11 = ... # type: QSGRendererInterface.GraphicsApi
  999. Vulkan = ... # type: QSGRendererInterface.GraphicsApi
  1000. Metal = ... # type: QSGRendererInterface.GraphicsApi
  1001. Direct3D12 = ... # type: QSGRendererInterface.GraphicsApi
  1002. Null = ... # type: QSGRendererInterface.GraphicsApi
  1003. @staticmethod
  1004. def isApiRhiBased(api: 'QSGRendererInterface.GraphicsApi') -> bool: ...
  1005. def shaderSourceType(self) -> 'QSGRendererInterface.ShaderSourceType': ...
  1006. def shaderCompilationType(self) -> 'QSGRendererInterface.ShaderCompilationType': ...
  1007. def shaderType(self) -> 'QSGRendererInterface.ShaderType': ...
  1008. @typing.overload
  1009. def getResource(self, window: QQuickWindow|None, resource: 'QSGRendererInterface.Resource') -> PyQt6.sip.voidptr: ...
  1010. @typing.overload
  1011. def getResource(self, window: QQuickWindow|None, resource: str) -> PyQt6.sip.voidptr: ...
  1012. def graphicsApi(self) -> 'QSGRendererInterface.GraphicsApi': ...
  1013. class QSGRenderNode(QSGNode):
  1014. class RenderingFlag(enum.Flag):
  1015. BoundedRectRendering = ... # type: QSGRenderNode.RenderingFlag
  1016. DepthAwareRendering = ... # type: QSGRenderNode.RenderingFlag
  1017. OpaqueRendering = ... # type: QSGRenderNode.RenderingFlag
  1018. class StateFlag(enum.Flag):
  1019. DepthState = ... # type: QSGRenderNode.StateFlag
  1020. StencilState = ... # type: QSGRenderNode.StateFlag
  1021. ScissorState = ... # type: QSGRenderNode.StateFlag
  1022. ColorState = ... # type: QSGRenderNode.StateFlag
  1023. BlendState = ... # type: QSGRenderNode.StateFlag
  1024. CullState = ... # type: QSGRenderNode.StateFlag
  1025. ViewportState = ... # type: QSGRenderNode.StateFlag
  1026. RenderTargetState = ... # type: QSGRenderNode.StateFlag
  1027. class RenderState(PyQt6.sip.simplewrapper):
  1028. def get(self, state: str) -> PyQt6.sip.voidptr: ...
  1029. def clipRegion(self) -> QtGui.QRegion|None: ...
  1030. def stencilEnabled(self) -> bool: ...
  1031. def stencilValue(self) -> int: ...
  1032. def scissorEnabled(self) -> bool: ...
  1033. def scissorRect(self) -> QtCore.QRect: ...
  1034. def projectionMatrix(self) -> QtGui.QMatrix4x4|None: ...
  1035. def __init__(self) -> None: ...
  1036. def projectionMatrix(self) -> QtGui.QMatrix4x4|None: ...
  1037. def prepare(self) -> None: ...
  1038. def inheritedOpacity(self) -> float: ...
  1039. def clipList(self) -> QSGClipNode|None: ...
  1040. def matrix(self) -> QtGui.QMatrix4x4|None: ...
  1041. def rect(self) -> QtCore.QRectF: ...
  1042. def flags(self) -> 'QSGRenderNode.RenderingFlag': ...
  1043. def releaseResources(self) -> None: ...
  1044. def render(self, state: 'QSGRenderNode.RenderState|None') -> None: ...
  1045. def changedStates(self) -> 'QSGRenderNode.StateFlag': ...
  1046. class QSGSimpleRectNode(QSGGeometryNode):
  1047. @typing.overload
  1048. def __init__(self, rect: QtCore.QRectF, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1049. @typing.overload
  1050. def __init__(self) -> None: ...
  1051. def color(self) -> QtGui.QColor: ...
  1052. def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1053. def rect(self) -> QtCore.QRectF: ...
  1054. @typing.overload
  1055. def setRect(self, rect: QtCore.QRectF) -> None: ...
  1056. @typing.overload
  1057. def setRect(self, x: float, y: float, w: float, h: float) -> None: ...
  1058. class QSGSimpleTextureNode(QSGGeometryNode):
  1059. class TextureCoordinatesTransformFlag(enum.Flag):
  1060. NoTransform = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag
  1061. MirrorHorizontally = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag
  1062. MirrorVertically = ... # type: QSGSimpleTextureNode.TextureCoordinatesTransformFlag
  1063. def __init__(self) -> None: ...
  1064. def sourceRect(self) -> QtCore.QRectF: ...
  1065. @typing.overload
  1066. def setSourceRect(self, r: QtCore.QRectF) -> None: ...
  1067. @typing.overload
  1068. def setSourceRect(self, x: float, y: float, w: float, h: float) -> None: ...
  1069. def ownsTexture(self) -> bool: ...
  1070. def setOwnsTexture(self, owns: bool) -> None: ...
  1071. def textureCoordinatesTransform(self) -> 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag': ...
  1072. def setTextureCoordinatesTransform(self, mode: 'QSGSimpleTextureNode.TextureCoordinatesTransformFlag') -> None: ...
  1073. def filtering(self) -> 'QSGTexture.Filtering': ...
  1074. def setFiltering(self, filtering: 'QSGTexture.Filtering') -> None: ...
  1075. def texture(self) -> 'QSGTexture|None': ...
  1076. def setTexture(self, texture: 'QSGTexture|None') -> None: ...
  1077. def rect(self) -> QtCore.QRectF: ...
  1078. @typing.overload
  1079. def setRect(self, rect: QtCore.QRectF) -> None: ...
  1080. @typing.overload
  1081. def setRect(self, x: float, y: float, w: float, h: float) -> None: ...
  1082. class QSGTextNode(QSGTransformNode):
  1083. class TextStyle(enum.Enum):
  1084. Normal = ... # type: QSGTextNode.TextStyle
  1085. Outline = ... # type: QSGTextNode.TextStyle
  1086. Raised = ... # type: QSGTextNode.TextStyle
  1087. Sunken = ... # type: QSGTextNode.TextStyle
  1088. class RenderType(enum.Enum):
  1089. QtRendering = ... # type: QSGTextNode.RenderType
  1090. NativeRendering = ... # type: QSGTextNode.RenderType
  1091. CurveRendering = ... # type: QSGTextNode.RenderType
  1092. def viewport(self) -> QtCore.QRectF: ...
  1093. def setViewport(self, viewport: QtCore.QRectF) -> None: ...
  1094. def clear(self) -> None: ...
  1095. def filtering(self) -> 'QSGTexture.Filtering': ...
  1096. def setFiltering(self, a0: 'QSGTexture.Filtering') -> None: ...
  1097. def renderTypeQuality(self) -> int: ...
  1098. def setRenderTypeQuality(self, renderTypeQuality: int) -> None: ...
  1099. def renderType(self) -> 'QSGTextNode.RenderType': ...
  1100. def setRenderType(self, renderType: 'QSGTextNode.RenderType') -> None: ...
  1101. def selectionTextColor(self) -> QtGui.QColor: ...
  1102. def setSelectionTextColor(self, selectionTextColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1103. def selectionColor(self) -> QtGui.QColor: ...
  1104. def setSelectionColor(self, selectionColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1105. def linkColor(self) -> QtGui.QColor: ...
  1106. def setLinkColor(self, linkColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1107. def styleColor(self) -> QtGui.QColor: ...
  1108. def setStyleColor(self, styleColor: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1109. def textStyle(self) -> 'QSGTextNode.TextStyle': ...
  1110. def setTextStyle(self, textStyle: 'QSGTextNode.TextStyle') -> None: ...
  1111. def color(self) -> QtGui.QColor: ...
  1112. def setColor(self, color: QtGui.QColor|QtCore.Qt.GlobalColor|int) -> None: ...
  1113. def addTextLayout(self, position: QtCore.QPointF, layout: QtGui.QTextLayout|None, selectionStart: int = ..., selectionCount: int = ..., lineStart: int = ..., lineCount: int = ...) -> None: ...
  1114. def addTextDocument(self, position: QtCore.QPointF, document: QtGui.QTextDocument|None, selectionStart: int = ..., selectionCount: int = ...) -> None: ...
  1115. class QSGTexture(QtCore.QObject):
  1116. class AnisotropyLevel(enum.Enum):
  1117. AnisotropyNone = ... # type: QSGTexture.AnisotropyLevel
  1118. Anisotropy2x = ... # type: QSGTexture.AnisotropyLevel
  1119. Anisotropy4x = ... # type: QSGTexture.AnisotropyLevel
  1120. Anisotropy8x = ... # type: QSGTexture.AnisotropyLevel
  1121. Anisotropy16x = ... # type: QSGTexture.AnisotropyLevel
  1122. class Filtering(enum.Enum):
  1123. None_ = ... # type: QSGTexture.Filtering
  1124. Nearest = ... # type: QSGTexture.Filtering
  1125. Linear = ... # type: QSGTexture.Filtering
  1126. class WrapMode(enum.Enum):
  1127. Repeat = ... # type: QSGTexture.WrapMode
  1128. ClampToEdge = ... # type: QSGTexture.WrapMode
  1129. MirroredRepeat = ... # type: QSGTexture.WrapMode
  1130. def __init__(self) -> None: ...
  1131. def comparisonKey(self) -> int: ...
  1132. def anisotropyLevel(self) -> 'QSGTexture.AnisotropyLevel': ...
  1133. def setAnisotropyLevel(self, level: 'QSGTexture.AnisotropyLevel') -> None: ...
  1134. def convertToNormalizedSourceRect(self, rect: QtCore.QRectF) -> QtCore.QRectF: ...
  1135. def verticalWrapMode(self) -> 'QSGTexture.WrapMode': ...
  1136. def setVerticalWrapMode(self, vwrap: 'QSGTexture.WrapMode') -> None: ...
  1137. def horizontalWrapMode(self) -> 'QSGTexture.WrapMode': ...
  1138. def setHorizontalWrapMode(self, hwrap: 'QSGTexture.WrapMode') -> None: ...
  1139. def filtering(self) -> 'QSGTexture.Filtering': ...
  1140. def setFiltering(self, filter: 'QSGTexture.Filtering') -> None: ...
  1141. def mipmapFiltering(self) -> 'QSGTexture.Filtering': ...
  1142. def setMipmapFiltering(self, filter: 'QSGTexture.Filtering') -> None: ...
  1143. def isAtlasTexture(self) -> bool: ...
  1144. def normalizedTextureSubRect(self) -> QtCore.QRectF: ...
  1145. def hasMipmaps(self) -> bool: ...
  1146. def hasAlphaChannel(self) -> bool: ...
  1147. def textureSize(self) -> QtCore.QSize: ...
  1148. class QSGDynamicTexture(QSGTexture):
  1149. def __init__(self) -> None: ...
  1150. def updateTexture(self) -> bool: ...
  1151. class QSGOpaqueTextureMaterial(QSGMaterial):
  1152. def __init__(self) -> None: ...
  1153. def anisotropyLevel(self) -> QSGTexture.AnisotropyLevel: ...
  1154. def setAnisotropyLevel(self, level: QSGTexture.AnisotropyLevel) -> None: ...
  1155. def verticalWrapMode(self) -> QSGTexture.WrapMode: ...
  1156. def setVerticalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ...
  1157. def horizontalWrapMode(self) -> QSGTexture.WrapMode: ...
  1158. def setHorizontalWrapMode(self, mode: QSGTexture.WrapMode) -> None: ...
  1159. def filtering(self) -> QSGTexture.Filtering: ...
  1160. def setFiltering(self, filtering: QSGTexture.Filtering) -> None: ...
  1161. def mipmapFiltering(self) -> QSGTexture.Filtering: ...
  1162. def setMipmapFiltering(self, filtering: QSGTexture.Filtering) -> None: ...
  1163. def texture(self) -> QSGTexture|None: ...
  1164. def setTexture(self, texture: QSGTexture|None) -> None: ...
  1165. def compare(self, other: QSGMaterial|None) -> int: ...
  1166. def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ...
  1167. def type(self) -> QSGMaterialType|None: ...
  1168. class QSGTextureMaterial(QSGOpaqueTextureMaterial):
  1169. def __init__(self) -> None: ...
  1170. def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ...
  1171. def type(self) -> QSGMaterialType|None: ...
  1172. class QSGTextureProvider(QtCore.QObject):
  1173. def __init__(self) -> None: ...
  1174. textureChanged: typing.ClassVar[QtCore.pyqtSignal]
  1175. def texture(self) -> QSGTexture|None: ...
  1176. class QSGVertexColorMaterial(QSGMaterial):
  1177. def __init__(self) -> None: ...
  1178. def createShader(self, renderMode: QSGRendererInterface.RenderMode) -> QSGMaterialShader|None: ...
  1179. def type(self) -> QSGMaterialType|None: ...
  1180. def compare(self, other: QSGMaterial|None) -> int: ...