QTextBlock Class Reference

QTextBlock Class Reference

#include <qtextobject.h>

Class Description

Definition at line 199 of file qtextobject.h.

Classes

class  iterator
 

Public Types

typedef iterator Iterator
 

Public Member Functions

 QTextBlock (QTextDocumentPrivate *priv, int b)
 
 QTextBlock ()
 
 QTextBlock (const QTextBlock &o)
 
QTextBlockoperator= (const QTextBlock &o)
 
bool isValid () const
 
bool operator== (const QTextBlock &o) const
 
bool operator!= (const QTextBlock &o) const
 
bool operator< (const QTextBlock &o) const
 
int position () const
 
int length () const
 
bool contains (int position) const
 
QTextLayoutlayout () const
 
void clearLayout ()
 
QTextBlockFormat blockFormat () const
 
int blockFormatIndex () const
 
QTextCharFormat charFormat () const
 
int charFormatIndex () const
 
Qt::LayoutDirection textDirection () const
 
QString text () const
 
const QTextDocumentdocument () const
 
QTextListtextList () const
 
QTextBlockUserDatauserData () const
 
void setUserData (QTextBlockUserData *data)
 
int userState () const
 
void setUserState (int state)
 
int revision () const
 
void setRevision (int rev)
 
bool isVisible () const
 
void setVisible (bool visible)
 
int blockNumber () const
 
int firstLineNumber () const
 
void setLineCount (int count)
 
int lineCount () const
 
iterator begin () const
 
iterator end () const
 
QTextBlock next () const
 
QTextBlock previous () const
 
QTextDocumentPrivatedocHandle () const
 
int fragmentIndex () const
 

Friends

class QSyntaxHighlighter
 
class QTextDocumentPrivate
 
class QTextLayout
 

Member Typedef Documentation

typedef iterator Iterator

Definition at line 275 of file qtextobject.h.

Constructor & Destructor Documentation

QTextBlock ( QTextDocumentPrivate priv,
int  b 
)
inline

Definition at line 203 of file qtextobject.h.

203 : p(priv), n(b) {}
GLenum GLsizei n
Definition: GLee.h:3432
GLubyte GLubyte b
Definition: GLee.h:5404
GLfloat GLfloat p
Definition: GLee.h:5416
QTextBlock ( )
inline

Definition at line 204 of file qtextobject.h.

204 : p(0), n(0) {}
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
QTextBlock ( const QTextBlock o)
inline

Definition at line 205 of file qtextobject.h.

205 : p(o.p), n(o.n) {}
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416

Member Function Documentation

QTextBlock& operator= ( const QTextBlock o)
inline

Definition at line 206 of file qtextobject.h.

206 { p = o.p; n = o.n; return *this; }
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
bool isValid ( ) const
inline

Definition at line 208 of file qtextobject.h.

208 { return p != 0 && n != 0; }
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
bool operator== ( const QTextBlock o) const
inline

Definition at line 210 of file qtextobject.h.

210 { return p == o.p && n == o.n; }
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
bool operator!= ( const QTextBlock o) const
inline

Definition at line 211 of file qtextobject.h.

211 { return p != o.p || n != o.n; }
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
bool operator< ( const QTextBlock o) const
inline

Definition at line 212 of file qtextobject.h.

212 { return position() < o.position(); }
int position() const
int position ( ) const
int length ( ) const
bool contains ( int  position) const
QTextLayout* layout ( ) const
void clearLayout ( )
QTextBlockFormat blockFormat ( ) const
int blockFormatIndex ( ) const
QTextCharFormat charFormat ( ) const
int charFormatIndex ( ) const
Qt::LayoutDirection textDirection ( ) const
QString text ( ) const
const QTextDocument* document ( ) const
QTextList* textList ( ) const
QTextBlockUserData* userData ( ) const
void setUserData ( QTextBlockUserData data)
int userState ( ) const
void setUserState ( int  state)
int revision ( ) const
void setRevision ( int  rev)
bool isVisible ( ) const
void setVisible ( bool  visible)
int blockNumber ( ) const
int firstLineNumber ( ) const
void setLineCount ( int  count)
int lineCount ( ) const
iterator begin ( ) const
iterator end ( ) const
QTextBlock next ( ) const
QTextBlock previous ( ) const
QTextDocumentPrivate* docHandle ( ) const
inline

Definition at line 283 of file qtextobject.h.

283 { return p; }
GLfloat GLfloat p
Definition: GLee.h:5416
int fragmentIndex ( ) const
inline

Definition at line 284 of file qtextobject.h.

284 { return n; }
GLenum GLsizei n
Definition: GLee.h:3432

Friends And Related Function Documentation

friend class QSyntaxHighlighter
friend

Definition at line 201 of file qtextobject.h.

friend class QTextDocumentPrivate
friend

Definition at line 289 of file qtextobject.h.

friend class QTextLayout
friend

Definition at line 290 of file qtextobject.h.


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