|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.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:
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.
QPaintEngine
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
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. |
protected QPaintEngine.DirtyFlags |
dirtyFlags()
|
QFont |
font()
Returns the font in the current paint engine state. |
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.DirtyFlags 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. |
QTransform |
transform()
Returns the matrix in the current paint engine state. |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
clone, 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()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyBackground
flag.
state()
, and QPaintEngine::updateState()
.
public final Qt.BGMode backgroundMode()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyBackgroundMode
flag.
state()
, and QPaintEngine::updateState()
.
public final QBrush brush()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyBrush
flag.
state()
, and QPaintEngine::updateState()
.
public final boolean brushNeedsResolving()
public final QPointF brushOrigin()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyBrushOrigin
flag.
state()
, and QPaintEngine::updateState()
.
public final Qt.ClipOperation clipOperation()
This variable should only be used when the state()
returns a combination which includes either the QPaintEngine::DirtyClipPath
or the QPaintEngine::DirtyClipRegion
flag.
state()
, and QPaintEngine::updateState()
.
public final QPainterPath clipPath()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyClipPath
flag.
state()
, and QPaintEngine::updateState()
.
public final QRegion clipRegion()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyClipRegion
flag.
state()
, and QPaintEngine::updateState()
.
public final QPainter.CompositionMode compositionMode()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyCompositionMode
flag.
state()
, and QPaintEngine::updateState()
.
public final QFont font()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyFont
flag.
state()
, and QPaintEngine::updateState()
.
public final boolean isClipEnabled()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyClipEnabled
flag.
state()
, and QPaintEngine::updateState()
.
public final QMatrix matrix()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyTransform
flag.
state()
, and QPaintEngine::updateState()
.
public final double opacity()
public final QPainter painter()
public final QPen pen()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyPen
flag.
state()
, and QPaintEngine::updateState()
.
public final boolean penNeedsResolving()
public final QPainter.RenderHints renderHints()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyHints
flag.
state()
, and QPaintEngine::updateState()
.
public final QPaintEngine.DirtyFlags state()
QPaintEngine::updateState()
function). QPaintEngine::updateState()
.
public final QTransform transform()
This variable should only be used when the state()
returns a combination which includes the QPaintEngine::DirtyTransform
flag.
state()
, and QPaintEngine::updateState()
.
protected final void setDirtyFlags(QPaintEngine.DirtyFlags dirtyFlags)
protected final QPaintEngine.DirtyFlags dirtyFlags()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |