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
qwindowsdirect2dplatformpixmap.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 QWINDOWSDIRECT2DPLATFORMPIXMAP_H
5#define QWINDOWSDIRECT2DPLATFORMPIXMAP_H
6
8#include <QtGui/qpa/qplatformpixmap.h>
9#include <QtCore/qscopedpointer.h>
10
12
15
17{
18 Q_DECLARE_PRIVATE(QWindowsDirect2DPlatformPixmap)
19public:
21
22 // We do NOT take ownership of the bitmap through this constructor!
25
26 void resize(int width, int height) override;
27 void fromImage(const QImage &image, Qt::ImageConversionFlags flags) override;
28
30 void fill(const QColor &color) override;
31
32 bool hasAlphaChannel() const override;
33
34 QImage toImage() const override;
35 QImage toImage(const QRect &rect) const override;
36
37 QPaintEngine* paintEngine() const override;
38
39 qreal devicePixelRatio() const override;
40 void setDevicePixelRatio(qreal scaleFactor) override;
41
43
44private:
45 QScopedPointer<QWindowsDirect2DPlatformPixmapPrivate> d_ptr;
46};
47
49
50#endif // QWINDOWSDIRECT2DPLATFORMPIXMAP_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtGui
Definition qimage.h:37
\inmodule QtGui
The QPlatformPixmap class provides an abstraction for native pixmaps.
PixelType pixelType() const
\inmodule QtCore\reentrant
Definition qrect.h:30
void fromImage(const QImage &image, Qt::ImageConversionFlags flags) override
void resize(int width, int height) override
void setDevicePixelRatio(qreal scaleFactor) override
void fill(const QColor &color) override
QPaintEngine * paintEngine() const override
int metric(QPaintDevice::PaintDeviceMetric metric) const override
rect
[4]
Combined button and popup list for selecting options.
Definition image.cpp:4
GLint GLsizei GLsizei height
GLint GLsizei width
GLuint color
[2]
GLbitfield flags
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
double qreal
Definition qtypes.h:187