![]() |
Qt 6.x
The Qt SDK
|
Namespaces | |
namespace | QDrawBorderPixmap |
Classes | |
struct | QTileRules |
Typedefs | |
typedef QVarLengthArray< QPainter::PixmapFragment, 16 > | QPixmapFragmentsArray |
Functions | |
static QMargins | normalizedMargins (const QMargins &m) |
void | qDrawBorderPixmap (QPainter *painter, const QRect &targetRect, const QMargins &targetMarginsIn, const QPixmap &pixmap, const QRect &sourceRect, const QMargins &sourceMarginsIn, const QTileRules &rules, QDrawBorderPixmap::DrawingHints hints) |
Definition at line 27 of file qsgsoftwareinternalimagenode_p.h.
Definition at line 16 of file qsgsoftwareinternalimagenode.cpp.
References qMax().
Referenced by qDrawBorderPixmap().
void QSGSoftwareHelpers::qDrawBorderPixmap | ( | QPainter * | painter, |
const QRect & | targetRect, | ||
const QMargins & | targetMarginsIn, | ||
const QPixmap & | pixmap, | ||
const QRect & | sourceRect, | ||
const QMargins & | sourceMarginsIn, | ||
const QTileRules & | rules, | ||
QDrawBorderPixmap::DrawingHints | hints | ||
) |
Definition at line 21 of file qsgsoftwareinternalimagenode.cpp.
References QVarLengthArray< T, Prealloc >::append(), QMargins::bottom(), QRect::bottom(), d, QVarLengthArray< T, Prealloc >::data(), QPainter::drawPixmapFragments(), QRect::height(), QSGSoftwareHelpers::QTileRules::horizontal, i, j, QMargins::left(), QRect::left(), normalizedMargins(), QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueBottom, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueBottomLeft, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueBottomRight, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueCenter, QPainter::OpaqueHint, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueLeft, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueRight, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueTop, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueTopLeft, QSGSoftwareHelpers::QDrawBorderPixmap::OpaqueTopRight, painter, pixmap, qCeil(), qMax(), Qt::RepeatTile, QVarLengthArray< T, Prealloc >::resize(), QMargins::right(), QRect::right(), Qt::RoundTile, QVLABaseBase::size(), Qt::StretchTile, QMargins::top(), QRect::top(), QSGSoftwareHelpers::QTileRules::vertical, and QRect::width().
Referenced by QSGSoftwareInternalImageNode::paint(), and QSGSoftwareNinePatchNode::paint().