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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal voidfinal QTextCharFormatfinal intclone()Creates and returns a copy of this object.intcompareTo(QTextFragment other) final booleancontains(int position) final booleanbooleanOverloaded function forglyphRuns(int, int)glyphRuns(int from) Overloaded function forglyphRuns(int, int)withlength = -1.glyphRuns(int from, int length) inthashCode()Returns the objects's hash code computed byqHash(QTextFragment).final booleanisValid()final intlength()final intposition()final Stringtext()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:
compareToin 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
-