|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QPaintEngineState
public class QPaintEngineState
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.
Which properties that have changed can at any time be retrieved using the state function. This function returns an instance of the QPaintEngine::DirtyFlags type which stores an OR combination of QPaintEngine::DirtyFlag values. The QPaintEngine::DirtyFlag enum 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 |
---|---|
QPaintEngine::DirtyBackground | backgroundBrush |
QPaintEngine::DirtyBackgroundMode | backgroundMode |
QPaintEngine::DirtyBrush | brush |
QPaintEngine::DirtyBrushOrigin | brushOrigin |
QPaintEngine::DirtyClipRegion or QPaintEngine::DirtyClipPath | clipOperation |
QPaintEngine::DirtyClipPath | clipPath |
QPaintEngine::DirtyClipRegion | clipRegion |
QPaintEngine::DirtyCompositionMode | compositionMode |
QPaintEngine::DirtyFont | font |
QPaintEngine::DirtyTransform | matrix |
QPaintEngine::DirtyClipEnabled | isClipEnabled |
QPaintEngine::DirtyPen | pen |
QPaintEngine::DirtyHints | renderHints |
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
Method Summary | |
---|---|
QBrush |
backgroundBrush()
Returns the background brush in the current paint engine state. |
Qt.BGMode |
backgroundMode()
Returns the background mode in the current paint engine state. |
QBrush |
brush()
Returns the brush in the current paint engine state. |
boolean |
brushNeedsResolving()
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). |
QPointF |
brushOrigin()
Returns the brush origin in the current paint engine state. |
Qt.ClipOperation |
clipOperation()
Returns the clip operation in the current paint engine state. |
QPainterPath |
clipPath()
Returns the clip path in the current paint engine state. |
QRegion |
clipRegion()
Returns the clip region in the current paint engine state. |
QPainter.CompositionMode |
compositionMode()
Returns the composition mode in the current paint engine state. |
QFont |
font()
Returns the font in the current paint engine state. |
static QPaintEngineState |
fromNativePointer(QNativePointer nativePointer)
This function returns the QPaintEngineState instance pointed to by nativePointer |
boolean |
isClipEnabled()
Returns wether clipping is enabled or not in the current paint engine state. |
QMatrix |
matrix()
Returns the matrix in the current paint engine state. |
double |
opacity()
Returns the opacity in the current paint engine state. |
QPainter |
painter()
Returns a pointer to the painter currently updating the paint engine. |
QPen |
pen()
Returns the pen in the current paint engine state. |
boolean |
penNeedsResolving()
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). |
QPainter.RenderHints |
renderHints()
Returns the render hints in the current paint engine state. |
protected void |
setDirtyFlags(QPaintEngine.DirtyFlag... dirtyFlags)
Sets this QPaintEngineState's dirtyFlags. |
QPaintEngine.DirtyFlags |
state()
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). |
QTransform |
transform()
Returns the matrix in the current paint engine state. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Method Detail |
---|
public final QBrush backgroundBrush()
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.
public final Qt.BGMode backgroundMode()
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.
public final QBrush brush()
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.
public final boolean brushNeedsResolving()
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).
public final QPointF brushOrigin()
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.
public final Qt.ClipOperation clipOperation()
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.
public final QPainterPath clipPath()
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.
public final QRegion clipRegion()
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.
public final QPainter.CompositionMode compositionMode()
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.
public final QFont font()
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.
public final boolean isClipEnabled()
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.
public final QMatrix matrix()
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.
public final double opacity()
Returns the opacity in the current paint engine state.
public final QPainter painter()
Returns a pointer to the painter currently updating the paint engine.
public final QPen pen()
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.
public final boolean penNeedsResolving()
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).
public final QPainter.RenderHints renderHints()
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.
public final QPaintEngine.DirtyFlags state()
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).
public final QTransform transform()
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.
protected final void setDirtyFlags(QPaintEngine.DirtyFlag... dirtyFlags)
public static QPaintEngineState fromNativePointer(QNativePointer nativePointer)
nativePointer
- the QNativePointer of which object should be returned.
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |