Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.trolltech.qt.gui
Class QTextItem

    java.lang.Object
      com.trolltech.qt.QSignalEmitter
          com.trolltech.qt.QtJambiObject
              com.trolltech.qt.gui.QTextItem

All Implemented Interfaces:
  QtJambiInterface

    public class QTextItem

extends QtJambiObject

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` This enum describes how to render the widget when calling `QWidget::render()`.
`static class` | `QTextItem.RenderFlags` This is a flags class for com.trolltech.qt.gui.QTextItem.RenderFlag

Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter
`QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9`

Constructor Summary
`QTextItem()` Creates a new QTextItem

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.
`static QTextItem` | `fromNativePointer(QNativePointer nativePointer)` This method returns the QTextItem instance pointed to by `nativePointer`.
`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 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

### QTextItem

    public QTextItem()

  Creates a new QTextItem

Method Detail

### ascent

    public final double ascent()

  Corresponds to the `ascent` of the piece of text that is drawn.

### descent

    public final double descent()

  Corresponds to the `descent` of the piece of text that is drawn.

### font

    public final QFont font()

  Returns the font that should be used to draw the text.

### renderFlags

    public final QTextItem.RenderFlags renderFlags()

  Returns the render flags used.

### text

    public final java.lang.String text()

  Returns the text that should be drawn.

### width

    public final double width()

  Specifies the total width of the text to be drawn.

### fromNativePointer

    public static QTextItem fromNativePointer(QNativePointer nativePointer)

  This method returns the QTextItem instance pointed to by `nativePointer`.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD