4#ifndef QSGSOFTWARELAYER_H
5#define QSGSOFTWARELAYER_H
18#include <private/qsgadaptationlayer_p.h>
19#include <private/qsgcontext_p.h>
20#include <private/qsgtexture_p.h>
24class QSGSoftwarePixmapRenderer;
48 void setItem(QSGNode *item)
override;
49 void setRect(
const QRectF &rect)
override;
50 void setSize(
const QSize &size)
override;
70 QSGRenderContext *m_context;
71 QSGSoftwarePixmapRenderer *m_renderer;
75 qreal m_device_pixel_ratio;
76 bool m_mirrorHorizontal;
77 bool m_mirrorVertical;
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 paint(QPainter *painter)
void setTexture(QSGTexture *texture) override
void setSubSourceRect(const QRectF &rect) override
const QPixmap & pixmap() const
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
QSGSoftwareInternalImageNode()
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 setBottomRightRadius(qreal radius) override
void setRect(const QRectF &rect) override
void setRadius(qreal radius) override
void setAntialiasing(bool antialiasing) override
void setGradientVertical(bool vertical) override
void resetBottomRightRadius() override
void setTopLeftRadius(qreal radius) override
QSGSoftwareInternalRectangleNode()
void setTopRightRadius(qreal radius) override
void setBottomLeftRadius(qreal radius) override
void setColor(const QColor &color) override
void setGradientStops(const QGradientStops &stops) override
void setPenWidth(qreal width) override
void resetBottomLeftRadius() override
void setPenColor(const QColor &color) override
void setAligned(bool aligned) override
void resetTopLeftRadius() override
void resetTopRightRadius() 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 paint(QPainter *painter)
void setTexture(QSGTexture *texture) override
QSGSoftwareNinePatchNode()
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
QSize textureSize() const
void setPreferredRenderTarget(QQuickPaintedItem::RenderTarget target) override
bool linearFiltering() const
void setOpaquePainting(bool opaque) override
void paint(QPainter *painter)
~QSGSoftwarePainterNode()
void setSmoothPainting(bool s) override
void setMipmapping(bool mipmapping) override
bool fastFBOResizing() const
qreal contentsScale() const
QImage toImage() const override
void setContentsScale(qreal s) override
bool opaquePainting() const
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 smoothPainting() const
bool hasAlphaChannel() const override
Returns true if the texture data contains an alpha channel.
const QPixmap & pixmap() const
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.
QSGSoftwareRectangleNode()
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)