#include <qpaintengine.h>
Inheritance diagram for QTextItem:

Definition at line 47 of file qpaintengine.h.
Public Types | |
| enum | RenderFlag |
Public Member Functions | |
| qreal | descent () const |
| qreal | ascent () const |
| qreal | width () const |
| RenderFlags | renderFlags () const |
| QString | text () const |
| QFont | font () const |
Definition at line 49 of file qpaintengine.h.
00049 { 00050 RightToLeft = 0x1, 00051 Overline = 0x10, 00052 Underline = 0x20, 00053 StrikeOut = 0x40, 00054 00055 Dummy = 0xffffffff 00056 };
| qreal QTextItem::descent | ( | ) | const |
Definition at line 41 of file qpaintengine.cpp.
References QTextItemInt::descent, and QFixed::toReal().
Referenced by QTextItemInt::initFontAttributes().
00042 { 00043 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00044 return ti->descent.toReal(); 00045 }
Here is the call graph for this function:

| qreal QTextItem::ascent | ( | ) | const |
Definition at line 47 of file qpaintengine.cpp.
References QTextItemInt::ascent, and QFixed::toReal().
Referenced by QPicturePaintEngine::drawTextItem(), and QTextItemInt::initFontAttributes().
00048 { 00049 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00050 return ti->ascent.toReal(); 00051 }
Here is the call graph for this function:

| qreal QTextItem::width | ( | ) | const |
Definition at line 53 of file qpaintengine.cpp.
References QFixed::toReal(), and QTextItemInt::width.
00054 { 00055 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00056 return ti->width.toReal(); 00057 }
Here is the call graph for this function:

| QTextItem::RenderFlags QTextItem::renderFlags | ( | ) | const |
Definition at line 59 of file qpaintengine.cpp.
References QTextItemInt::flags.
Referenced by QPicturePaintEngine::drawTextItem().
00060 { 00061 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00062 return ti->flags; 00063 }
| QString QTextItem::text | ( | ) | const |
Definition at line 65 of file qpaintengine.cpp.
References QTextItemInt::chars, and QTextItemInt::num_chars.
Referenced by Q3SVGPaintEngine::drawTextItem(), QPicturePaintEngine::drawTextItem(), and QPainter::drawTextItem().
00066 { 00067 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00068 return QString(ti->chars, ti->num_chars); 00069 }
| QFont QTextItem::font | ( | ) | const |
Definition at line 71 of file qpaintengine.cpp.
References QTextItemInt::f, and QApplication::font().
Referenced by QPicturePaintEngine::drawTextItem(), and QTextItemInt::initFontAttributes().
00072 { 00073 const QTextItemInt *ti = static_cast<const QTextItemInt *>(this); 00074 return ti->f ? *ti->f : QApplication::font(); 00075 }
Here is the call graph for this function:

1.5.1