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
-
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) final boolean
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
- Parameters:
o
-
-
-
Method Details
-
charFormat
- Returns:
-
charFormatIndex
- Returns:
-
contains
- Parameters:
position
-- Returns:
-
glyphRuns
- Parameters:
from
-length
-- Returns:
-
isValid
- Returns:
-
length
- Returns:
-
assign
- Parameters:
o
-
-
equals
- Parameters:
o
-- Returns:
-
position
- Returns:
-
text
- Returns:
-
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.
-
glyphRuns
Overloaded function for
glyphRuns(int, int)
withlength = -1
. -
glyphRuns
-