CopperSpice API  1.9.2
QTextLayout::FormatRange Class Reference

This structure is used to apply extra formatting information. More...

Public Members

QTextCharFormat format
 
int length
 
int start
 

Friends

bool operator!= (const FormatRange &lhs, const FormatRange &rhs)
 
bool operator== (const FormatRange &lhs, const FormatRange &rhs)
 

Detailed Description

The QTextLayout::FormatRange structure is used to apply extra formatting information for a specified area in the text layout's content.

See also
QTextLayout::setFormats(), QTextLayout::draw()

Friends And Related Function Documentation

bool operator!= ( const FormatRange &  lhs,
const FormatRange &  rhs 
)
friend

Returns true if lhs is not equal to rhs.

bool operator== ( const FormatRange &  lhs,
const FormatRange &  rhs 
)
friend

Returns true if lhs is equal to rhs.

Member Data Documentation

QTextCharFormat QTextLayout::FormatRange::format

Specifies the format to apply.

int QTextLayout::FormatRange::length

Specifies the number of characters the format range spans.

int QTextLayout::FormatRange::start

Specifies the beginning of the format range within the text layout's text.