java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextLayout
- All Implemented Interfaces:
QtObjectInterface
Used to lay out and render text
Java wrapper for Qt class QTextLayout
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QTextLayout::CursorModestatic class
QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's contentNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Modifier and TypeMethodDescriptionfinal QList<QTextLayout.FormatRange>
Deprecated.final void
final QRectF
final boolean
final void
Deprecated.UseclearFormats()
insteadfinal void
final void
final QTextLine
final Qt.CursorMoveStyle
final void
drawCursor
(QPainter p, QPointF pos, int cursorPosition) final void
drawCursor
(QPainter p, QPointF pos, int cursorPosition, int width) final void
final QFont
font()
final QVector<QTextLayout.FormatRange>
formats()
Overloaded function forglyphRuns(int, int)
glyphRuns
(int from) Overloaded function forglyphRuns(int, int)
withlength = -1
.glyphRuns
(int from, int length) final boolean
isValidCursorPosition
(int pos) final int
leftCursorPosition
(int oldPos) final QTextLine
lineAt
(int i) final int
final QTextLine
lineForTextPosition
(int pos) final double
final double
final int
nextCursorPosition
(int oldPos) Overloaded function fornextCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)
withmode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters
.final int
nextCursorPosition
(int oldPos, QTextLayout.CursorMode mode) final QPointF
position()
final int
final String
final int
previousCursorPosition
(int oldPos) Overloaded function forpreviousCursorPosition(int, io.qt.gui.QTextLayout.CursorMode)
withmode = io.qt.gui.QTextLayout.CursorMode.SkipCharacters
.final int
previousCursorPosition
(int oldPos, QTextLayout.CursorMode mode) final int
rightCursorPosition
(int oldPos) final void
setAdditionalFormats
(Collection<QTextLayout.FormatRange> overrides) Deprecated.UsesetFormats(java.util.Collection)
insteadfinal void
setCacheEnabled
(boolean enable) final void
final void
setFlags
(int flags) final void
final void
setFormats
(Collection<QTextLayout.FormatRange> overrides) final void
final void
setPreeditArea
(int position, String text) final void
setRawFont
(QRawFont rawFont) final void
final void
setTextOption
(QTextOption option) final String
text()
final QTextOption
Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
-
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
-
additionalFormats
Deprecated.Useformats()
instead -
beginLayout
-
boundingRect
-
cacheEnabled
-
clearAdditionalFormats
Deprecated.UseclearFormats()
instead -
clearFormats
-
clearLayout
-
createLine
-
cursorMoveStyle
-
drawCursor
-
drawCursor
-
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
-
setAdditionalFormats
@Deprecated @QtUninvokable public final void setAdditionalFormats(Collection<QTextLayout.FormatRange> overrides) Deprecated.UsesetFormats(java.util.Collection)
instead -
setCacheEnabled
-
setCursorMoveStyle
-
setFlags
-
setFont
-
setFormats
-
setPosition
-
setPreeditArea
-
setRawFont
-
setText
-
setTextOption
-
text
-
textOption
-
formats()
instead