The QPaintEngineState class provides information about the active paint engine's current state.
QPaintEngineState records which properties that have changed since the last time the paint engine was updated, as well as their current value.
If a property is marked with a dirty flag, its current value can be retrieved using the corresponding get function:
The QPaintEngineState class 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 QPaintEngine::updateState() function. The only situation in which you will have to use this class directly is when implementing your own paint engine.
See also QPaintEngine.
Member Function Documentation
QBrush QPaintEngineState::backgroundBrush () const
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 QPaintEngine::DirtyBackground flag.
See also state() and QPaintEngine::updateState().
Qt::BGMode QPaintEngineState::backgroundMode () const
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 QPaintEngine::DirtyBackgroundMode flag.
See also state() and QPaintEngine::updateState().
QBrush QPaintEngineState::brush () const
Returns the brush in the current paint engine state.
This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyBrush flag.
See also state() and QPaintEngine::updateState().
QPointF QPaintEngineState::brushOrigin () const
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 QPaintEngine::DirtyBrushOrigin flag.
See also state() and QPaintEngine::updateState().
Qt::ClipOperation QPaintEngineState::clipOperation () const
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 QPaintEngine::DirtyClipPath or the QPaintEngine::DirtyClipRegion flag.
See also state() and QPaintEngine::updateState().
QPainterPath QPaintEngineState::clipPath () const
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 QPaintEngine::DirtyClipPath flag.
See also state() and QPaintEngine::updateState().
QRegion QPaintEngineState::clipRegion () const
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 QPaintEngine::DirtyClipRegion flag.
See also state() and QPaintEngine::updateState().
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 QPaintEngine::DirtyCompositionMode flag.
See also state() and QPaintEngine::updateState().
QFont QPaintEngineState::font () const
Returns the font in the current paint engine state.
This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyFont flag.
See also state() and QPaintEngine::updateState().
bool QPaintEngineState::isClipEnabled () const
Returns wether 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 QPaintEngine::DirtyClipEnabled flag.
See also state() and QPaintEngine::updateState().
QMatrix QPaintEngineState::matrix () const
Returns the matrix in the current paint engine state.
This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyTransform flag.
See also state() and QPaintEngine::updateState().
QPainter * QPaintEngineState::painter () const
Returns a pointer to the painter currently updating the paint engine.
QPen QPaintEngineState::pen () const
Returns the pen in the current paint engine state.
This variable should only be used when the state() returns a combination which includes the QPaintEngine::DirtyPen flag.
See also state() and QPaintEngine::updateState().
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 QPaintEngine::DirtyHints flag.
See also state() and QPaintEngine::updateState().
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 QPaintEngine::updateState() function).
See also QPaintEngine::updateState().