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
qsgsoftwarerenderer_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QSGSOFTWARERENDERER_H
5#define QSGSOFTWARERENDERER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
19
20QT_BEGIN_NAMESPACE
21
22class QPaintDevice;
23class QBackingStore;
24
25class Q_QUICK_EXPORT QSGSoftwareRenderer : public QSGAbstractSoftwareRenderer
26{
27public:
28 QSGSoftwareRenderer(QSGRenderContext *context);
29 virtual ~QSGSoftwareRenderer();
30
31 void setCurrentPaintDevice(QPaintDevice *device);
32 QPaintDevice *currentPaintDevice() const;
33 void setBackingStore(QBackingStore *backingStore);
34 QRegion flushRegion() const;
35
36protected:
37 void renderScene() final;
38 void render() final;
39
40private:
41 QPaintDevice* m_paintDevice;
42 QBackingStore* m_backingStore;
43 QRegion m_flushRegion;
44};
45
46QT_END_NAMESPACE
47
48#endif // QSGSOFTWARERENDERER_H
QSGTexture::Filtering filtering() const override
Returns the filtering for this image node.
QRectF sourceRect() const override
Returns the source rect of this image node.
void setAnisotropyLevel(QSGTexture::AnisotropyLevel) override
Sets this image node's anistropy level to level.
void paint(QPainter *painter)
void setRect(const QRectF &rect) override
Sets the target rect of this image node to rect.
void setTexture(QSGTexture *texture) override
Sets the texture of this image node to texture.
void setSourceRect(const QRectF &r) override
Sets the source rect of this image node to rect.
void setMipmapFiltering(QSGTexture::Filtering) override
Sets the mipmap filtering to be used for this image node to filtering.
QSGTexture::Filtering mipmapFiltering() const override
Returns the mipmap filtering for this image node.
QRectF rect() const override
Returns the target rect of this image node.
QSGTexture * texture() const override
Returns the texture for this image node.
TextureCoordinatesTransformMode textureCoordinatesTransform() const override
Returns the mode used to generate texture coordinates for this node.
bool ownsTexture() const override
void setTextureCoordinatesTransform(TextureCoordinatesTransformMode transformNode) override
Sets the method used to generate texture coordinates to mode.
void setFiltering(QSGTexture::Filtering filtering) override
Sets the filtering to be used for this image node to filtering.
void setOwnsTexture(bool owns) override
Sets whether the node takes ownership of the texture to owns.
QSGTexture::AnisotropyLevel anisotropyLevel() const override
Returns this image node's anistropy level.
void setInnerSourceRect(const QRectF &rect) override
void setTexture(QSGTexture *texture) override
void setSubSourceRect(const QRectF &rect) override
void preprocess() override
Override this function to do processing on the node before it is rendered.
void setTargetRect(const QRectF &rect) override
void setVerticalWrapMode(QSGTexture::WrapMode wrapMode) override
void setInnerTargetRect(const QRectF &rect) override
void setMirror(bool mirrorHorizontally, bool mirrorVertically) override
void setMipmapFiltering(QSGTexture::Filtering filtering) override
void setHorizontalWrapMode(QSGTexture::WrapMode wrapMode) override
void setFiltering(QSGTexture::Filtering filtering) override
void setAntialiasing(bool antialiasing) override
void setColor(const QColor &color) override
void setGradientStops(const QGradientStops &stops) override
void setPenColor(const QColor &color) override
void setItem(QSGNode *item) override
QSize textureSize() const override
Returns the size of the texture in pixels.
void setMirrorHorizontal(bool mirror) override
void setMirrorVertical(bool mirror) override
void setRecursive(bool recursive) override
qint64 comparisonKey() const override
Returns a key suitable for comparing textures.
QImage toImage() const override
void setDevicePixelRatio(qreal ratio) override
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
void scheduleUpdate() override
bool updateTexture() override
Call this function to explicitly update the dynamic texture.
void invalidated() override
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
void setSamples(int) override
void setSize(const QSize &size) override
const QPixmap & pixmap() const
void setFormat(Format) override
void setRect(const QRectF &rect) override
void setLive(bool live) override
void setHasMipmaps(bool) override
void setDevicePixelRatio(qreal ratio) override
void setTexture(QSGTexture *texture) override
void setPadding(qreal left, qreal top, qreal right, qreal bottom) override
void setBounds(const QRectF &bounds) override
QSGTexture * texture() const override
void setDirty(const QRect &dirtyRect=QRect()) override
void setTextureSize(const QSize &size) override
void setPreferredRenderTarget(QQuickPaintedItem::RenderTarget target) override
void setOpaquePainting(bool opaque) override
void paint(QPainter *painter)
void setSmoothPainting(bool s) override
void setMipmapping(bool mipmapping) override
QImage toImage() const override
void setContentsScale(qreal s) override
void setFillColor(const QColor &c) override
void setLinearFiltering(bool linearFiltering) override
void setFastFBOResizing(bool dynamic) override
QSGSoftwarePainterNode(QQuickPaintedItem *item)
void setSize(const QSize &size) override
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
bool hasMipmaps() const override
Returns true if the texture data contains mipmap levels.
QSize textureSize() const override
Returns the size of the texture in pixels.
qint64 comparisonKey() const override
Returns a key suitable for comparing textures.
QSGSoftwarePixmapTexture(const QPixmap &pixmap)
QRectF rect() const override
Returns the rectangle that this rect node covers.
void paint(QPainter *painter)
QColor color() const override
Returns the color of this rectangle.
void setColor(const QColor &color) override
Sets the color of this rectangle to color.
void setRect(const QRectF &rect) override
Sets the rectangle of this rect node to rect.
QVarLengthArray< QPainter::PixmapFragment, 16 > QPixmapFragmentsArray
QTileRules(Qt::TileRule horizontalRule, Qt::TileRule verticalRule)
QTileRules(Qt::TileRule rule=Qt::StretchTile)