QTextLine

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.

Constructors

this
this()
Undocumented in source.

Members

Enums

CursorPosition
enum CursorPosition
Undocumented in source.
Edge
enum Edge
Undocumented in source.

Functions

ascent
qreal ascent()
Undocumented in source.
cursorToX
qreal cursorToX(int* cursorPos, Edge edge)
Undocumented in source.
cursorToX
qreal cursorToX(int cursorPos, Edge edge)
Undocumented in source. Be warned that the author may not have intended to support it.
descent
qreal descent()
Undocumented in source.
draw
void draw(QPainter* p, const(QPointF) point, const(QTextLayout.FormatRange)* selection)
Undocumented in source.
glyphRuns
QList!(QGlyphRun) glyphRuns(int from, int length)
Undocumented in source.
height
qreal height()
Undocumented in source.
horizontalAdvance
qreal horizontalAdvance()
Undocumented in source.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
leading
qreal leading()
Undocumented in source.
leadingIncluded
bool leadingIncluded()
Undocumented in source.
lineNumber
int lineNumber()
Undocumented in source. Be warned that the author may not have intended to support it.
naturalTextRect
QRectF naturalTextRect()
Undocumented in source.
naturalTextWidth
qreal naturalTextWidth()
Undocumented in source.
position
QPointF position()
Undocumented in source.
rect
QRectF rect()
Undocumented in source.
setLeadingIncluded
void setLeadingIncluded(bool included)
Undocumented in source.
setLineWidth
void setLineWidth(qreal width)
Undocumented in source.
setNumColumns
void setNumColumns(int columns)
Undocumented in source.
setNumColumns
void setNumColumns(int columns, qreal alignmentWidth)
Undocumented in source.
setPosition
void setPosition(const(QPointF) pos)
Undocumented in source.
textLength
int textLength()
Undocumented in source.
textStart
int textStart()
Undocumented in source.
width
qreal width()
Undocumented in source.
x
qreal x()
Undocumented in source.
xToCursor
int xToCursor(qreal x, CursorPosition )
Undocumented in source.
y
qreal y()
Undocumented in source.

Meta