Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickcontext2dcommandbuffer.cpp File Reference

(01cd43d30e3ca2c4dd94a4a4711604adb9417517)

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

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 )
Value:
(color.isValid() && color.alpha() && (blur || offsetX || offsetY))
GLuint color
[setDefaultFactory]

Definition at line 12 of file qquickcontext2dcommandbuffer.cpp.

Function Documentation

◆ fillRectShadow()

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

Definition at line 130 of file qquickcontext2dcommandbuffer.cpp.

◆ fillShadowPath()

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

Definition at line 136 of file qquickcontext2dcommandbuffer.cpp.

◆ qt_drawImage()

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

Definition at line 188 of file qquickcontext2dcommandbuffer.cpp.

◆ qt_image_boxblur()

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

Definition at line 776 of file qquickcontext2d.cpp.

◆ strokeShadowPath()

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

Definition at line 142 of file qquickcontext2dcommandbuffer.cpp.