java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextLine
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
public class QTextLine extends QtObject implements Cloneable
Represents a line of text inside a QTextLayout
Java wrapper for Qt class QTextLine
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTextLine.CursorPosition
Java wrapper for Qt enum QTextLine::CursorPositionstatic class
QTextLine.Edge
Java wrapper for Qt enum QTextLine::Edge -
Constructor Summary
Constructors Modifier Constructor Description QTextLine()
protected
QTextLine(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description double
ascent()
QTextLine
clone()
double
descent()
void
draw(QPainter p, QPointF point)
List<QGlyphRun>
glyphRuns()
Overloaded function forglyphRuns(int, int)
List<QGlyphRun>
glyphRuns(int from)
Overloaded function forglyphRuns(int, int)
withlength = -1
.List<QGlyphRun>
glyphRuns(int from, int length)
double
height()
double
horizontalAdvance()
boolean
isValid()
double
leading()
boolean
leadingIncluded()
int
lineNumber()
QRectF
naturalTextRect()
double
naturalTextWidth()
QPointF
position()
QRectF
rect()
void
setLeadingIncluded(boolean included)
void
setLineWidth(double width)
void
setNumColumns(int columns)
void
setNumColumns(int columns, double alignmentWidth)
void
setPosition(QPointF pos)
int
textLength()
int
textStart()
double
width()
double
x()
int
xToCursor(double x)
Overloaded function forxToCursor(double, io.qt.gui.QTextLine.CursorPosition)
witharg__2 = io.qt.gui.QTextLine.CursorPosition.CursorBetweenCharacters
.int
xToCursor(double x, QTextLine.CursorPosition arg__2)
double
y()
-
Constructor Details
-
Method Details
-
ascent
-
descent
-
draw
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-
glyphRuns
-
height
-
horizontalAdvance
-
isValid
-
leading
-
leadingIncluded
-
lineNumber
-
naturalTextRect
-
naturalTextWidth
-
position
-
rect
-
setLeadingIncluded
-
setLineWidth
-
setNumColumns
-
setNumColumns
-
setPosition
-
textLength
-
textStart
-
width
-
x
-
xToCursor
Overloaded function for
xToCursor(double, io.qt.gui.QTextLine.CursorPosition)
witharg__2 = io.qt.gui.QTextLine.CursorPosition.CursorBetweenCharacters
. -
xToCursor
-
y
-
clone
-