java.lang.Object
io.qt.QtObject
io.qt.gui.QTextFragment
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTextFragment>
Holds a piece of text in a QTextDocument with a single QTextCharFormat
Java wrapper for Qt class QTextFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
final QTextCharFormat
final int
clone()
Creates and returns a copy of this object.int
compareTo
(QTextFragment other) final boolean
contains
(int position) boolean
Overloaded function forglyphRuns(int, int)
glyphRuns
(int from) Overloaded function forglyphRuns(int, int)
withlength = -1
.glyphRuns
(int from, int length) int
hashCode()
Returns the objects's hash code computed byqHash(QTextFragment)
.final boolean
isValid()
final int
length()
final int
position()
final String
text()
Methods inherited from class io.qt.QtObject
dispose, isDisposed
-
Constructor Details
-
QTextFragment
public QTextFragment() -
QTextFragment
-
-
Method Details
-
charFormat
-
charFormatIndex
-
contains
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-
glyphRuns
-
isValid
-
length
-
assign
-
position
-
text
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QTextFragment>
-
hashCode
Returns the objects's hash code computed byqHash(QTextFragment)
. -
clone
Creates and returns a copy of this object.
-