java.lang.Object
io.qt.internal.QtJambiObject
io.qt.QtObject
io.qt.gui.QTextBlock
- All Implemented Interfaces:
QtObjectInterface
,Cloneable
,Comparable<QTextBlock>
,Iterable<QTextFragment>
public class QTextBlock
extends QtObject
implements Comparable<QTextBlock>, Cloneable, Iterable<QTextFragment>
Container for text fragments in a QTextDocument
Java wrapper for Qt's class QTextBlock
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
QTextBlock::iterator class provides an iterator for reading the contents of a QTextBlockNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal QTextBlock.iterator
begin()
final QTextBlockFormat
final int
final int
final QTextCharFormat
final int
final void
clone()
int
compareTo
(QTextBlock other) final boolean
contains
(int position) final QTextDocument
document()
final QTextBlock.iterator
end()
boolean
Used to check if this object shares native resources with the other object if the other object is a subtype of QtJambiInterface.final int
final int
int
hashCode()
final boolean
isValid()
final boolean
iterator()
final QTextLayout
layout()
final int
length()
final int
final QTextBlock
next()
final int
position()
final QTextBlock
previous()
final int
revision()
final void
setLineCount
(int count) final void
setRevision
(int rev) final void
final void
setUserState
(int state) final void
setVisible
(boolean visible) final String
text()
final Qt.LayoutDirection
final QVector<QTextLayout.FormatRange>
final QTextList
textList()
final QTextBlockUserData
userData()
final int
Methods inherited from class io.qt.QtObject
dispose, isDisposed
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
QTextBlock
public QTextBlock() -
QTextBlock
-
QTextBlock
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
begin
-
blockFormat
-
blockFormatIndex
-
blockNumber
-
charFormat
-
charFormatIndex
-
clearLayout
-
contains
-
document
-
end
-
firstLineNumber
-
fragmentIndex
-
isValid
-
isVisible
-
layout
-
length
-
lineCount
-
next
-
position
-
previous
-
revision
-
setLineCount
-
setRevision
-
setUserData
-
setUserState
-
setVisible
-
text
-
textDirection
-
textFormats
-
textList
-
userData
-
userState
-
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<QTextBlock>
-
hashCode
-
iterator
- Specified by:
iterator
in interfaceIterable<QTextFragment>
-
clone
-