Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qsgsoftwareinternalimagenode.cpp File Reference
#include "qsgsoftwareinternalimagenode_p.h"
#include "qsgsoftwarepixmaptexture_p.h"
#include "qsgsoftwarelayer_p.h"
#include <QPainter>
#include <qmath.h>
+ Include dependency graph for qsgsoftwareinternalimagenode.cpp:

Go to the source code of this file.

Namespaces

namespace  QSGSoftwareHelpers
 

Functions

static QMargins QSGSoftwareHelpers::normalizedMargins (const QMargins &m)
 
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)
 
static Qt::TileRule getTileRule (qreal factor)
 

Function Documentation

◆ getTileRule()

static Qt::TileRule getTileRule ( qreal  factor)
static

Definition at line 408 of file qsgsoftwareinternalimagenode.cpp.

References qFuzzyCompare(), qRound(), Qt::RepeatTile, Qt::RoundTile, and Qt::StretchTile.

Referenced by QSGSoftwareInternalImageNode::paint().

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