java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextLayout
- All Implemented Interfaces:
QtObjectInterface
public class QTextLayout extends QtObject
Used to lay out and render text
Java wrapper for Qt class QTextLayout
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTextLayout.CursorMode
Java wrapper for Qt enum QTextLayout::CursorModestatic class
QTextLayout.FormatRange
QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content -
Constructor Summary
Constructors Modifier Constructor Description QTextLayout()
QTextLayout(QTextBlock b)
protected
QTextLayout(QtObject.QPrivateConstructor p)
Constructor for internal use only.QTextLayout(String text)
QTextLayout(String text, QFont font)
Overloaded constructor forQTextLayout(java.lang.String, io.qt.gui.QFont, io.qt.gui.QPaintDevice)
withpaintdevice = null
.QTextLayout(String text, QFont font, QPaintDevice paintdevice)
-
Method Summary
-
Constructor Details
-
QTextLayout
public QTextLayout() -
QTextLayout
-
QTextLayout
Overloaded constructor for
QTextLayout(java.lang.String, io.qt.gui.QFont, io.qt.gui.QPaintDevice)
withpaintdevice = null
. -
QTextLayout
-
QTextLayout
-
QTextLayout
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
beginLayout
-
boundingRect
-
cacheEnabled
-
clearFormats
-
clearLayout
-
createLine
-
cursorMoveStyle
-
drawCursor
-
drawCursor
@QtUninvokable public final void drawCursor(QPainter p, QPointF pos, int cursorPosition, int width) -
endLayout
-
font
-
formats
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-
glyphRuns
-
isValidCursorPosition
-
leftCursorPosition
-
lineAt
-
lineCount
-
lineForTextPosition
-
maximumWidth
-
minimumWidth
-
nextCursorPosition
Overloaded function for
nextCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)
withmode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters
. -
nextCursorPosition
-
position
-
preeditAreaPosition
-
preeditAreaText
-
previousCursorPosition
Overloaded function for
previousCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)
withmode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters
. -
previousCursorPosition
-
rightCursorPosition
-
setCacheEnabled
-
setCursorMoveStyle
-
setFlags
-
setFont
-
setFormats
-
setPosition
-
setPreeditArea
-
setRawFont
-
setText
-
setTextOption
-
text
-
textOption
-