- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTextCursor>
Offers an API to access and modify QTextDocuments
Java wrapper for Qt's class QTextCursor
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QTextCursor::MoveModestatic enum
Java wrapper for Qt enum QTextCursor::MoveOperationstatic final class
static enum
Java wrapper for Qt enum QTextCursor::SelectionTypeNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionQTextCursor
(QTextBlock block) QTextCursor
(QTextCursor cursor) QTextCursor
(QTextDocument document) QTextCursor
(QTextFrame frame) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal int
anchor()
final boolean
final boolean
final boolean
atEnd()
final boolean
atStart()
final void
final QTextBlock
block()
final QTextCharFormat
final QTextBlockFormat
final int
final QTextCharFormat
final void
clone()
final int
int
compareTo
(QTextCursor other) final QTextList
createList
(QTextListFormat format) final QTextList
createList
(QTextListFormat.Style style) final QTextFrame
final QTextList
final QTextTable
final void
final void
final QTextDocument
document()
final void
boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final boolean
int
hashCode()
final boolean
final void
final void
insertBlock
(QTextBlockFormat format) final void
insertBlock
(QTextBlockFormat format, QTextCharFormat charFormat) final void
insertFragment
(QTextDocumentFragment fragment) final QTextFrame
insertFrame
(QTextFrameFormat format) final void
insertHtml
(String html) final void
insertImage
(QImage image) Overloaded function forinsertImage(io.qt.gui.QImage, java.lang.String)
withname = (String)null
.final void
insertImage
(QImage image, String name) final void
insertImage
(QTextImageFormat format) final void
insertImage
(QTextImageFormat format, QTextFrameFormat.Position alignment) final void
insertImage
(String name) final QTextList
insertList
(QTextListFormat format) final QTextList
insertList
(QTextListFormat.Style style) final void
insertMarkdown
(String markdown) Overloaded function forinsertMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
.final void
insertMarkdown
(String markdown, QTextDocument.MarkdownFeature... features) Overloaded function forinsertMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
.final void
insertMarkdown
(String markdown, QTextDocument.MarkdownFeatures features) final QTextTable
insertTable
(int rows, int cols) final QTextTable
insertTable
(int rows, int cols, QTextTableFormat format) final void
insertText
(String text) final void
insertText
(String text, QTextCharFormat format) final boolean
isCopyOf
(QTextCursor other) final boolean
isNull()
final void
final boolean
final void
mergeBlockCharFormat
(QTextCharFormat modifier) final void
mergeBlockFormat
(QTextBlockFormat modifier) final void
mergeCharFormat
(QTextCharFormat modifier) final boolean
Overloaded function formovePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)
final boolean
Overloaded function formovePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)
withn = 1
.final boolean
movePosition
(QTextCursor.MoveOperation op, QTextCursor.MoveMode arg__2, int n) final int
position()
final int
final void
final void
select
(QTextCursor.SelectionType selection) final String
final QTextDocumentFragment
final int
final int
final void
setBlockCharFormat
(QTextCharFormat format) final void
setBlockFormat
(QTextBlockFormat format) final void
setCharFormat
(QTextCharFormat format) final void
setKeepPositionOnInsert
(boolean b) final void
setPosition
(int pos) Overloaded function forsetPosition(int, io.qt.gui.QTextCursor.MoveMode)
withmode = io.qt.gui.QTextCursor.MoveMode.MoveAnchor
.final void
setPosition
(int pos, QTextCursor.MoveMode mode) final void
setVerticalMovementX
(int x) final void
setVisualNavigation
(boolean b) final void
swap
(QTextCursor other) final int
final boolean
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QTextCursor
public QTextCursor() -
QTextCursor
-
QTextCursor
-
QTextCursor
-
QTextCursor
-
QTextCursor
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
anchor
-
atBlockEnd
-
atBlockStart
-
atEnd
-
atStart
-
beginEditBlock
-
block
-
blockCharFormat
-
blockFormat
-
blockNumber
-
charFormat
-
clearSelection
-
columnNumber
-
createList
-
createList
-
currentFrame
-
currentList
-
currentTable
-
deleteChar
-
deletePreviousChar
-
document
-
endEditBlock
-
hasComplexSelection
-
hasSelection
-
insertBlock
-
insertBlock
-
insertBlock
-
insertFragment
-
insertFrame
-
insertHtml
-
insertImage
Overloaded function for
insertImage(io.qt.gui.QImage, java.lang.String)
withname = (String)null
. -
insertImage
-
insertImage
-
insertImage
-
insertImage
@QtUninvokable public final void insertImage(QTextImageFormat format, QTextFrameFormat.Position alignment) -
insertList
-
insertList
-
insertMarkdown
@QtUninvokable public final void insertMarkdown(String markdown, QTextDocument.MarkdownFeature... features) Overloaded function for
insertMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
. -
insertMarkdown
Overloaded function for
insertMarkdown(java.lang.String, io.qt.gui.QTextDocument.MarkdownFeatures)
withfeatures = new io.qt.gui.QTextDocument.MarkdownFeatures(20236)
. -
insertMarkdown
@QtUninvokable public final void insertMarkdown(String markdown, QTextDocument.MarkdownFeatures features) -
insertTable
-
insertTable
-
insertText
-
insertText
-
isCopyOf
-
isNull
-
joinPreviousEditBlock
-
keepPositionOnInsert
-
mergeBlockCharFormat
-
mergeBlockFormat
-
mergeCharFormat
-
movePosition
@QtUninvokable public final boolean movePosition(QTextCursor.MoveOperation op, QTextCursor.MoveMode arg__2) Overloaded function for
movePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)
withn = 1
. -
movePosition
Overloaded function for
movePosition(io.qt.gui.QTextCursor.MoveOperation, io.qt.gui.QTextCursor.MoveMode, int)
with:
arg__2 = io.qt.gui.QTextCursor.MoveMode.MoveAnchor
n = 1
-
movePosition
@QtUninvokable public final boolean movePosition(QTextCursor.MoveOperation op, QTextCursor.MoveMode arg__2, int n) -
position
-
positionInBlock
-
removeSelectedText
-
select
-
selectedTableCells
-
selectedText
-
selection
-
selectionEnd
-
selectionStart
-
setBlockCharFormat
-
setBlockFormat
-
setCharFormat
-
setKeepPositionOnInsert
-
setPosition
Overloaded function for
setPosition(int, io.qt.gui.QTextCursor.MoveMode)
withmode = io.qt.gui.QTextCursor.MoveMode.MoveAnchor
. -
setPosition
-
setVerticalMovementX
-
swap
-
verticalMovementX
-
equals
Description copied from class:QtObject
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QTextCursor>
-
hashCode
-
clone
-