QtSensors.pyi 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659
  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.QtSensors, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtSensors`
  9. import PySide6.QtSensors
  10. import PySide6.QtCore
  11. import os
  12. import enum
  13. import typing
  14. import collections.abc
  15. from PySide6.QtCore import Signal
  16. from shiboken6 import Shiboken
  17. class QAccelerometer(PySide6.QtSensors.QSensor):
  18. accelerationModeChanged : typing.ClassVar[Signal] = ... # accelerationModeChanged(AccelerationMode)
  19. class AccelerationMode(enum.Enum):
  20. Combined = 0x0
  21. Gravity = 0x1
  22. User = 0x2
  23. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, accelerationMode: PySide6.QtSensors.QAccelerometer.AccelerationMode | None = ...) -> None: ...
  24. def accelerationMode(self, /) -> PySide6.QtSensors.QAccelerometer.AccelerationMode: ...
  25. def reading(self, /) -> PySide6.QtSensors.QAccelerometerReading: ...
  26. def setAccelerationMode(self, accelerationMode: PySide6.QtSensors.QAccelerometer.AccelerationMode, /) -> None: ...
  27. class QAccelerometerFilter(PySide6.QtSensors.QSensorFilter):
  28. @typing.overload
  29. def filter(self, reading: PySide6.QtSensors.QAccelerometerReading, /) -> bool: ...
  30. @typing.overload
  31. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  32. class QAccelerometerReading(PySide6.QtSensors.QSensorReading):
  33. def __init__(self, parent: PySide6.QtCore.QObject, /, *, x: float | None = ..., y: float | None = ..., z: float | None = ...) -> None: ...
  34. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  35. def setX(self, x: float, /) -> None: ...
  36. def setY(self, y: float, /) -> None: ...
  37. def setZ(self, z: float, /) -> None: ...
  38. def x(self, /) -> float: ...
  39. def y(self, /) -> float: ...
  40. def z(self, /) -> float: ...
  41. class QAmbientLightFilter(PySide6.QtSensors.QSensorFilter):
  42. @typing.overload
  43. def filter(self, reading: PySide6.QtSensors.QAmbientLightReading, /) -> bool: ...
  44. @typing.overload
  45. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  46. class QAmbientLightReading(PySide6.QtSensors.QSensorReading):
  47. class LightLevel(enum.Enum):
  48. Undefined = 0x0
  49. Dark = 0x1
  50. Twilight = 0x2
  51. Light = 0x3
  52. Bright = 0x4
  53. Sunny = 0x5
  54. def __init__(self, parent: PySide6.QtCore.QObject, /, *, lightLevel: PySide6.QtSensors.QAmbientLightReading.LightLevel | None = ...) -> None: ...
  55. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  56. def lightLevel(self, /) -> PySide6.QtSensors.QAmbientLightReading.LightLevel: ...
  57. def setLightLevel(self, lightLevel: PySide6.QtSensors.QAmbientLightReading.LightLevel, /) -> None: ...
  58. class QAmbientLightSensor(PySide6.QtSensors.QSensor):
  59. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  60. def reading(self, /) -> PySide6.QtSensors.QAmbientLightReading: ...
  61. class QAmbientTemperatureFilter(PySide6.QtSensors.QSensorFilter):
  62. @typing.overload
  63. def filter(self, reading: PySide6.QtSensors.QAmbientTemperatureReading, /) -> bool: ...
  64. @typing.overload
  65. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  66. class QAmbientTemperatureReading(PySide6.QtSensors.QSensorReading):
  67. def __init__(self, parent: PySide6.QtCore.QObject, /, *, temperature: float | None = ...) -> None: ...
  68. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  69. def setTemperature(self, temperature: float, /) -> None: ...
  70. def temperature(self, /) -> float: ...
  71. class QAmbientTemperatureSensor(PySide6.QtSensors.QSensor):
  72. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  73. def reading(self, /) -> PySide6.QtSensors.QAmbientTemperatureReading: ...
  74. class QCompass(PySide6.QtSensors.QSensor):
  75. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  76. def reading(self, /) -> PySide6.QtSensors.QCompassReading: ...
  77. class QCompassFilter(PySide6.QtSensors.QSensorFilter):
  78. @typing.overload
  79. def filter(self, reading: PySide6.QtSensors.QCompassReading, /) -> bool: ...
  80. @typing.overload
  81. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  82. class QCompassReading(PySide6.QtSensors.QSensorReading):
  83. def __init__(self, parent: PySide6.QtCore.QObject, /, *, azimuth: float | None = ..., calibrationLevel: float | None = ...) -> None: ...
  84. def azimuth(self, /) -> float: ...
  85. def calibrationLevel(self, /) -> float: ...
  86. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  87. def setAzimuth(self, azimuth: float, /) -> None: ...
  88. def setCalibrationLevel(self, calibrationLevel: float, /) -> None: ...
  89. class QGyroscope(PySide6.QtSensors.QSensor):
  90. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  91. def reading(self, /) -> PySide6.QtSensors.QGyroscopeReading: ...
  92. class QGyroscopeFilter(PySide6.QtSensors.QSensorFilter):
  93. @typing.overload
  94. def filter(self, reading: PySide6.QtSensors.QGyroscopeReading, /) -> bool: ...
  95. @typing.overload
  96. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  97. class QGyroscopeReading(PySide6.QtSensors.QSensorReading):
  98. def __init__(self, parent: PySide6.QtCore.QObject, /, *, x: float | None = ..., y: float | None = ..., z: float | None = ...) -> None: ...
  99. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  100. def setX(self, x: float, /) -> None: ...
  101. def setY(self, y: float, /) -> None: ...
  102. def setZ(self, z: float, /) -> None: ...
  103. def x(self, /) -> float: ...
  104. def y(self, /) -> float: ...
  105. def z(self, /) -> float: ...
  106. class QHumidityFilter(PySide6.QtSensors.QSensorFilter):
  107. @typing.overload
  108. def filter(self, reading: PySide6.QtSensors.QHumidityReading, /) -> bool: ...
  109. @typing.overload
  110. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  111. class QHumidityReading(PySide6.QtSensors.QSensorReading):
  112. def __init__(self, parent: PySide6.QtCore.QObject, /, *, relativeHumidity: float | None = ..., absoluteHumidity: float | None = ...) -> None: ...
  113. def absoluteHumidity(self, /) -> float: ...
  114. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  115. def relativeHumidity(self, /) -> float: ...
  116. def setAbsoluteHumidity(self, value: float, /) -> None: ...
  117. def setRelativeHumidity(self, percent: float, /) -> None: ...
  118. class QHumiditySensor(PySide6.QtSensors.QSensor):
  119. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  120. def reading(self, /) -> PySide6.QtSensors.QHumidityReading: ...
  121. class QIRProximityFilter(PySide6.QtSensors.QSensorFilter):
  122. @typing.overload
  123. def filter(self, reading: PySide6.QtSensors.QIRProximityReading, /) -> bool: ...
  124. @typing.overload
  125. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  126. class QIRProximityReading(PySide6.QtSensors.QSensorReading):
  127. def __init__(self, parent: PySide6.QtCore.QObject, /, *, reflectance: float | None = ...) -> None: ...
  128. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  129. def reflectance(self, /) -> float: ...
  130. def setReflectance(self, reflectance: float, /) -> None: ...
  131. class QIRProximitySensor(PySide6.QtSensors.QSensor):
  132. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  133. def reading(self, /) -> PySide6.QtSensors.QIRProximityReading: ...
  134. class QIntList: ...
  135. class QLidFilter(PySide6.QtSensors.QSensorFilter):
  136. @typing.overload
  137. def filter(self, reading: PySide6.QtSensors.QLidReading, /) -> bool: ...
  138. @typing.overload
  139. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  140. class QLidReading(PySide6.QtSensors.QSensorReading):
  141. backLidChanged : typing.ClassVar[Signal] = ... # backLidChanged(bool)
  142. frontLidChanged : typing.ClassVar[Signal] = ... # frontLidChanged(bool)
  143. def __init__(self, parent: PySide6.QtCore.QObject, /, *, backLidClosed: bool | None = ..., frontLidClosed: bool | None = ...) -> None: ...
  144. def backLidClosed(self, /) -> bool: ...
  145. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  146. def frontLidClosed(self, /) -> bool: ...
  147. def setBackLidClosed(self, closed: bool, /) -> None: ...
  148. def setFrontLidClosed(self, closed: bool, /) -> None: ...
  149. class QLidSensor(PySide6.QtSensors.QSensor):
  150. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  151. def reading(self, /) -> PySide6.QtSensors.QLidReading: ...
  152. class QLightFilter(PySide6.QtSensors.QSensorFilter):
  153. @typing.overload
  154. def filter(self, reading: PySide6.QtSensors.QLightReading, /) -> bool: ...
  155. @typing.overload
  156. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  157. class QLightReading(PySide6.QtSensors.QSensorReading):
  158. def __init__(self, parent: PySide6.QtCore.QObject, /, *, lux: float | None = ...) -> None: ...
  159. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  160. def lux(self, /) -> float: ...
  161. def setLux(self, lux: float, /) -> None: ...
  162. class QLightSensor(PySide6.QtSensors.QSensor):
  163. fieldOfViewChanged : typing.ClassVar[Signal] = ... # fieldOfViewChanged(double)
  164. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, fieldOfView: float | None = ...) -> None: ...
  165. def fieldOfView(self, /) -> float: ...
  166. def reading(self, /) -> PySide6.QtSensors.QLightReading: ...
  167. def setFieldOfView(self, fieldOfView: float, /) -> None: ...
  168. class QMagnetometer(PySide6.QtSensors.QSensor):
  169. returnGeoValuesChanged : typing.ClassVar[Signal] = ... # returnGeoValuesChanged(bool)
  170. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, returnGeoValues: bool | None = ...) -> None: ...
  171. def reading(self, /) -> PySide6.QtSensors.QMagnetometerReading: ...
  172. def returnGeoValues(self, /) -> bool: ...
  173. def setReturnGeoValues(self, returnGeoValues: bool, /) -> None: ...
  174. class QMagnetometerFilter(PySide6.QtSensors.QSensorFilter):
  175. @typing.overload
  176. def filter(self, reading: PySide6.QtSensors.QMagnetometerReading, /) -> bool: ...
  177. @typing.overload
  178. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  179. class QMagnetometerReading(PySide6.QtSensors.QSensorReading):
  180. def __init__(self, parent: PySide6.QtCore.QObject, /, *, x: float | None = ..., y: float | None = ..., z: float | None = ..., calibrationLevel: float | None = ...) -> None: ...
  181. def calibrationLevel(self, /) -> float: ...
  182. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  183. def setCalibrationLevel(self, calibrationLevel: float, /) -> None: ...
  184. def setX(self, x: float, /) -> None: ...
  185. def setY(self, y: float, /) -> None: ...
  186. def setZ(self, z: float, /) -> None: ...
  187. def x(self, /) -> float: ...
  188. def y(self, /) -> float: ...
  189. def z(self, /) -> float: ...
  190. class QOrientationFilter(PySide6.QtSensors.QSensorFilter):
  191. @typing.overload
  192. def filter(self, reading: PySide6.QtSensors.QOrientationReading, /) -> bool: ...
  193. @typing.overload
  194. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  195. class QOrientationReading(PySide6.QtSensors.QSensorReading):
  196. class Orientation(enum.Enum):
  197. Undefined = 0x0
  198. TopUp = 0x1
  199. TopDown = 0x2
  200. LeftUp = 0x3
  201. RightUp = 0x4
  202. FaceUp = 0x5
  203. FaceDown = 0x6
  204. def __init__(self, parent: PySide6.QtCore.QObject, /, *, orientation: PySide6.QtSensors.QOrientationReading.Orientation | None = ...) -> None: ...
  205. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  206. def orientation(self, /) -> PySide6.QtSensors.QOrientationReading.Orientation: ...
  207. def setOrientation(self, orientation: PySide6.QtSensors.QOrientationReading.Orientation, /) -> None: ...
  208. class QOrientationSensor(PySide6.QtSensors.QSensor):
  209. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  210. def reading(self, /) -> PySide6.QtSensors.QOrientationReading: ...
  211. class QPressureFilter(PySide6.QtSensors.QSensorFilter):
  212. @typing.overload
  213. def filter(self, reading: PySide6.QtSensors.QPressureReading, /) -> bool: ...
  214. @typing.overload
  215. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  216. class QPressureReading(PySide6.QtSensors.QSensorReading):
  217. def __init__(self, parent: PySide6.QtCore.QObject, /, *, pressure: float | None = ..., temperature: float | None = ...) -> None: ...
  218. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  219. def pressure(self, /) -> float: ...
  220. def setPressure(self, pressure: float, /) -> None: ...
  221. def setTemperature(self, temperature: float, /) -> None: ...
  222. def temperature(self, /) -> float: ...
  223. class QPressureSensor(PySide6.QtSensors.QSensor):
  224. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  225. def reading(self, /) -> PySide6.QtSensors.QPressureReading: ...
  226. class QProximityFilter(PySide6.QtSensors.QSensorFilter):
  227. @typing.overload
  228. def filter(self, reading: PySide6.QtSensors.QProximityReading, /) -> bool: ...
  229. @typing.overload
  230. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  231. class QProximityReading(PySide6.QtSensors.QSensorReading):
  232. def __init__(self, parent: PySide6.QtCore.QObject, /, *, close: bool | None = ...) -> None: ...
  233. def close(self, /) -> bool: ...
  234. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  235. def setClose(self, close: bool, /) -> None: ...
  236. class QProximitySensor(PySide6.QtSensors.QSensor):
  237. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  238. def reading(self, /) -> PySide6.QtSensors.QProximityReading: ...
  239. class QRotationFilter(PySide6.QtSensors.QSensorFilter):
  240. @typing.overload
  241. def filter(self, reading: PySide6.QtSensors.QRotationReading, /) -> bool: ...
  242. @typing.overload
  243. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  244. class QRotationReading(PySide6.QtSensors.QSensorReading):
  245. def __init__(self, parent: PySide6.QtCore.QObject, /, *, x: float | None = ..., y: float | None = ..., z: float | None = ...) -> None: ...
  246. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  247. def setFromEuler(self, x: float, y: float, z: float, /) -> None: ...
  248. def x(self, /) -> float: ...
  249. def y(self, /) -> float: ...
  250. def z(self, /) -> float: ...
  251. class QRotationSensor(PySide6.QtSensors.QSensor):
  252. hasZChanged : typing.ClassVar[Signal] = ... # hasZChanged(bool)
  253. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, hasZ: bool | None = ...) -> None: ...
  254. def hasZ(self, /) -> bool: ...
  255. def reading(self, /) -> PySide6.QtSensors.QRotationReading: ...
  256. def setHasZ(self, hasZ: bool, /) -> None: ...
  257. class QSensor(PySide6.QtCore.QObject):
  258. activeChanged : typing.ClassVar[Signal] = ... # activeChanged()
  259. alwaysOnChanged : typing.ClassVar[Signal] = ... # alwaysOnChanged()
  260. availableSensorsChanged : typing.ClassVar[Signal] = ... # availableSensorsChanged()
  261. axesOrientationModeChanged: typing.ClassVar[Signal] = ... # axesOrientationModeChanged(AxesOrientationMode)
  262. bufferSizeChanged : typing.ClassVar[Signal] = ... # bufferSizeChanged(int)
  263. busyChanged : typing.ClassVar[Signal] = ... # busyChanged()
  264. currentOrientationChanged: typing.ClassVar[Signal] = ... # currentOrientationChanged(int)
  265. dataRateChanged : typing.ClassVar[Signal] = ... # dataRateChanged()
  266. efficientBufferSizeChanged: typing.ClassVar[Signal] = ... # efficientBufferSizeChanged(int)
  267. identifierChanged : typing.ClassVar[Signal] = ... # identifierChanged()
  268. maxBufferSizeChanged : typing.ClassVar[Signal] = ... # maxBufferSizeChanged(int)
  269. readingChanged : typing.ClassVar[Signal] = ... # readingChanged()
  270. sensorError : typing.ClassVar[Signal] = ... # sensorError(int)
  271. skipDuplicatesChanged : typing.ClassVar[Signal] = ... # skipDuplicatesChanged(bool)
  272. userOrientationChanged : typing.ClassVar[Signal] = ... # userOrientationChanged(int)
  273. class AxesOrientationMode(enum.Enum):
  274. FixedOrientation = 0x0
  275. AutomaticOrientation = 0x1
  276. UserOrientation = 0x2
  277. class Feature(enum.Enum):
  278. Buffering = 0x0
  279. AlwaysOn = 0x1
  280. GeoValues = 0x2
  281. FieldOfView = 0x3
  282. AccelerationMode = 0x4
  283. SkipDuplicates = 0x5
  284. AxesOrientation = 0x6
  285. PressureSensorTemperature = 0x7
  286. Reserved = 0x101
  287. def __init__(self, type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /, parent: PySide6.QtCore.QObject | None = ..., *, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview | None = ..., connectedToBackend: bool | None = ..., availableDataRates: collections.abc.Sequence[typing.Tuple[int, int]] | None = ..., dataRate: int | None = ..., reading: PySide6.QtSensors.QSensorReading | None = ..., busy: bool | None = ..., active: bool | None = ..., outputRanges: collections.abc.Sequence[PySide6.QtSensors.qoutputrange] | None = ..., outputRange: int | None = ..., description: str | None = ..., error: int | None = ..., alwaysOn: bool | None = ..., skipDuplicates: bool | None = ..., axesOrientationMode: PySide6.QtSensors.QSensor.AxesOrientationMode | None = ..., currentOrientation: int | None = ..., userOrientation: int | None = ..., maxBufferSize: int | None = ..., efficientBufferSize: int | None = ..., bufferSize: int | None = ...) -> None: ...
  288. def addFilter(self, filter: PySide6.QtSensors.QSensorFilter, /) -> None: ...
  289. def availableDataRates(self, /) -> typing.List[typing.Tuple[int, int]]: ...
  290. def axesOrientationMode(self, /) -> PySide6.QtSensors.QSensor.AxesOrientationMode: ...
  291. def backend(self, /) -> PySide6.QtSensors.QSensorBackend: ...
  292. def bufferSize(self, /) -> int: ...
  293. def connectToBackend(self, /) -> bool: ...
  294. def currentOrientation(self, /) -> int: ...
  295. def dataRate(self, /) -> int: ...
  296. @staticmethod
  297. def defaultSensorForType(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> PySide6.QtCore.QByteArray: ...
  298. def description(self, /) -> str: ...
  299. def efficientBufferSize(self, /) -> int: ...
  300. def error(self, /) -> int: ...
  301. def filters(self, /) -> typing.List[PySide6.QtSensors.QSensorFilter]: ...
  302. def identifier(self, /) -> PySide6.QtCore.QByteArray: ...
  303. def isActive(self, /) -> bool: ...
  304. def isAlwaysOn(self, /) -> bool: ...
  305. def isBusy(self, /) -> bool: ...
  306. def isConnectedToBackend(self, /) -> bool: ...
  307. def isFeatureSupported(self, feature: PySide6.QtSensors.QSensor.Feature, /) -> bool: ...
  308. def maxBufferSize(self, /) -> int: ...
  309. def outputRange(self, /) -> int: ...
  310. def outputRanges(self, /) -> typing.List[PySide6.QtSensors.qoutputrange]: ...
  311. def reading(self, /) -> PySide6.QtSensors.QSensorReading: ...
  312. def removeFilter(self, filter: PySide6.QtSensors.QSensorFilter, /) -> None: ...
  313. @staticmethod
  314. def sensorTypes() -> typing.List[PySide6.QtCore.QByteArray]: ...
  315. @staticmethod
  316. def sensorsForType(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> typing.List[PySide6.QtCore.QByteArray]: ...
  317. def setActive(self, active: bool, /) -> None: ...
  318. def setAlwaysOn(self, alwaysOn: bool, /) -> None: ...
  319. def setAxesOrientationMode(self, axesOrientationMode: PySide6.QtSensors.QSensor.AxesOrientationMode, /) -> None: ...
  320. def setBufferSize(self, bufferSize: int, /) -> None: ...
  321. def setCurrentOrientation(self, currentOrientation: int, /) -> None: ...
  322. def setDataRate(self, rate: int, /) -> None: ...
  323. def setEfficientBufferSize(self, efficientBufferSize: int, /) -> None: ...
  324. def setIdentifier(self, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  325. def setMaxBufferSize(self, maxBufferSize: int, /) -> None: ...
  326. def setOutputRange(self, index: int, /) -> None: ...
  327. def setSkipDuplicates(self, skipDuplicates: bool, /) -> None: ...
  328. def setUserOrientation(self, userOrientation: int, /) -> None: ...
  329. def skipDuplicates(self, /) -> bool: ...
  330. def start(self, /) -> bool: ...
  331. def stop(self, /) -> None: ...
  332. def type(self, /) -> PySide6.QtCore.QByteArray: ...
  333. def userOrientation(self, /) -> int: ...
  334. class QSensorBackend(PySide6.QtCore.QObject):
  335. def __init__(self, sensor: PySide6.QtSensors.QSensor, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  336. def addDataRate(self, min: float, max: float, /) -> None: ...
  337. def addOutputRange(self, min: float, max: float, accuracy: float, /) -> None: ...
  338. def isFeatureSupported(self, feature: PySide6.QtSensors.QSensor.Feature, /) -> bool: ...
  339. def newReadingAvailable(self, /) -> None: ...
  340. def reading(self, /) -> PySide6.QtSensors.QSensorReading: ...
  341. def sensor(self, /) -> PySide6.QtSensors.QSensor: ...
  342. def sensorBusy(self, /, busy: bool = ...) -> None: ...
  343. def sensorError(self, error: int, /) -> None: ...
  344. def sensorStopped(self, /) -> None: ...
  345. def setDataRates(self, otherSensor: PySide6.QtSensors.QSensor, /) -> None: ...
  346. def setDescription(self, description: str, /) -> None: ...
  347. def start(self, /) -> None: ...
  348. def stop(self, /) -> None: ...
  349. class QSensorBackendFactory(Shiboken.Object):
  350. def __init__(self, /) -> None: ...
  351. def createBackend(self, sensor: PySide6.QtSensors.QSensor, /) -> PySide6.QtSensors.QSensorBackend: ...
  352. class QSensorChangesInterface(Shiboken.Object):
  353. def __init__(self, /) -> None: ...
  354. def sensorsChanged(self, /) -> None: ...
  355. class QSensorFilter(Shiboken.Object):
  356. def __init__(self, /) -> None: ...
  357. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  358. def setSensor(self, sensor: PySide6.QtSensors.QSensor, /) -> None: ...
  359. class QSensorManager(Shiboken.Object):
  360. def __init__(self, /) -> None: ...
  361. @staticmethod
  362. def createBackend(sensor: PySide6.QtSensors.QSensor, /) -> PySide6.QtSensors.QSensorBackend: ...
  363. @staticmethod
  364. def isBackendRegistered(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> bool: ...
  365. @staticmethod
  366. def registerBackend(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, factory: PySide6.QtSensors.QSensorBackendFactory, /) -> None: ...
  367. @staticmethod
  368. def setDefaultBackend(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  369. @staticmethod
  370. def unregisterBackend(type: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, identifier: PySide6.QtCore.QByteArray | bytes | bytearray | memoryview, /) -> None: ...
  371. class QSensorPluginInterface(Shiboken.Object):
  372. def __init__(self, /) -> None: ...
  373. def registerSensors(self, /) -> None: ...
  374. class QSensorReading(PySide6.QtCore.QObject):
  375. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  376. def setTimestamp(self, timestamp: int, /) -> None: ...
  377. def timestamp(self, /) -> int: ...
  378. def value(self, index: int, /) -> typing.Any: ...
  379. def valueCount(self, /) -> int: ...
  380. class QTapFilter(PySide6.QtSensors.QSensorFilter):
  381. @typing.overload
  382. def filter(self, reading: PySide6.QtSensors.QTapReading, /) -> bool: ...
  383. @typing.overload
  384. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  385. class QTapReading(PySide6.QtSensors.QSensorReading):
  386. class TapDirection(enum.Enum):
  387. Undefined = 0x0
  388. X = 0x1
  389. Y = 0x2
  390. Z = 0x4
  391. X_Pos = 0x11
  392. Y_Pos = 0x22
  393. Z_Pos = 0x44
  394. X_Neg = 0x101
  395. X_Both = 0x111
  396. Y_Neg = 0x202
  397. Y_Both = 0x222
  398. Z_Neg = 0x404
  399. Z_Both = 0x444
  400. def __init__(self, parent: PySide6.QtCore.QObject, /, *, tapDirection: PySide6.QtSensors.QTapReading.TapDirection | None = ..., doubleTap: bool | None = ...) -> None: ...
  401. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  402. def isDoubleTap(self, /) -> bool: ...
  403. def setDoubleTap(self, doubleTap: bool, /) -> None: ...
  404. def setTapDirection(self, tapDirection: PySide6.QtSensors.QTapReading.TapDirection, /) -> None: ...
  405. def tapDirection(self, /) -> PySide6.QtSensors.QTapReading.TapDirection: ...
  406. class QTapSensor(PySide6.QtSensors.QSensor):
  407. returnDoubleTapEventsChanged: typing.ClassVar[Signal] = ... # returnDoubleTapEventsChanged(bool)
  408. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ..., *, returnDoubleTapEvents: bool | None = ...) -> None: ...
  409. def reading(self, /) -> PySide6.QtSensors.QTapReading: ...
  410. def returnDoubleTapEvents(self, /) -> bool: ...
  411. def setReturnDoubleTapEvents(self, returnDoubleTapEvents: bool, /) -> None: ...
  412. class QTiltFilter(PySide6.QtSensors.QSensorFilter):
  413. @typing.overload
  414. def filter(self, reading: PySide6.QtSensors.QTiltReading, /) -> bool: ...
  415. @typing.overload
  416. def filter(self, reading: PySide6.QtSensors.QSensorReading, /) -> bool: ...
  417. class QTiltReading(PySide6.QtSensors.QSensorReading):
  418. def __init__(self, parent: PySide6.QtCore.QObject, /, *, yRotation: float | None = ..., xRotation: float | None = ...) -> None: ...
  419. def copyValuesFrom(self, other: PySide6.QtSensors.QSensorReading, /) -> None: ...
  420. def setXRotation(self, x: float, /) -> None: ...
  421. def setYRotation(self, y: float, /) -> None: ...
  422. def xRotation(self, /) -> float: ...
  423. def yRotation(self, /) -> float: ...
  424. class QTiltSensor(PySide6.QtSensors.QSensor):
  425. def __init__(self, /, parent: PySide6.QtCore.QObject | None = ...) -> None: ...
  426. def calibrate(self, /) -> None: ...
  427. def reading(self, /) -> PySide6.QtSensors.QTiltReading: ...
  428. class qoutputrange(Shiboken.Object):
  429. @typing.overload
  430. def __init__(self, /) -> None: ...
  431. @typing.overload
  432. def __init__(self, qoutputrange: PySide6.QtSensors.qoutputrange, /) -> None: ...
  433. def __copy__(self, /) -> typing.Self: ...
  434. # eof