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
- Parameters:
o
-
-
-
Method Details
-
begin
- Returns:
-
blockFormat
- Returns:
-
blockFormatIndex
- Returns:
-
blockNumber
- Returns:
-
charFormat
- Returns:
-
charFormatIndex
- Returns:
-
clearLayout
-
contains
- Parameters:
position
-- Returns:
-
document
- Returns:
-
end
- Returns:
-
firstLineNumber
- Returns:
-
fragmentIndex
See
QTextBlock::
fragmentIndex()const - Returns:
-
isValid
- Returns:
-
isVisible
- Returns:
-
layout
- Returns:
-
length
- Returns:
-
lineCount
- Returns:
-
next
- Returns:
-
assign
- Parameters:
o
-
-
equals
- Parameters:
o
-- Returns:
-
position
- Returns:
-
previous
- Returns:
-
revision
- Returns:
-
setLineCount
- Parameters:
count
-
-
setRevision
- Parameters:
rev
-
-
setUserData
- Parameters:
data
-
-
setUserState
- Parameters:
state
-
-
setVisible
- Parameters:
visible
-
-
text
- Returns:
-
textDirection
- Returns:
-
textFormats
- Returns:
-
textList
- Returns:
-
userData
- Returns:
-
userState
- Returns:
-
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.
-