java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextCursor
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTextCursor>
public class QTextCursor extends QtObject implements Comparable<QTextCursor>, Cloneable
Offers an API to access and modify QTextDocuments
Java wrapper for Qt class QTextCursor
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
QTextCursor.MoveMode
Java wrapper for Qt enum QTextCursor::MoveModestatic class
QTextCursor.MoveOperation
Java wrapper for Qt enum QTextCursor::MoveOperationstatic class
QTextCursor.SelectedTableCells
static class
QTextCursor.SelectionType
Java wrapper for Qt enum QTextCursor::SelectionType -
Constructor Summary
Constructors Modifier Constructor Description QTextCursor()
QTextCursor(QTextBlock block)
QTextCursor(QTextCursor cursor)
QTextCursor(QTextDocument document)
QTextCursor(QTextFrame frame)
protected
QTextCursor(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
-
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 = ""
. -
insertImage
-
insertImage
-
insertImage
-
insertImage
@QtUninvokable public final void insertImage(QTextImageFormat format, QTextFrameFormat.Position alignment) -
insertList
-
insertList
-
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
-
setVisualNavigation
-
swap
-
verticalMovementX
-
visualNavigation
-
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
public int hashCode() -
clone
-