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>.
|
#include <qpathclipper_p.h>
Public Types | |
enum | Operation { BoolAnd , BoolOr , BoolSub , Simplify } |
Public Member Functions | |
QPathClipper (const QPainterPath &subject, const QPainterPath &clip) | |
QPainterPath | clip (Operation op=BoolAnd) |
bool | intersect () |
bool | contains () |
Static Public Member Functions | |
static bool | pathToRect (const QPainterPath &path, QRectF *rect=nullptr) |
static QPainterPath | intersect (const QPainterPath &path, const QRectF &rect) |
Definition at line 31 of file qpathclipper_p.h.
Enumerator | |
---|---|
BoolAnd | |
BoolOr | |
BoolSub | |
Simplify |
Definition at line 34 of file qpathclipper_p.h.
QPathClipper::QPathClipper | ( | const QPainterPath & | subject, |
const QPainterPath & | clip ) |
Definition at line 1418 of file qpathclipper.cpp.
References QPainterPath::fillRule(), and Qt::WindingFill.
QPainterPath QPathClipper::clip | ( | Operation | op = BoolAnd | ) |
Definition at line 1496 of file qpathclipper.cpp.
References QPainterPath::addPath(), QPainterPath::addRect(), BoolAnd, BoolOr, BoolSub, QPainterPath::boundingRect(), QPainterPath::fillRule(), intersect(), list, Qt::OddEvenFill, pathToRect(), QPainterPath::simplified(), Simplify, and Qt::WindingFill.
bool QPathClipper::contains | ( | ) |
Definition at line 1381 of file qpathclipper.cpp.
References QPainterPath::contains(), QRect::contains(), QPainterPath::controlPointRect(), QPainterPath::elementAt(), QPainterPath::elementCount(), QRect::height(), i, QPainterPath::MoveToElement, pathToRect(), qMax(), qMin(), r1, r2, QPainterPath::Element::type, QRect::width(), QRect::x(), and QRect::y().
bool QPathClipper::intersect | ( | ) |
Definition at line 1330 of file qpathclipper.cpp.
References QPainterPath::contains(), QRect::contains(), QPainterPath::controlPointRect(), QPainterPath::elementAt(), QPainterPath::elementCount(), QRect::height(), i, QPainterPath::intersects(), QPainterPath::MoveToElement, pathToRect(), qMax(), qMin(), r1, r2, QPainterPath::Element::type, QRect::width(), QRect::x(), and QRect::y().
Referenced by clip().
|
static |
Definition at line 2075 of file qpathclipper.cpp.
References rect.
|
static |
Definition at line 1457 of file qpathclipper.cpp.
References rect.
Referenced by clip(), contains(), intersect(), and setClip().