QtOpenGLWidgets.pyi 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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.QtOpenGLWidgets, except for defaults which are replaced by "...".
  6. """
  7. # mypy: disable-error-code="override, overload-overlap"
  8. # Module `PySide6.QtOpenGLWidgets`
  9. import PySide6.QtOpenGLWidgets
  10. import PySide6.QtCore
  11. import PySide6.QtGui
  12. import PySide6.QtWidgets
  13. import enum
  14. import typing
  15. from PySide6.QtCore import Signal
  16. class QIntList: ...
  17. class QOpenGLWidget(PySide6.QtWidgets.QWidget):
  18. aboutToCompose : typing.ClassVar[Signal] = ... # aboutToCompose()
  19. aboutToResize : typing.ClassVar[Signal] = ... # aboutToResize()
  20. frameSwapped : typing.ClassVar[Signal] = ... # frameSwapped()
  21. resized : typing.ClassVar[Signal] = ... # resized()
  22. class TargetBuffer(enum.Enum):
  23. LeftBuffer = 0x0
  24. RightBuffer = 0x1
  25. class UpdateBehavior(enum.Enum):
  26. NoPartialUpdate = 0x0
  27. PartialUpdate = 0x1
  28. def __init__(self, /, parent: PySide6.QtWidgets.QWidget | None = ..., f: PySide6.QtCore.Qt.WindowType = ...) -> None: ...
  29. def context(self, /) -> PySide6.QtGui.QOpenGLContext: ...
  30. def currentTargetBuffer(self, /) -> PySide6.QtOpenGLWidgets.QOpenGLWidget.TargetBuffer: ...
  31. @typing.overload
  32. def defaultFramebufferObject(self, /) -> int: ...
  33. @typing.overload
  34. def defaultFramebufferObject(self, targetBuffer: PySide6.QtOpenGLWidgets.QOpenGLWidget.TargetBuffer, /) -> int: ...
  35. def doneCurrent(self, /) -> None: ...
  36. def event(self, e: PySide6.QtCore.QEvent, /) -> bool: ...
  37. def format(self, /) -> PySide6.QtGui.QSurfaceFormat: ...
  38. @typing.overload
  39. def grabFramebuffer(self, /) -> PySide6.QtGui.QImage: ...
  40. @typing.overload
  41. def grabFramebuffer(self, targetBuffer: PySide6.QtOpenGLWidgets.QOpenGLWidget.TargetBuffer, /) -> PySide6.QtGui.QImage: ...
  42. def initializeGL(self, /) -> None: ...
  43. def isValid(self, /) -> bool: ...
  44. @typing.overload
  45. def makeCurrent(self, /) -> None: ...
  46. @typing.overload
  47. def makeCurrent(self, targetBuffer: PySide6.QtOpenGLWidgets.QOpenGLWidget.TargetBuffer, /) -> None: ...
  48. def metric(self, metric: PySide6.QtGui.QPaintDevice.PaintDeviceMetric, /) -> int: ...
  49. def paintEngine(self, /) -> PySide6.QtGui.QPaintEngine: ...
  50. def paintEvent(self, e: PySide6.QtGui.QPaintEvent, /) -> None: ...
  51. def paintGL(self, /) -> None: ...
  52. def redirected(self, p: PySide6.QtCore.QPoint, /) -> PySide6.QtGui.QPaintDevice: ...
  53. def resizeEvent(self, e: PySide6.QtGui.QResizeEvent, /) -> None: ...
  54. def resizeGL(self, w: int, h: int, /) -> None: ...
  55. def setFormat(self, format: PySide6.QtGui.QSurfaceFormat | PySide6.QtGui.QSurfaceFormat.FormatOption, /) -> None: ...
  56. def setTextureFormat(self, texFormat: int, /) -> None: ...
  57. def setUpdateBehavior(self, updateBehavior: PySide6.QtOpenGLWidgets.QOpenGLWidget.UpdateBehavior, /) -> None: ...
  58. def textureFormat(self, /) -> int: ...
  59. def updateBehavior(self, /) -> PySide6.QtOpenGLWidgets.QOpenGLWidget.UpdateBehavior: ...
  60. # eof