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
qimagepixmapcleanuphooks_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 QIMAGEPIXMAP_CLEANUPHOOKS_P_H
5#define QIMAGEPIXMAP_CLEANUPHOOKS_P_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
18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtGui/qpixmap.h>
20
22
25
26
28
29class Q_GUI_EXPORT QImagePixmapCleanupHooks
30{
31public:
32 static QImagePixmapCleanupHooks *instance();
33
34 static void enableCleanupHooks(const QImage &image);
35 static void enableCleanupHooks(const QPixmap &pixmap);
36 static void enableCleanupHooks(QPlatformPixmap *handle);
37
38 static bool isImageCached(const QImage &image);
39 static bool isPixmapCached(const QPixmap &pixmap);
40
41 // Gets called when a pixmap data is about to be modified:
42 void addPlatformPixmapModificationHook(_qt_pixmap_cleanup_hook_pmd);
43
44 // Gets called when a pixmap data is about to be destroyed:
45 void addPlatformPixmapDestructionHook(_qt_pixmap_cleanup_hook_pmd);
46
47 // Gets called when an image is about to be modified or destroyed:
48 void addImageHook(_qt_image_cleanup_hook_64);
49
50 void removePlatformPixmapModificationHook(_qt_pixmap_cleanup_hook_pmd);
51 void removePlatformPixmapDestructionHook(_qt_pixmap_cleanup_hook_pmd);
52 void removeImageHook(_qt_image_cleanup_hook_64);
53
54 static void executePlatformPixmapModificationHooks(QPlatformPixmap*);
55 static void executePlatformPixmapDestructionHooks(QPlatformPixmap*);
56 static void executeImageHooks(qint64 key);
57
58private:
59 QList<_qt_image_cleanup_hook_64> imageHooks;
60 QList<_qt_pixmap_cleanup_hook_pmd> pixmapModificationHooks;
61 QList<_qt_pixmap_cleanup_hook_pmd> pixmapDestructionHooks;
62};
63
65
66#endif // QIMAGEPIXMAP_CLEANUPHOOKS_P_H
\inmodule QtGui
Definition qimage.h:37
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformPixmap class provides an abstraction for native pixmaps.
Combined button and popup list for selecting options.
Definition image.cpp:4
DBusConnection const char DBusError DBusBusType DBusError return DBusConnection DBusHandleMessageFunction void DBusFreeFunction return DBusConnection return DBusConnection return const char DBusError return DBusConnection DBusMessage dbus_uint32_t return DBusConnection dbus_bool_t DBusConnection DBusAddWatchFunction DBusRemoveWatchFunction DBusWatchToggledFunction void DBusFreeFunction return DBusConnection DBusDispatchStatusFunction void DBusFreeFunction DBusTimeout return DBusTimeout return DBusWatch return DBusWatch unsigned int return DBusError const DBusError return const DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessage return DBusMessageIter int const void return DBusMessageIter DBusMessageIter return DBusMessageIter void DBusMessageIter void int return DBusMessage DBusMessageIter return DBusMessageIter return DBusMessageIter DBusMessageIter const char const char const char const char return DBusMessage return DBusMessage const char return DBusMessage dbus_bool_t return DBusMessage dbus_uint32_t return DBusMessage void
void(* _qt_pixmap_cleanup_hook_pmd)(QPlatformPixmap *)
QT_BEGIN_NAMESPACE typedef void(* _qt_image_cleanup_hook_64)(qint64)
GLuint64 GLenum void * handle
GLuint64 key
long long qint64
Definition qtypes.h:60
widget render & pixmap