java.lang.Object
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 class QTextBlock
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
QTextBlock::iterator class provides an iterator for reading the contents of a QTextBlock -
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionfinal void
assign
(QTextBlock o) final QTextBlock.iterator
begin()
final QTextBlockFormat
final int
final int
final QTextCharFormat
final int
final void
clone()
Creates and returns a copy of this object.int
compareTo
(QTextBlock other) final boolean
contains
(int position) final QTextDocument
document()
final QTextBlock.iterator
end()
final boolean
equals
(QTextBlock o) boolean
final int
final int
SeeQTextBlock::
fragmentIndex()const int
hashCode()
Returns the objects's hash code computed byqHash(QTextBlock)
.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 QList
<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
-
-
Method Details
-
begin
-
blockFormat
-
blockFormatIndex
-
blockNumber
-
charFormat
-
charFormatIndex
-
clearLayout
-
contains
-
document
-
end
-
firstLineNumber
-
fragmentIndex
See
QTextBlock::
fragmentIndex()const -
isValid
-
isVisible
-
layout
-
length
-
lineCount
-
next
-
assign
-
equals
-
position
-
previous
-
revision
-
setLineCount
-
setRevision
-
setUserData
-
setUserState
-
setVisible
-
text
-
textDirection
-
textFormats
-
textList
-
userData
-
userState
-
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<QTextBlock>
-
hashCode
Returns the objects's hash code computed byqHash(QTextBlock)
. -
iterator
- Specified by:
iterator
in interfaceIterable<QTextFragment>
-
clone
Creates and returns a copy of this object.
-