Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QTextLayout::FormatRange Class Reference

\reentrant More...

#include <qtextlayout.h>

+ Collaboration diagram for QTextLayout::FormatRange:

Public Attributes

int start
 
int length
 
QTextCharFormat format
 

Friends

bool operator== (const FormatRange &lhs, const FormatRange &rhs)
 \variable QTextLayout::FormatRange::start Specifies the beginning of the format range within the text layout's text.
 
bool operator!= (const FormatRange &lhs, const FormatRange &rhs)
 Returns true if any of the {start}, {length}, or {format} fields in lhs and rhs contain different values respectively.
 

Detailed Description

\reentrant

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

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

Definition at line 107 of file qtextlayout.h.

Friends And Related Symbol Documentation

◆ operator!=

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

Returns true if any of the {start}, {length}, or {format} fields in lhs and rhs contain different values respectively.

Definition at line 114 of file qtextlayout.h.

◆ operator==

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

\variable QTextLayout::FormatRange::start Specifies the beginning of the format range within the text layout's text.

\variable QTextLayout::FormatRange::length Specifies the number of characters the format range spans.

\variable QTextLayout::FormatRange::format Specifies the format to apply.

Returns true if the {start}, {length}, and {format} fields in lhs and rhs contain the same values respectively.

Definition at line 112 of file qtextlayout.h.

Member Data Documentation

◆ format

QTextCharFormat QTextLayout::FormatRange::format

Definition at line 110 of file qtextlayout.h.

Referenced by QQuickStyledTextPrivate::parse().

◆ length

int QTextLayout::FormatRange::length

◆ start


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