Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Module « PySide2.QtGui »

Classe « QSurfaceFormat »

Informations générales

Héritage

builtins.object
    Object
        QSurfaceFormat

Définition

class QSurfaceFormat(Object):

Description [extrait de QSurfaceFormat.__doc__]

QSurfaceFormat(self)
QSurfaceFormat(self, options: PySide2.QtGui.QSurfaceFormat.FormatOptions)
QSurfaceFormat(self, other: PySide2.QtGui.QSurfaceFormat)

Constructeur(s)

Signature du constructeur Description
__new__(*args, **kwargs) Create and return a new object. See help(type) for accurate signature. [extrait de __new__.__doc__]
__init__(self, /, *args, **kwargs) Initialize self. See help(type(self)) for accurate signature. [extrait de __init__.__doc__]

Liste des attributs statiques

Nom de l'attribut Valeur
CompatibilityProfilePySide2.QtGui.QSurfaceFormat.OpenGLContextProfile.CompatibilityProfile
CoreProfilePySide2.QtGui.QSurfaceFormat.OpenGLContextProfile.CoreProfile
DebugContextPySide2.QtGui.QSurfaceFormat.FormatOption.DebugContext
DefaultColorSpacePySide2.QtGui.QSurfaceFormat.ColorSpace.DefaultColorSpace
DefaultRenderableTypePySide2.QtGui.QSurfaceFormat.RenderableType.DefaultRenderableType
DefaultSwapBehaviorPySide2.QtGui.QSurfaceFormat.SwapBehavior.DefaultSwapBehavior
DeprecatedFunctionsPySide2.QtGui.QSurfaceFormat.FormatOption.DeprecatedFunctions
DoubleBufferPySide2.QtGui.QSurfaceFormat.SwapBehavior.DoubleBuffer
NoProfilePySide2.QtGui.QSurfaceFormat.OpenGLContextProfile.NoProfile
OpenGLPySide2.QtGui.QSurfaceFormat.RenderableType.OpenGL
OpenGLESPySide2.QtGui.QSurfaceFormat.RenderableType.OpenGLES
OpenVGPySide2.QtGui.QSurfaceFormat.RenderableType.OpenVG
ResetNotificationPySide2.QtGui.QSurfaceFormat.FormatOption.ResetNotification
SingleBufferPySide2.QtGui.QSurfaceFormat.SwapBehavior.SingleBuffer
sRGBColorSpacePySide2.QtGui.QSurfaceFormat.ColorSpace.sRGBColorSpace
StereoBuffersPySide2.QtGui.QSurfaceFormat.FormatOption.StereoBuffers
TripleBufferPySide2.QtGui.QSurfaceFormat.SwapBehavior.TripleBuffer

Liste des opérateurs

Signature de l'opérateur Description
__eq__(self, value) Return self==value. [extrait de __eq__.__doc__]
__ge__(self, value) Return self>=value. [extrait de __ge__.__doc__]
__gt__(self, value) Return self>value. [extrait de __gt__.__doc__]
__le__(self, value) Return self<=value. [extrait de __le__.__doc__]
__lt__(self, value) Return self<value. [extrait de __lt__.__doc__]
__ne__(self, value) Return self!=value. [extrait de __ne__.__doc__]

Liste des méthodes

Toutes les méthodes Méthodes d'instance Méthodes statiques Méthodes dépréciées
Signature de la méthodeDescription
__copy__(self) __copy__(self) [extrait de __copy__.__doc__]
__repr__(self) Return repr(self). [extrait de __repr__.__doc__]
alphaBufferSize(self) -> int alphaBufferSize(self) -> int [extrait de alphaBufferSize.__doc__]
blueBufferSize(self) -> int blueBufferSize(self) -> int [extrait de blueBufferSize.__doc__]
ColorSpace
colorSpace(self) -> PySide2.QtGui.QSurfaceFormat.ColorSpace colorSpace(self) -> PySide2.QtGui.QSurfaceFormat.ColorSpace [extrait de colorSpace.__doc__]
defaultFormat() -> PySide2.QtGui.QSurfaceFormat defaultFormat() -> PySide2.QtGui.QSurfaceFormat [extrait de defaultFormat.__doc__]
depthBufferSize(self) -> int depthBufferSize(self) -> int [extrait de depthBufferSize.__doc__]
FormatOption
FormatOptions
greenBufferSize(self) -> int greenBufferSize(self) -> int [extrait de greenBufferSize.__doc__]
hasAlpha(self) -> bool hasAlpha(self) -> bool [extrait de hasAlpha.__doc__]
majorVersion(self) -> int majorVersion(self) -> int [extrait de majorVersion.__doc__]
minorVersion(self) -> int minorVersion(self) -> int [extrait de minorVersion.__doc__]
OpenGLContextProfile
options(self) -> PySide2.QtGui.QSurfaceFormat.FormatOptions options(self) -> PySide2.QtGui.QSurfaceFormat.FormatOptions [extrait de options.__doc__]
profile(self) -> PySide2.QtGui.QSurfaceFormat.OpenGLContextProfile profile(self) -> PySide2.QtGui.QSurfaceFormat.OpenGLContextProfile [extrait de profile.__doc__]
redBufferSize(self) -> int redBufferSize(self) -> int [extrait de redBufferSize.__doc__]
RenderableType
renderableType(self) -> PySide2.QtGui.QSurfaceFormat.RenderableType renderableType(self) -> PySide2.QtGui.QSurfaceFormat.RenderableType [extrait de renderableType.__doc__]
samples(self) -> int samples(self) -> int [extrait de samples.__doc__]
setAlphaBufferSize(self, size: int) setAlphaBufferSize(self, size: int) [extrait de setAlphaBufferSize.__doc__]
setBlueBufferSize(self, size: int) setBlueBufferSize(self, size: int) [extrait de setBlueBufferSize.__doc__]
setColorSpace(self, colorSpace: PySide2.QtGui.QSurfaceFormat.ColorSpace) setColorSpace(self, colorSpace: PySide2.QtGui.QSurfaceFormat.ColorSpace) [extrait de setColorSpace.__doc__]
setDefaultFormat(format: PySide2.QtGui.QSurfaceFormat) setDefaultFormat(format: PySide2.QtGui.QSurfaceFormat) [extrait de setDefaultFormat.__doc__]
setDepthBufferSize(self, size: int) setDepthBufferSize(self, size: int) [extrait de setDepthBufferSize.__doc__]
setGreenBufferSize(self, size: int) setGreenBufferSize(self, size: int) [extrait de setGreenBufferSize.__doc__]
setMajorVersion(self, majorVersion: int) setMajorVersion(self, majorVersion: int) [extrait de setMajorVersion.__doc__]
setMinorVersion(self, minorVersion: int) setMinorVersion(self, minorVersion: int) [extrait de setMinorVersion.__doc__]
setOption setOption(self, opt: PySide2.QtGui.QSurfaceFormat.FormatOptions) [extrait de setOption.__doc__]
setOptions(self, options: PySide2.QtGui.QSurfaceFormat.FormatOptions) setOptions(self, options: PySide2.QtGui.QSurfaceFormat.FormatOptions) [extrait de setOptions.__doc__]
setProfile(self, profile: PySide2.QtGui.QSurfaceFormat.OpenGLContextProfile) setProfile(self, profile: PySide2.QtGui.QSurfaceFormat.OpenGLContextProfile) [extrait de setProfile.__doc__]
setRedBufferSize(self, size: int) setRedBufferSize(self, size: int) [extrait de setRedBufferSize.__doc__]
setRenderableType(self, type: PySide2.QtGui.QSurfaceFormat.RenderableType) setRenderableType(self, type: PySide2.QtGui.QSurfaceFormat.RenderableType) [extrait de setRenderableType.__doc__]
setSamples(self, numSamples: int) setSamples(self, numSamples: int) [extrait de setSamples.__doc__]
setStencilBufferSize(self, size: int) setStencilBufferSize(self, size: int) [extrait de setStencilBufferSize.__doc__]
setStereo(self, enable: bool) setStereo(self, enable: bool) [extrait de setStereo.__doc__]
setSwapBehavior(self, behavior: PySide2.QtGui.QSurfaceFormat.SwapBehavior) setSwapBehavior(self, behavior: PySide2.QtGui.QSurfaceFormat.SwapBehavior) [extrait de setSwapBehavior.__doc__]
setSwapInterval(self, interval: int) setSwapInterval(self, interval: int) [extrait de setSwapInterval.__doc__]
setVersion(self, major: int, minor: int) setVersion(self, major: int, minor: int) [extrait de setVersion.__doc__]
stencilBufferSize(self) -> int stencilBufferSize(self) -> int [extrait de stencilBufferSize.__doc__]
stereo(self) -> bool stereo(self) -> bool [extrait de stereo.__doc__]
SwapBehavior
swapBehavior(self) -> PySide2.QtGui.QSurfaceFormat.SwapBehavior swapBehavior(self) -> PySide2.QtGui.QSurfaceFormat.SwapBehavior [extrait de swapBehavior.__doc__]
swapInterval(self) -> int swapInterval(self) -> int [extrait de swapInterval.__doc__]
testOption testOption(self, opt: PySide2.QtGui.QSurfaceFormat.FormatOptions) -> bool [extrait de testOption.__doc__]
version(self) -> typing.Tuple[int, int] version(self) -> typing.Tuple[int, int] [extrait de version.__doc__]

Méthodes héritées de la classe Object

__init_subclass__, __subclasshook__

Méthodes héritées de la classe object

__delattr__, __dir__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __str__