42 #include <QtGui/qcolor.h>
43 #include <QtGui/qevent.h>
44 #include <QtGui/qglyphrun.h>
45 #include <QtGui/qtextcursor.h>
46 #include <QtGui/qtextformat.h>
47 #include <QtGui/qtguiglobal.h>
49 #include <QtCore/qlist.h>
50 #include <QtCore/qnamespace.h>
51 #include <QtCore/qobject.h>
52 #include <QtCore/qrect.h>
53 #include <QtCore/qstring.h>
74 inline bool isValid()
const {
return eng; }
79 qreal descent()
const;
88 int textPosition()
const;
90 int formatIndex()
const;
118 #ifndef QT_NO_RAWFONT
119 void setRawFont(
const QRawFont &rawFont);
129 int preeditAreaPosition()
const;
130 QString preeditAreaText()
const;
146 void setCacheEnabled(
bool enable);
147 bool cacheEnabled()
const;
158 int lineCount()
const;
166 bool isValidCursorPosition(
int pos)
const;
167 int nextCursorPosition(
int oldPos, CursorMode
mode = SkipCharacters)
const;
168 int previousCursorPosition(
int oldPos, CursorMode
mode = SkipCharacters)
const;
169 int leftCursorPosition(
int oldPos)
const;
170 int rightCursorPosition(
int oldPos)
const;
181 QRectF boundingRect()
const;
183 qreal minimumWidth()
const;
184 qreal maximumWidth()
const;
186 #if !defined(QT_NO_RAWFONT)
191 void setFlags(
int flags);
200 QRectF *brect,
int tabstops,
int* tabarray,
int tabarraylen,
217 qreal ascent()
const;
218 qreal descent()
const;
220 qreal leading()
const;
222 void setLeadingIncluded(
bool included);
223 bool leadingIncluded()
const;
225 qreal naturalTextWidth()
const;
226 qreal horizontalAdvance()
const;
227 QRectF naturalTextRect()
const;
239 qreal cursorToX(
int *cursorPos,
Edge edge = Leading)
const;
241 int xToCursor(
qreal x, CursorPosition = CursorBetweenCharacters)
const;
244 void setNumColumns(
int columns);
245 void setNumColumns(
int columns,
qreal alignmentWidth);
250 int textStart()
const;
251 int textLength()
const;
257 #if !defined(QT_NO_RAWFONT)
small capitals from c petite p scientific i
[1]
The QFont class specifies a query for a font used for drawing text.
The QGraphicsSimpleTextItem class provides a simple text path item that you can add to a QGraphicsSce...
The QPainter class performs low-level painting on widgets and other paint devices.
The QPalette class contains color groups for each widget state.
The QPointF class defines a point in the plane using floating point precision.
The QRawFont class provides access to a single physical instance of a font.
The QRectF class defines a finite rectangle in the plane using floating point precision.
The QRect class defines a rectangle in the plane using integer precision.
The QRegion class specifies a clip region for a painter.
The QString class provides a Unicode character string.
The QTextBlock class provides a container for text fragments in a QTextDocument. \inmodule QtGui.
The QTextCharFormat class provides formatting information for characters in a QTextDocument....
The QTextFormat class provides formatting information for a QTextDocument. \inmodule QtGui.
The QTextFragment class holds a piece of text in a QTextDocument with a single QTextCharFormat....
The QTextInlineObject class represents an inline object in a QAbstractTextDocumentLayout and its impl...
QTextInlineObject(int i, QTextEngine *e)
The QTextLayout class is used to lay out and render text. \inmodule QtGui.
QTextEngine * engine() const
The QTextLine class represents a line of text inside a QTextLayout. \inmodule QtGui.
qreal cursorToX(int cursorPos, Edge edge=Leading) const
@ CursorBetweenCharacters
The QTextOption class provides a description of general rich text properties. \inmodule QtGui.
auto it unsigned count const
QHighDpiScaling::Point position(T, QHighDpiScaling::Point::Kind)
QT_END_INCLUDE_NAMESPACE typedef double qreal
#define Q_DISABLE_COPY(Class)
bool operator==(const QMakeBaseKey &one, const QMakeBaseKey &two)
GLenum GLuint GLenum GLsizei length
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLint GLsizei GLsizei height
GLboolean GLboolean GLboolean GLboolean a
[7]
GLenum const void GLbitfield GLsizei numGlyphs
GLint GLsizei GLsizei GLenum format
QT_BEGIN_NAMESPACE void qt_format_text(const QFont &fnt, const QRectF &_r, int tf, const QTextOption *opt, const QString &str, QRectF *brect, int tabstops, int *, int tabarraylen, QPainter *painter)
Q_DECLARE_TYPEINFO(QTextLayout::FormatRange, Q_RELOCATABLE_TYPE)
myFilter draw(painter, QPoint(0, 0), originalPixmap)
QItemSelection * selection
[0]
The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified ...
friend bool operator==(const FormatRange &lhs, const FormatRange &rhs)
friend bool operator!=(const FormatRange &lhs, const FormatRange &rhs)