Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qopenglpaintdevice_p.h
Go to the documentation of this file.
1
// Copyright (C) 2019 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 QOPENGL_PAINTDEVICE_P_H
5
#define QOPENGL_PAINTDEVICE_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 for the convenience
12
// of the Qt OpenGL classes. This header file may change from
13
// version to version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#include <
qopenglpaintdevice.h
>
19
#include <private/qglobal_p.h>
20
21
QT_BEGIN_NAMESPACE
22
23
class
QOpenGLContext
;
24
class
QPaintEngine
;
25
26
class
Q_OPENGL_EXPORT
QOpenGLPaintDevicePrivate
27
{
28
public
:
29
QOpenGLPaintDevicePrivate
(
const
QSize
&
size
);
30
virtual
~QOpenGLPaintDevicePrivate
();
31
32
static
QOpenGLPaintDevicePrivate
*
get
(
QOpenGLPaintDevice
*dev) {
return
dev->d_func(); }
33
34
virtual
void
beginPaint
() { }
35
virtual
void
endPaint
() { }
36
37
public
:
38
QSize
size
;
39
QOpenGLContext
*
ctx
;
40
41
qreal
dpmx
;
42
qreal
dpmy
;
43
qreal
devicePixelRatio
;
44
45
bool
flipped
;
46
47
QPaintEngine
*
engine
;
48
};
49
50
QT_END_NAMESPACE
51
52
#endif
// QOPENGL_PAINTDEVICE_P_H
QOpenGLContext
\inmodule QtGui
Definition
qopenglcontext.h:67
QOpenGLPaintDevicePrivate
Definition
qopenglpaintdevice_p.h:27
QOpenGLPaintDevicePrivate::dpmx
qreal dpmx
Definition
qopenglpaintdevice_p.h:41
QOpenGLPaintDevicePrivate::beginPaint
virtual void beginPaint()
Definition
qopenglpaintdevice_p.h:34
QOpenGLPaintDevicePrivate::engine
QPaintEngine * engine
Definition
qopenglpaintdevice_p.h:47
QOpenGLPaintDevicePrivate::size
QSize size
Definition
qopenglpaintdevice_p.h:38
QOpenGLPaintDevicePrivate::devicePixelRatio
qreal devicePixelRatio
Definition
qopenglpaintdevice_p.h:43
QOpenGLPaintDevicePrivate::ctx
QOpenGLContext * ctx
Definition
qopenglpaintdevice_p.h:39
QOpenGLPaintDevicePrivate::flipped
bool flipped
Definition
qopenglpaintdevice_p.h:45
QOpenGLPaintDevicePrivate::dpmy
qreal dpmy
Definition
qopenglpaintdevice_p.h:42
QOpenGLPaintDevicePrivate::get
static QOpenGLPaintDevicePrivate * get(QOpenGLPaintDevice *dev)
Definition
qopenglpaintdevice_p.h:32
QOpenGLPaintDevicePrivate::endPaint
virtual void endPaint()
Definition
qopenglpaintdevice_p.h:35
QOpenGLPaintDevice
The QOpenGLPaintDevice class enables painting to an OpenGL context using QPainter.
Definition
qopenglpaintdevice.h:20
QPaintEngine
\inmodule QtGui
Definition
qpaintengine.h:51
QSize
\inmodule QtCore
Definition
qsize.h:25
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
size
GLenum GLuint GLintptr GLsizeiptr size
[1]
Definition
qopengles2ext.h:660
qopenglpaintdevice.h
qreal
double qreal
Definition
qtypes.h:92
qtbase
src
opengl
qopenglpaintdevice_p.h
Generated by
1.9.7