Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QSGSoftwareHelpers Namespace Reference

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)
 

Typedef Documentation

◆ QPixmapFragmentsArray

Function Documentation

◆ normalizedMargins()

static QMargins QSGSoftwareHelpers::normalizedMargins ( const QMargins m)
inlinestatic

Definition at line 16 of file qsgsoftwareinternalimagenode.cpp.

References qMax().

Referenced by qDrawBorderPixmap().

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

◆ 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().

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