|
|||||||||
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.QTextInlineObject
public class QTextInlineObject
The QTextInlineObject class represents an inline object in a QTextLayout
. This class is only used if the text layout is used to lay out parts of a QTextDocument
.
The inline object has various attributes that can be set, for example using, setWidth()
, setAscent()
, and setDescent()
. The rectangle it occupies is given by rect()
, and its direction by isRightToLeft(). Its position in the text layout is given by at(), and its format is given by format()
.
Nested Class Summary |
---|
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 | |
---|---|
double |
ascent()
Returns the inline object's ascent. |
QTextInlineObject |
clone()
This method is reimplemented for internal reasons |
double |
descent()
Returns the inline object's descent. |
QTextFormat |
format()
Returns format of the inline object within the text layout. |
int |
formatIndex()
Returns an integer describing the format of the inline object within the text layout. |
double |
height()
Returns the inline object's total height. |
boolean |
isValid()
Returns true if this inline object is valid; otherwise returns false. |
QRectF |
rect()
Returns the inline object's rectangle. |
void |
setAscent(double a)
Sets the inline object's ascent to a. |
void |
setDescent(double d)
Sets the inline object's decent to d. |
void |
setWidth(double w)
Sets the inline object's width to w. |
Qt.LayoutDirection |
textDirection()
Returns if the object should be laid out right-to-left or left-to-right. |
int |
textPosition()
The position of the inline object within the text layout. |
double |
width()
Returns the inline object's width. |
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 |
Method Detail |
---|
public final double ascent()
setAscent()
, descent()
, width()
, and rect()
.
public final double descent()
setDescent()
, ascent()
, width()
, and rect()
.
public final QTextFormat format()
public final int formatIndex()
public final double height()
ascent()
+ descent()
+ 1. ascent()
, descent()
, width()
, and rect()
.
public final boolean isValid()
public final QRectF rect()
ascent()
, descent()
, and width()
.
public final void setAscent(double a)
ascent()
, setDescent()
, width()
, and rect()
.
public final void setDescent(double d)
descent()
, setAscent()
, width()
, and rect()
.
public final void setWidth(double w)
width()
, ascent()
, descent()
, and rect()
.
public final Qt.LayoutDirection textDirection()
public final int textPosition()
public final double width()
setWidth()
, ascent()
, descent()
, and rect()
.
public QTextInlineObject clone()
clone
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |