java.lang.Object
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 enumQTextLayout::CursorMode
static class
QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's contentstatic enum
Java wrapper for Qt enumQTextLayout::GlyphRunRetrievalFlag
static final class
QFlags
type for enumQTextLayout.GlyphRunRetrievalFlag
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescriptionSeeQTextLayout::
QTextLayout(QTextBlock) 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 void
final QRectF
final boolean
final 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 QList<QTextLayout.FormatRange>
formats()
Overloaded function forglyphRuns(int, int)
glyphRuns
(int from) Overloaded function forglyphRuns(int, int)
withlength = -1
.glyphRuns
(int from, int length) glyphRuns
(int from, int length, QTextLayout.GlyphRunRetrievalFlag ... flags) Overloaded function forglyphRuns(int, int, io.qt.gui.QTextLayout.GlyphRunRetrievalFlags)
.glyphRuns
(int from, int length, QTextLayout.GlyphRunRetrievalFlags flags) 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
setCacheEnabled
(boolean enable) final void
final void
setFlags
(int flags) SeeQTextLayout::
setFlags(int) final void
final void
setFormats
(Collection<? extends QTextLayout.FormatRange> overrides) final void
final void
setPreeditArea
(int position, String text) final void
setRawFont
(QRawFont rawFont) SeeQTextLayout::
setRawFont(QRawFont) 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
See
QTextLayout::
QTextLayout(QTextBlock)
-
-
Method Details
-
beginLayout
-
boundingRect
-
cacheEnabled
-
clearFormats
-
clearLayout
-
createLine
-
cursorMoveStyle
-
drawCursor
-
drawCursor
-
endLayout
-
font
-
formats
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-
glyphRuns
-
glyphRuns
@QtUninvokable public final QList<QGlyphRun> glyphRuns(int from, int length, QTextLayout.GlyphRunRetrievalFlag ... flags) Overloaded function for
glyphRuns(int, int, io.qt.gui.QTextLayout.GlyphRunRetrievalFlags)
. -
glyphRuns
@QtUninvokable public final QList<QGlyphRun> glyphRuns(int from, int length, QTextLayout.GlyphRunRetrievalFlags flags) -
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
See
QTextLayout::
setFlags(int) -
setFont
-
setFormats
@QtUninvokable public final void setFormats(Collection<? extends QTextLayout.FormatRange> overrides) -
setPosition
-
setPreeditArea
-
setRawFont
See
QTextLayout::
setRawFont(QRawFont) -
setText
-
setTextOption
-
text
-
textOption
-