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>.
|
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 QRect::bottom(), d, QPainter::drawPixmapFragments(), QSGSoftwareHelpers::QTileRules::horizontal, i, j, QRect::left(), normalizedMargins(), QPainter::PixmapFragment::opacity, 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, QRect::right(), Qt::RoundTile, Qt::StretchTile, QRect::top(), and QSGSoftwareHelpers::QTileRules::vertical.
Referenced by QSGSoftwareInternalImageNode::paint(), and QSGSoftwareNinePatchNode::paint().