|
|||||||||
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.QTextItem
public class QTextItem
The QTextItem class provides all the information required to draw text in a custom paint engine. When you reimplement your own paint engine, you must reimplement QPaintEngine::drawTextItem()
, a function that takes a QTextItem as one of its arguments.
Nested Class Summary | |
---|---|
static class |
QTextItem.RenderFlag
|
static class |
QTextItem.RenderFlags
|
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 | |
---|---|
QTextItem()
This is an overloaded method provided for convenience. |
Method Summary | |
---|---|
double |
ascent()
Corresponds to the ascent of the piece of text that is drawn. |
double |
descent()
Corresponds to the descent of the piece of text that is drawn. |
QFont |
font()
Returns the font that should be used to draw the text. |
QTextItem.RenderFlags |
renderFlags()
Returns the render flags used. |
java.lang.String |
text()
Returns the text that should be drawn. |
double |
width()
Specifies the total width of the text to be drawn. |
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 |
Constructor Detail |
---|
public QTextItem()
Method Detail |
---|
public final double ascent()
ascent
of the piece of text that is drawn.
public final double descent()
descent
of the piece of text that is drawn.
public final QFont font()
public final QTextItem.RenderFlags renderFlags()
public final java.lang.String text()
public final double width()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |