java.lang.Object
io.qt.internal.NativeUtility.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's class QTextFragment
-
Nested Class Summary
Nested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextCharFormat
final int
clone()
int
compareTo
(QTextFragment other) final boolean
contains
(int position) boolean
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical.Overloaded function forglyphRuns(int, int)
glyphRuns
(int from) Overloaded function forglyphRuns(int, int)
withlength = -1
.glyphRuns
(int from, int length) int
hashCode()
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
-
QTextFragment
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
charFormat
-
charFormatIndex
-
contains
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-
glyphRuns
-
isValid
-
length
-
position
-
text
-
equals
Description copied from class:QtObject
Used to check if this object shares the same native counterpart with the other object, i.e. the objects are equals if their native counterparts are identical. Qt value types override this method to make a value comparison. Otherwise it will return the result of calling the super class implementation. -
compareTo
- Specified by:
compareTo
in interfaceComparable<QTextFragment>
-
hashCode
-
clone
-