java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextFragment
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTextFragment>
public class QTextFragment extends QtObject implements Comparable<QTextFragment>, Cloneable
Holds a piece of text in a QTextDocument with a single QTextCharFormat
Java wrapper for Qt class QTextFragment
-
Nested Class Summary
-
Constructor Summary
Constructors Modifier Constructor Description QTextFragment()
QTextFragment(QTextFragment o)
protected
QTextFragment(QtObject.QPrivateConstructor p)
Constructor for internal use only. -
Method Summary
Modifier and Type Method Description QTextCharFormat
charFormat()
int
charFormatIndex()
QTextFragment
clone()
int
compareTo(QTextFragment other)
boolean
contains(int position)
boolean
equals(Object other)
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.QList<QGlyphRun>
glyphRuns()
Overloaded function forglyphRuns(int, int)
QList<QGlyphRun>
glyphRuns(int from)
Overloaded function forglyphRuns(int, int)
withlength = -1
.QList<QGlyphRun>
glyphRuns(int from, int length)
int
hashCode()
boolean
isValid()
int
length()
int
position()
String
text()
-
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 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<QTextFragment>
-
hashCode
-
clone
-