Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickcontext2dcommandbuffer.cpp File Reference
#include "qquickcontext2dcommandbuffer_p.h"
#include "qquickcanvasitem_p.h"
#include <qqml.h>
#include <QtCore/QMutex>
#include <QtQuick/qsgtexture.h>
#include <QtGui/QPaintEngine>
+ Include dependency graph for qquickcontext2dcommandbuffer.cpp:

Go to the source code of this file.

Macros

#define HAS_SHADOW(offsetX, offsetY, blur, color)   (color.isValid() && color.alpha() && (blur || offsetX || offsetY))
 

Functions

QT_BEGIN_NAMESPACE void qt_image_boxblur (QImage &image, int radius, bool quality)
 
static void fillRectShadow (QPainter *p, QRectF shadowRect, qreal offsetX, qreal offsetY, qreal blur, const QColor &color)
 
static void fillShadowPath (QPainter *p, const QPainterPath &path, qreal offsetX, qreal offsetY, qreal blur, const QColor &color)
 
static void strokeShadowPath (QPainter *p, const QPainterPath &path, qreal offsetX, qreal offsetY, qreal blur, const QColor &color)
 
static void qt_drawImage (QPainter *p, QQuickContext2D::State &state, QImage image, const QRectF &sr, const QRectF &dr, bool shadow=false)
 

Macro Definition Documentation

◆ HAS_SHADOW

#define HAS_SHADOW (   offsetX,
  offsetY,
  blur,
  color 
)    (color.isValid() && color.alpha() && (blur || offsetX || offsetY))

Definition at line 11 of file qquickcontext2dcommandbuffer.cpp.

Function Documentation

◆ fillRectShadow()

static void fillRectShadow ( QPainter p,
QRectF  shadowRect,
qreal  offsetX,
qreal  offsetY,
qreal  blur,
const QColor color 
)
static

Definition at line 129 of file qquickcontext2dcommandbuffer.cpp.

Referenced by QQuickContext2DCommandBuffer::replay().

+ Here is the caller graph for this function:

◆ fillShadowPath()

static void fillShadowPath ( QPainter p,
const QPainterPath path,
qreal  offsetX,
qreal  offsetY,
qreal  blur,
const QColor color 
)
static

Definition at line 135 of file qquickcontext2dcommandbuffer.cpp.

Referenced by QQuickContext2DCommandBuffer::replay().

+ Here is the caller graph for this function:

◆ qt_drawImage()

static void qt_drawImage ( QPainter p,
QQuickContext2D::State state,
QImage  image,
const QRectF sr,
const QRectF dr,
bool  shadow = false 
)
static

Definition at line 187 of file qquickcontext2dcommandbuffer.cpp.

References QRectF::height(), Q_ASSERT, state, QRectF::width(), QRectF::x(), and QRectF::y().

Referenced by QQuickContext2DCommandBuffer::replay().

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

◆ qt_image_boxblur()

QT_BEGIN_NAMESPACE void qt_image_boxblur ( QImage image,
int  radius,
bool  quality 
)

Definition at line 769 of file qquickcontext2d.cpp.

References i, and qt_image_convolute_filter().

+ Here is the call graph for this function:

◆ strokeShadowPath()

static void strokeShadowPath ( QPainter p,
const QPainterPath path,
qreal  offsetX,
qreal  offsetY,
qreal  blur,
const QColor color 
)
static

Definition at line 141 of file qquickcontext2dcommandbuffer.cpp.

Referenced by QQuickContext2DCommandBuffer::replay().

+ Here is the caller graph for this function: