Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qpixmap_raster_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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QPIXMAP_RASTER_P_H
6
#
define
QPIXMAP_RASTER_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtGui
/
private
/
qtguiglobal_p
.
h
>
20
#
include
<
qpa
/
qplatformpixmap
.
h
>
21
22
23
QT_BEGIN_NAMESPACE
24
25
class
Q_GUI_EXPORT
QRasterPlatformPixmap
:
public
QPlatformPixmap
26
{
27
public
:
28
QRasterPlatformPixmap(PixelType type);
29
~QRasterPlatformPixmap();
30
31
QPlatformPixmap *createCompatiblePlatformPixmap()
const
override;
32
33
void
resize(
int
width,
int
height) override;
34
bool
fromData(
const
uchar *buffer, uint len,
const
char
*format, Qt::ImageConversionFlags flags) override;
35
void
fromImage(
const
QImage &image, Qt::ImageConversionFlags flags) override;
36
void
fromImageInPlace(QImage &image, Qt::ImageConversionFlags flags) override;
37
void
fromImageReader(QImageReader *imageReader, Qt::ImageConversionFlags flags) override;
38
39
void
copy(
const
QPlatformPixmap *data,
const
QRect &rect) override;
40
bool
scroll(
int
dx,
int
dy,
const
QRect &rect) override;
41
void
fill(
const
QColor &color) override;
42
bool
hasAlphaChannel()
const
override;
43
QImage toImage()
const
override;
44
QImage toImage(
const
QRect &rect)
const
override;
45
QPaintEngine* paintEngine()
const
override;
46
QImage* buffer() override;
47
qreal devicePixelRatio()
const
override;
48
void
setDevicePixelRatio(qreal scaleFactor) override;
49
50
51
protected
:
52
int
metric(QPaintDevice::PaintDeviceMetric metric)
const
override;
53
void
createPixmapForImage(QImage sourceImage, Qt::ImageConversionFlags flags);
54
void
setImage(
const
QImage &image);
55
QImage image;
56
static
QImage::Format systemNativeFormat();
57
58
private
:
59
friend
class
QPixmap;
60
friend
class
QBitmap;
61
friend
class
QPixmapCacheEntry;
62
friend
class
QRasterPaintEngine;
63
};
64
65
QT_END_NAMESPACE
66
67
#
endif
// QPIXMAP_RASTER_P_H
QPlatformPixmap
The QPlatformPixmap class provides an abstraction for native pixmaps.
Definition
qplatformpixmap.h:27
QRasterPlatformPixmap
Definition
qpixmap_raster_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qt_pixmap_thread_test
static bool qt_pixmap_thread_test()
Definition
qpixmap.cpp:50
qtbase
src
gui
image
qpixmap_raster_p.h
Generated on
for Qt by
1.18.0