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
QRegionPrivate Struct Reference
Collaboration diagram for QRegionPrivate:

Public Member Functions

constexpr QRegionPrivate ()
 QRegionPrivate (const QRect &r)
void intersect (const QRect &r)
bool contains (const QRegionPrivate &r) const
bool contains (const QRect &r2) const
bool within (const QRect &r1) const
void updateInnerRect (const QRect &rect)
void vectorize ()
const QRectbegin () const noexcept
const QRectend () const noexcept
void append (const QRect *r)
void append (const QRegionPrivate *r)
void prepend (const QRect *r)
void prepend (const QRegionPrivate *r)
bool canAppend (const QRect *r) const
bool canAppend (const QRegionPrivate *r) const
bool canPrepend (const QRect *r) const
bool canPrepend (const QRegionPrivate *r) const
bool mergeFromRight (QRect *left, const QRect *right)
bool mergeFromLeft (QRect *left, const QRect *right)
bool mergeFromBelow (QRect *top, const QRect *bottom, const QRect *nextToTop, const QRect *nextToBottom)
bool mergeFromAbove (QRect *bottom, const QRect *top, const QRect *nextToBottom, const QRect *nextToTop)
constexpr QRegionPrivate ()
 QRegionPrivate (const QRect &r)
void intersect (const QRect &r)
bool contains (const QRegionPrivate &r) const
bool contains (const QRect &r2) const
bool within (const QRect &r1) const
void updateInnerRect (const QRect &rect)
void vectorize ()
const QRectbegin () const noexcept
const QRectend () const noexcept
void append (const QRect *r)
void append (const QRegionPrivate *r)
void prepend (const QRect *r)
void prepend (const QRegionPrivate *r)
bool canAppend (const QRect *r) const
bool canAppend (const QRegionPrivate *r) const
bool canPrepend (const QRect *r) const
bool canPrepend (const QRegionPrivate *r) const
bool mergeFromRight (QRect *left, const QRect *right)
bool mergeFromLeft (QRect *left, const QRect *right)
bool mergeFromBelow (QRect *top, const QRect *bottom, const QRect *nextToTop, const QRect *nextToBottom)
bool mergeFromAbove (QRect *bottom, const QRect *top, const QRect *nextToBottom, const QRect *nextToTop)

Public Attributes

int numRects
int innerArea
QList< QRectrects
QRect extents
QRect innerRect

Detailed Description

Definition at line 1071 of file qregion.cpp.

Constructor & Destructor Documentation

◆ QRegionPrivate() [1/4]

QRegionPrivate::QRegionPrivate ( )
inlineconstexpr

Definition at line 1078 of file qregion.cpp.

References innerArea, and numRects.

◆ QRegionPrivate() [2/4]

QRegionPrivate::QRegionPrivate ( const QRect & r)
inline

Definition at line 1079 of file qregion.cpp.

References QRegionPrivate(), innerArea, and numRects.

Referenced by QRegionPrivate(), and UnionRectWithRegion().

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

◆ QRegionPrivate() [3/4]

QRegionPrivate::QRegionPrivate ( )
inlineconstexpr

Definition at line 1078 of file qregion.cpp.

◆ QRegionPrivate() [4/4]

QRegionPrivate::QRegionPrivate ( const QRect & r)
inline

Definition at line 1079 of file qregion.cpp.

Member Function Documentation

◆ append() [1/4]

void QRegionPrivate::append ( const QRect * r)
inline

Definition at line 1296 of file qregion.cpp.

References mergeFromBelow(), mergeFromRight(), numRects, updateInnerRect(), and vectorize().

Referenced by UnionRectWithRegion().

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

◆ append() [2/4]

void QRegionPrivate::append ( const QRect * r)
inline

◆ append() [3/4]

void QRegionPrivate::append ( const QRegionPrivate * r)

Definition at line 1327 of file qregion.cpp.

References innerArea, isEmptyHelper(), mergeFromBelow(), mergeFromRight(), numRects, and vectorize().

Referenced by XorRegion().

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

◆ append() [4/4]

void QRegionPrivate::append ( const QRegionPrivate * r)

◆ begin() [1/2]

const QRect * QRegionPrivate::begin ( ) const
inlinenoexcept

Definition at line 1128 of file qregion.cpp.

Referenced by end().

Here is the caller graph for this function:

◆ begin() [2/2]

const QRect * QRegionPrivate::begin ( ) const
inlinenoexcept

Definition at line 1128 of file qregion.cpp.

◆ canAppend() [1/4]

bool QRegionPrivate::canAppend ( const QRect * r) const
inline

Definition at line 1505 of file qregion.cpp.

Referenced by UnionRectWithRegion().

Here is the caller graph for this function:

◆ canAppend() [2/4]

bool QRegionPrivate::canAppend ( const QRect * r) const
inline

◆ canAppend() [3/4]

bool QRegionPrivate::canAppend ( const QRegionPrivate * r) const
inline

Definition at line 1522 of file qregion.cpp.

References numRects.

Referenced by UnionRegion(), and XorRegion().

Here is the caller graph for this function:

◆ canAppend() [4/4]

bool QRegionPrivate::canAppend ( const QRegionPrivate * r) const
inline

◆ canPrepend() [1/4]

bool QRegionPrivate::canPrepend ( const QRect * r) const
inline

Definition at line 1527 of file qregion.cpp.

◆ canPrepend() [2/4]

bool QRegionPrivate::canPrepend ( const QRect * r) const
inline

◆ canPrepend() [3/4]

bool QRegionPrivate::canPrepend ( const QRegionPrivate * r) const
inline

Definition at line 1544 of file qregion.cpp.

References numRects.

◆ canPrepend() [4/4]

bool QRegionPrivate::canPrepend ( const QRegionPrivate * r) const
inline

◆ contains() [1/4]

bool QRegionPrivate::contains ( const QRect & r2) const
inline

Definition at line 1097 of file qregion.cpp.

◆ contains() [2/4]

bool QRegionPrivate::contains ( const QRect & r2) const
inline

Definition at line 1097 of file qregion.cpp.

◆ contains() [3/4]

bool QRegionPrivate::contains ( const QRegionPrivate & r) const
inline

Definition at line 1093 of file qregion.cpp.

Referenced by SubtractRegion(), UnionRegion(), and XorRegion().

Here is the caller graph for this function:

◆ contains() [4/4]

bool QRegionPrivate::contains ( const QRegionPrivate & r) const
inline

Definition at line 1093 of file qregion.cpp.

◆ end() [1/2]

const QRect * QRegionPrivate::end ( ) const
inlinenoexcept

Definition at line 1131 of file qregion.cpp.

References begin(), and numRects.

Here is the call graph for this function:

◆ end() [2/2]

const QRect * QRegionPrivate::end ( ) const
inlinenoexcept

Definition at line 1131 of file qregion.cpp.

◆ intersect() [1/2]

void QRegionPrivate::intersect ( const QRect & r)

Definition at line 1243 of file qregion.cpp.

References innerArea, numRects, and updateInnerRect().

Here is the call graph for this function:

◆ intersect() [2/2]

void QRegionPrivate::intersect ( const QRect & r)

◆ mergeFromAbove() [1/2]

bool QRegionPrivate::mergeFromAbove ( QRect * bottom,
const QRect * top,
const QRect * nextToBottom,
const QRect * nextToTop )
inline

Definition at line 1220 of file qregion.cpp.

References canMergeFromBelow(), and updateInnerRect().

Referenced by prepend(), and prepend().

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

◆ mergeFromAbove() [2/2]

bool QRegionPrivate::mergeFromAbove ( QRect * bottom,
const QRect * top,
const QRect * nextToBottom,
const QRect * nextToTop )
inline

◆ mergeFromBelow() [1/2]

bool QRegionPrivate::mergeFromBelow ( QRect * top,
const QRect * bottom,
const QRect * nextToTop,
const QRect * nextToBottom )
inline

Definition at line 1208 of file qregion.cpp.

References canMergeFromBelow(), and updateInnerRect().

Referenced by append(), and append().

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

◆ mergeFromBelow() [2/2]

bool QRegionPrivate::mergeFromBelow ( QRect * top,
const QRect * bottom,
const QRect * nextToTop,
const QRect * nextToBottom )
inline

◆ mergeFromLeft() [1/2]

bool QRegionPrivate::mergeFromLeft ( QRect * left,
const QRect * right )
inline

Definition at line 1184 of file qregion.cpp.

References canMergeFromLeft(), and updateInnerRect().

Referenced by prepend(), and prepend().

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

◆ mergeFromLeft() [2/2]

bool QRegionPrivate::mergeFromLeft ( QRect * left,
const QRect * right )
inline

◆ mergeFromRight() [1/2]

bool QRegionPrivate::mergeFromRight ( QRect * left,
const QRect * right )
inline

Definition at line 1174 of file qregion.cpp.

References canMergeFromRight(), and updateInnerRect().

Referenced by append(), and append().

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

◆ mergeFromRight() [2/2]

bool QRegionPrivate::mergeFromRight ( QRect * left,
const QRect * right )
inline

◆ prepend() [1/4]

void QRegionPrivate::prepend ( const QRect * r)

Definition at line 1473 of file qregion.cpp.

References mergeFromAbove(), mergeFromLeft(), numRects, updateInnerRect(), and vectorize().

Here is the call graph for this function:

◆ prepend() [2/4]

void QRegionPrivate::prepend ( const QRect * r)

◆ prepend() [3/4]

void QRegionPrivate::prepend ( const QRegionPrivate * r)

Definition at line 1400 of file qregion.cpp.

References innerArea, isEmptyHelper(), mergeFromAbove(), mergeFromLeft(), numRects, and vectorize().

Here is the call graph for this function:

◆ prepend() [4/4]

void QRegionPrivate::prepend ( const QRegionPrivate * r)

◆ updateInnerRect() [1/2]

void QRegionPrivate::updateInnerRect ( const QRect & rect)
inline

Definition at line 1112 of file qregion.cpp.

References innerArea.

Referenced by append(), intersect(), mergeFromAbove(), mergeFromBelow(), mergeFromLeft(), mergeFromRight(), miCoalesce(), miSetExtents(), prepend(), and PtsToRegion().

Here is the caller graph for this function:

◆ updateInnerRect() [2/2]

void QRegionPrivate::updateInnerRect ( const QRect & rect)
inline

Definition at line 1112 of file qregion.cpp.

◆ vectorize() [1/2]

void QRegionPrivate::vectorize ( )
inline

Definition at line 1120 of file qregion.cpp.

References numRects.

Referenced by append(), append(), miRegionOp(), PolygonRegion(), prepend(), and prepend().

Here is the caller graph for this function:

◆ vectorize() [2/2]

void QRegionPrivate::vectorize ( )
inline

Definition at line 1120 of file qregion.cpp.

◆ within() [1/2]

bool QRegionPrivate::within ( const QRect & r1) const
inline

Definition at line 1106 of file qregion.cpp.

◆ within() [2/2]

bool QRegionPrivate::within ( const QRect & r1) const
inline

Definition at line 1106 of file qregion.cpp.

Member Data Documentation

◆ extents

QRect QRegionPrivate::extents

Definition at line 1075 of file qregion.cpp.

◆ innerArea

int QRegionPrivate::innerArea

◆ innerRect

QRect QRegionPrivate::innerRect

Definition at line 1076 of file qregion.cpp.

◆ numRects

◆ rects

QList< QRect > QRegionPrivate::rects

Definition at line 1074 of file qregion.cpp.


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