PySide6.QtGui.QPaintEngineState¶
- class QPaintEngineState¶
- The - QPaintEngineStateclass provides information about the active paint engine’s current state. More…- Synopsis¶- Methods¶
- def - backgroundMode()
- def - brush()
- def - brushOrigin()
- def - clipOperation()
- def - clipPath()
- def - clipRegion()
- def - font()
- def - isClipEnabled()
- def - opacity()
- def - painter()
- def - pen()
- def - renderHints()
- def - state()
- def - transform()
 - Note - This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE - Detailed Description¶- QPaintEngineStaterecords which properties that have changed since the last time the paint engine was updated, as well as their current value.- Which properties that have changed can at any time be retrieved using the - state()function. This function returns an instance of the- DirtyFlagstype which stores an OR combination of- DirtyFlagvalues. The- DirtyFlagenum defines whether a property has changed since the last update or not.- If a property is marked with a dirty flag, its current value can be retrieved using the corresponding get function: - Property Flag - Current Property Value - The - QPaintEngineStateclass also provide the- painter()function which returns a pointer to the painter that is currently updating the paint engine.- An instance of this class, representing the current state of the active paint engine, is passed as argument to the - updateState()function. The only situation in which you will have to use this class directly is when implementing your own paint engine.- See also - PySide6.QtGui.QPaintEngineState.dirtyFlags¶
 - Returns the background brush in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyBackgroundflag.- See also - Returns the background mode in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyBackgroundModeflag.- See also - Returns the brush in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyBrushflag.- See also - brushNeedsResolving()¶
- Return type:
- bool 
 
 - Returns whether the coordinate of the fill have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). - Returns the brush origin in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyBrushOriginflag.- See also - clipOperation()¶
- Return type:
 
 - Returns the clip operation in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes either the- DirtyClipPathor the- DirtyClipRegionflag.- See also - clipPath()¶
- Return type:
 
 - Returns the clip path in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyClipPathflag.- See also - Returns the clip region in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyClipRegionflag.- See also - compositionMode()¶
- Return type:
 
 - Returns the composition mode in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyCompositionModeflag.- See also - Returns the font in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyFontflag.- See also - isClipEnabled()¶
- Return type:
- bool 
 
 - Returns whether clipping is enabled or not in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyClipEnabledflag.- See also - opacity()¶
- Return type:
- float 
 
 - Returns the opacity in the current paint engine state. - Returns a pointer to the painter currently updating the paint engine. - Returns the pen in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyPenflag.- See also - penNeedsResolving()¶
- Return type:
- bool 
 
 - Returns whether the coordinate of the stroke have been specified as bounded by the current rendering operation and have to be resolved (about the currently rendered primitive). - renderHints()¶
- Return type:
- Combination of - RenderHint
 
 - Returns the render hints in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyHintsflag.- See also - Returns a combination of flags identifying the set of properties that need to be updated when updating the paint engine’s state (i.e. during a call to the - updateState()function).- See also - transform()¶
- Return type:
 
 - Returns the matrix in the current paint engine state. - This variable should only be used when the - state()returns a combination which includes the- DirtyTransformflag.- See also