QTextFragment Class Reference

QTextFragment Class Reference

#include <qtextobject.h>

Class Description

Definition at line 297 of file qtextobject.h.

Public Member Functions

 QTextFragment (const QTextDocumentPrivate *priv, int f, int fe)
 
 QTextFragment ()
 
 QTextFragment (const QTextFragment &o)
 
QTextFragmentoperator= (const QTextFragment &o)
 
bool isValid () const
 
bool operator== (const QTextFragment &o) const
 
bool operator!= (const QTextFragment &o) const
 
bool operator< (const QTextFragment &o) const
 
int position () const
 
int length () const
 
bool contains (int position) const
 
QTextCharFormat charFormat () const
 
int charFormatIndex () const
 
QString text () const
 
QList< QGlyphRunglyphRuns () const
 

Constructor & Destructor Documentation

QTextFragment ( const QTextDocumentPrivate *  priv,
int  f,
int  fe 
)
inline

Definition at line 300 of file qtextobject.h.

300 : p(priv), n(f), ne(fe) {}
GLenum GLsizei n
Definition: GLee.h:3432
GLfloat GLfloat p
Definition: GLee.h:5416
GLclampf f
Definition: GLee.h:9303
QTextFragment ( )
inline

Definition at line 301 of file qtextobject.h.

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

Definition at line 302 of file qtextobject.h.

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

Member Function Documentation

QTextFragment& operator= ( const QTextFragment o)
inline

Definition at line 303 of file qtextobject.h.

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

Definition at line 305 of file qtextobject.h.

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

Definition at line 307 of file qtextobject.h.

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

Definition at line 308 of file qtextobject.h.

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

Definition at line 309 of file qtextobject.h.

309 { return position() < o.position(); }
int position() const
int position ( ) const
int length ( ) const
bool contains ( int  position) const
QTextCharFormat charFormat ( ) const
int charFormatIndex ( ) const
QString text ( ) const
QList<QGlyphRun> glyphRuns ( ) const

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