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
23
QT_BEGIN_NAMESPACE
24
25
class
Q_GUI_EXPORT
QWindowsNativeImage
26
{
27
Q_DISABLE_COPY_MOVE(
QWindowsNativeImage
)
28
public
:
29
QWindowsNativeImage
(
int
width
,
int
height
,
30
QImage::Format
format
);
31
32
~QWindowsNativeImage
();
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
44
private
:
45
const
HDC m_hdc;
46
QImage
m_image;
47
48
HBITMAP m_bitmap = 0;
49
HBITMAP m_null_bitmap = 0;
50
};
51
52
QT_END_NAMESPACE
53
54
#endif
// QWINDOWSNATIVEIMAGE_H
QImage
\inmodule QtGui
Definition
qimage.h:37
QImage::Format
Format
The following image formats are available in Qt.
Definition
qimage.h:41
QWindowsNativeImage
Windows Native image.
Definition
qwindowsnativeimage_p.h:26
QWindowsNativeImage::hdc
HDC hdc() const
Definition
qwindowsnativeimage_p.h:40
QWindowsNativeImage::width
int width() const
Definition
qwindowsnativeimage_p.h:34
QWindowsNativeImage::height
int height() const
Definition
qwindowsnativeimage_p.h:35
QWindowsNativeImage::image
const QImage & image() const
Definition
qwindowsnativeimage_p.h:38
QWindowsNativeImage::image
QImage & image()
Definition
qwindowsnativeimage_p.h:37
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
height
GLint GLsizei GLsizei height
Definition
qopengles2ext.h:206
width
GLint GLsizei width
Definition
qopengles2ext.h:206
format
GLint GLsizei GLsizei GLenum format
Definition
qopengles2ext.h:206
qtbase
src
gui
text
windows
qwindowsnativeimage_p.h
Generated by
1.10.0