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>.
Loading...
Searching...
No Matches
qquickcontext2dcommandbuffer.cpp File Reference

(0dc4fd240a2897c5c443a0ef6d84c416843e4938)

#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))

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 771 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: