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
qwindowsnativeimage_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 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 QWINDOWSNATIVEIMAGE_H
5#define QWINDOWSNATIVEIMAGE_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 <QtCore/QtGlobal>
19#include <QtCore/qt_windows.h>
20#include <QtGui/QImage>
21#include <QtCore/private/qglobal_p.h>
22
24
25class Q_GUI_EXPORT QWindowsNativeImage
26{
27 Q_DISABLE_COPY_MOVE(QWindowsNativeImage)
28public:
31
33
34 inline int width() const { return m_image.width(); }
35 inline int height() const { return m_image.height(); }
36
37 QImage &image() { return m_image; }
38 const QImage &image() const { return m_image; }
39
40 HDC hdc() const { return m_hdc; }
41
42 static QImage::Format systemFormat();
43
44private:
45 const HDC m_hdc;
46 QImage m_image;
47
48 HBITMAP m_bitmap = 0;
49 HBITMAP m_null_bitmap = 0;
50};
51
53
54#endif // QWINDOWSNATIVEIMAGE_H
\inmodule QtGui
Definition qimage.h:37
Format
The following image formats are available in Qt.
Definition qimage.h:41
Windows Native image.
const QImage & image() const
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLint GLsizei width
GLint GLsizei GLsizei GLenum format