Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
Utils::TextBlock Class Reference

#include <qtextblock_p.h>

Collaboration diagram for Utils::TextBlock:

Public Member Functions

bool isValid () const
void setBlockNumber (int blockNumber)
int blockNumber () const
void setPosition (int position)
int position () const
void setLength (int length)
int length () const
TextBlock next () const
TextBlock previous () const
int userState () const
void setUserState (int state)
bool isVisible () const
void setVisible (bool visible)
void setLineCount (int count)
int lineCount () const
void setDocument (TextDocument *document)
TextDocumentdocument () const
QString text () const
int revision () const
void setRevision (int rev)

Friends

bool operator== (const TextBlock &t1, const TextBlock &t2)
bool operator!= (const TextBlock &t1, const TextBlock &t2)

Detailed Description

Definition at line 28 of file qtextblock_p.h.

Member Function Documentation

◆ blockNumber()

int Utils::TextBlock::blockNumber ( ) const

Definition at line 24 of file qtextblock.cpp.

Referenced by Utils::TextCursor::blockNumber(), and operator==.

Here is the caller graph for this function:

◆ document()

TextDocument * Utils::TextBlock::document ( ) const

Definition at line 74 of file qtextblock.cpp.

Referenced by operator==, and text().

Here is the caller graph for this function:

◆ isValid()

bool Utils::TextBlock::isValid ( ) const

Definition at line 14 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block().

Here is the caller graph for this function:

◆ isVisible()

bool Utils::TextBlock::isVisible ( ) const

◆ length()

int Utils::TextBlock::length ( ) const

Definition at line 44 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block(), and text().

Here is the caller graph for this function:

◆ lineCount()

int Utils::TextBlock::lineCount ( ) const

◆ next()

TextBlock Utils::TextBlock::next ( ) const

Definition at line 49 of file qtextblock.cpp.

References Utils::TextDocument::findBlockByNumber().

Referenced by Utils::TextCursor::block().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ position()

int Utils::TextBlock::position ( ) const

Definition at line 34 of file qtextblock.cpp.

Referenced by Utils::TextCursor::block(), Utils::TextCursor::positionInBlock(), and text().

Here is the caller graph for this function:

◆ previous()

TextBlock Utils::TextBlock::previous ( ) const

Definition at line 54 of file qtextblock.cpp.

References Utils::TextDocument::findBlockByNumber().

Here is the call graph for this function:

◆ revision()

int Utils::TextBlock::revision ( ) const

Definition at line 84 of file qtextblock.cpp.

◆ setBlockNumber()

void Utils::TextBlock::setBlockNumber ( int blockNumber)

Definition at line 19 of file qtextblock.cpp.

Referenced by Utils::TextDocument::setPlainText().

Here is the caller graph for this function:

◆ setDocument()

void Utils::TextBlock::setDocument ( TextDocument * document)

Definition at line 69 of file qtextblock.cpp.

Referenced by Utils::TextDocument::setPlainText().

Here is the caller graph for this function:

◆ setLength()

void Utils::TextBlock::setLength ( int length)

Definition at line 39 of file qtextblock.cpp.

Referenced by Utils::TextDocument::setPlainText().

Here is the caller graph for this function:

◆ setLineCount()

void Utils::TextBlock::setLineCount ( int count)

◆ setPosition()

void Utils::TextBlock::setPosition ( int position)

Definition at line 29 of file qtextblock.cpp.

Referenced by Utils::TextDocument::setPlainText().

Here is the caller graph for this function:

◆ setRevision()

void Utils::TextBlock::setRevision ( int rev)

Definition at line 89 of file qtextblock.cpp.

◆ setUserState()

void Utils::TextBlock::setUserState ( int state)

Definition at line 64 of file qtextblock.cpp.

References Utils::TextDocument::setUserState().

Here is the call graph for this function:

◆ setVisible()

void Utils::TextBlock::setVisible ( bool visible)

◆ text()

QString Utils::TextBlock::text ( ) const

Definition at line 79 of file qtextblock.cpp.

References document(), length(), and position().

Here is the call graph for this function:

◆ userState()

int Utils::TextBlock::userState ( ) const

Definition at line 59 of file qtextblock.cpp.

References Utils::TextDocument::userState().

Here is the call graph for this function:

◆ operator!=

bool operator!= ( const TextBlock & t1,
const TextBlock & t2 )
friend

Definition at line 99 of file qtextblock.cpp.

References Utils::operator==().

◆ operator==

bool operator== ( const TextBlock & t1,
const TextBlock & t2 )
friend

Definition at line 94 of file qtextblock.cpp.

References blockNumber(), and document().


The documentation for this class was generated from the following files: