|
|||||||||
| 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.QStyleOption
com.trolltech.qt.gui.QStyleOptionGraphicsItem
public class QStyleOptionGraphicsItem
The QStyleOptionGraphicsItem class is used to describe the parameters needed to draw a QGraphicsItem. For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOption, and QGraphicsItem::paint().
| Nested Class Summary | |
|---|---|
static class |
QStyleOptionGraphicsItem.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionGraphicsItem.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
| Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption |
|---|
QStyleOption.OptionType |
| 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 |
| Constructor Summary | |
|---|---|
QStyleOptionGraphicsItem()
Constructs a QStyleOptionGraphicsItem. |
|
QStyleOptionGraphicsItem(QStyleOptionGraphicsItem other)
Constructs a copy of other. |
|
| Method Summary | |
|---|---|
QStyleOptionGraphicsItem |
clone()
This method is reimplemented for internal reasons |
QRectF |
exposedRect()
This variable holds the exposed rectangle, in item coordinates. |
double |
levelOfDetail()
This variable holds a simple metric for determining an item's level of detail. |
QMatrix |
matrix()
This variable holds the complete transformation matrix for the item. |
void |
setExposedRect(QRectF exposedRect)
This variable holds the exposed rectangle, in item coordinates. |
void |
setLevelOfDetail(double levelOfDetail)
This variable holds a simple metric for determining an item's level of detail. |
void |
setMatrix(QMatrix matrix)
This variable holds the complete transformation matrix for the item. |
| Methods inherited from class com.trolltech.qt.gui.QStyleOption |
|---|
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setType, setVersion, state, type, version |
| 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 |
|---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Constructor Detail |
|---|
public QStyleOptionGraphicsItem()
QStyleOptionGraphicsItem. The levelOfDetail parameter is initialized to 1.
public QStyleOptionGraphicsItem(QStyleOptionGraphicsItem other)
| Method Detail |
|---|
public final void setExposedRect(QRectF exposedRect)
QGraphicsItem::boundingRect().
public final QRectF exposedRect()
QGraphicsItem::boundingRect().
public final void setMatrix(QMatrix matrix)
To find the dimentions of an item in screen coordinates (i.e., pixels), you can use the mapping functions of QMatrix, such as QMatrix::map().
public final QMatrix matrix()
To find the dimentions of an item in screen coordinates (i.e., pixels), you can use the mapping functions of QMatrix, such as QMatrix::map().
public final void setLevelOfDetail(double levelOfDetail)
For more advanced level-of-detail metrics, use QStyleOptionGraphicsItem::matrix directly.
public final double levelOfDetail()
For more advanced level-of-detail metrics, use QStyleOptionGraphicsItem::matrix directly.
public QStyleOptionGraphicsItem clone()
clone in class QStyleOption
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||