4#ifndef QQUICKPIXMAPCACHE_H
5#define QQUICKPIXMAPCACHE_H
18#include <QtCore/qcoreapplication.h>
19#include <QtCore/qstring.h>
20#include <QtGui/qpixmap.h>
21#include <QtCore/qurl.h>
22#include <private/qtquickglobal_p.h>
23#include <QtQuick/qquickimageprovider.h>
25#include <private/qintrusivelist_p.h>
53 QQuickImageProvider::Flags
flags;
62 UsePluginDefaultTransform = -1,
64 DoNotApplyTransform = 1
75 AutoTransform autoTransform()
const;
76 void setAutoTransform(AutoTransform autoTransform);
78 bool preserveAspectRatioCrop()
const;
79 void setPreserveAspectRatioCrop(
bool preserveAspectRatioCrop);
81 bool preserveAspectRatioFit()
const;
82 void setPreserveAspectRatioFit(
bool preserveAspectRatioFit);
85 void setTargetColorSpace(
const QColorSpace &colorSpace);
104 Asynchronous = 0x00000001,
110 bool isReady()
const;
111 bool isError()
const;
112 bool isLoading()
const;
114 Status status()
const;
117 const QSize &implicitSize()
const;
118 const QRect &requestRegion()
const;
119 const QSize &requestSize()
const;
121 int frameCount()
const;
123 void setImage(
const QImage &);
140 qreal devicePixelRatio = 1.0);
142 const QRect &requestRegion,
const QSize &requestSize,
148 bool connectFinished(
QObject *,
const char *);
149 bool connectFinished(
QObject *,
int);
150 bool connectDownloadProgress(
QObject *,
const char *);
151 bool connectDownloadProgress(
QObject *,
int);
153 static void purgeCache();
154 static bool isCached(
const QUrl &
url,
const QRect &requestRegion,
const QSize &requestSize,
186 qreal devicePixelRatio = 1.0);
IOBluetoothDevice * device
The QColorSpace class provides a color space abstraction.
\inmodule QtCore \reentrant
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
The QQmlEngine class provides an environment for instantiating QML components.
ImageType
Defines the type of image supported by this image provider.
The QQuickAsyncImageProvider class provides an interface for asynchronous control of QML image reques...
QImage image() const override
Returns an image version of this texture.
QSize textureSize() const override
Returns the size of the texture.
int textureByteCount() const override
Returns the number of bytes of memory the texture consumes.
QSGTexture * createTexture(QQuickWindow *window) const override
This function is called on the scene graph rendering thread to create a QSGTexture instance from the ...
The QQuickImageProviderOptions class provides options for QQuickImageProviderWithOptions image reques...
AutoTransform
Whether the image provider should apply transformation metadata on read().
QQuickImageProvider::ImageType type
bool isProviderWithOptions
QQuickImageProvider::Flags flags
The QQuickImageProvider class provides an interface for supporting pixmaps and threaded image request...
The QQuickImageResponse class provides an interface for asynchronous image loading in QQuickAsyncImag...
static const QLatin1String itemGrabberScheme
The QQuickTextureFactory class provides an interface for loading custom textures from QML....
\qmltype Window \instantiates QQuickWindow \inqmlmodule QtQuick
\inmodule QtCore\reentrant
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
#define Q_DECLARE_TR_FUNCTIONS(context)
DBusConnection const char DBusError * error
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
bool operator==(const QRandomGenerator &rng1, const QRandomGenerator &rng2)
QUrl url("example.com")
[constructor-url-reference]