- All Implemented Interfaces:
QtObjectInterface
,Cloneable
- Enclosing class:
QAbstractTextDocumentLayout
QAbstractTextDocumentLayout::Selection class is a convenience class defining the parameters of a selection
Java wrapper for Qt class QAbstractTextDocumentLayout::Selection
-
Constructor Summary
ConstructorDescriptionSeeQAbstractTextDocumentLayout::Selection::
Selection() Selection
(QTextCursor cursor, QTextCharFormat format) SeeQAbstractTextDocumentLayout::Selection::
Selection{QTextCursor, QTextCharFormat} SeeQAbstractTextDocumentLayout::Selection::
Selection(QAbstractTextDocumentLayout::Selection) -
Method Summary
Modifier and TypeMethodDescriptionclone()
Creates and returns a copy of this object.final QTextCursor
cursor()
The selection's cursorfinal boolean
Seeoperator==(QAbstractTextDocumentLayout::Selection,
QAbstractTextDocumentLayout::Selection) boolean
Seeoperator==(QAbstractTextDocumentLayout::Selection,
QAbstractTextDocumentLayout::Selection) final QTextCharFormat
format()
The format of the selectionint
hashCode()
Returns the objects's hash code computed byqHash(QAbstractTextDocumentLayout::Selection)
.final void
setCursor
(QTextCursor cursor) The selection's cursorfinal void
setFormat
(QTextCharFormat format) The format of the selectionMethods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
Selection
public Selection()See
QAbstractTextDocumentLayout::Selection::
Selection() -
Selection
See
QAbstractTextDocumentLayout::Selection::
Selection(QAbstractTextDocumentLayout::Selection) - Parameters:
other
-
-
Selection
See
QAbstractTextDocumentLayout::Selection::
Selection{QTextCursor, QTextCharFormat} - Parameters:
cursor
-format
-
-
-
Method Details
-
equals
See
operator==(QAbstractTextDocumentLayout::Selection,
QAbstractTextDocumentLayout::Selection) - Parameters:
v2
-- Returns:
-
setCursor
The selection's cursor
- Parameters:
cursor
-
-
cursor
The selection's cursor
- Returns:
-
setFormat
The format of the selection
- Parameters:
format
-
-
format
The format of the selection
- Returns:
-
equals
See
operator==(QAbstractTextDocumentLayout::Selection,
QAbstractTextDocumentLayout::Selection) -
hashCode
Returns the objects's hash code computed byqHash(QAbstractTextDocumentLayout::Selection)
. -
clone
Creates and returns a copy of this object.
See
QAbstractTextDocumentLayout::Selection::
Selection(QAbstractTextDocumentLayout::Selection)
-