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
qminimaleglscreen.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
QMINIMALEGLSCREEN_H
6
#
define
QMINIMALEGLSCREEN_H
7
8
#
include
<
qpa
/
qplatformscreen
.
h
>
9
10
#
include
<
QtCore
/
QTextStream
>
11
12
#
include
<
QtGui
/
private
/
qt_egl_p
.
h
>
13
14
QT_BEGIN_NAMESPACE
15
16
class
QPlatformOpenGLContext;
17
18
class
QMinimalEglScreen
:
public
QPlatformScreen
19
{
20
public
:
21
QMinimalEglScreen
(EGLNativeDisplayType display);
22
~
QMinimalEglScreen
();
23
24
QRect
geometry
()
const
override
;
25
int
depth
()
const
override
;
26
QImage
::
Format
format
()
const
override
;
27
#
ifndef
QT_NO_OPENGL
28
QPlatformOpenGLContext *
platformContext
()
const
;
29
#
endif
30
EGLSurface
surface
()
const
{
return
m_surface; }
31
32
private
:
33
void
createAndSetPlatformContext()
const
;
34
void
createAndSetPlatformContext();
35
36
QRect m_geometry;
37
int
m_depth;
38
QImage::Format m_format;
39
QPlatformOpenGLContext *m_platformContext;
40
EGLDisplay m_dpy;
41
EGLSurface m_surface;
42
};
43
44
QT_END_NAMESPACE
45
#
endif
// QMINIMALEGLSCREEN_H
QMinimalEglBackingStore
Definition
qminimaleglbackingstore.h:16
QMinimalEglScreen
Definition
qminimaleglscreen.h:19
QMinimalEglScreen::QMinimalEglScreen
QMinimalEglScreen(EGLNativeDisplayType display)
Definition
qminimaleglscreen.cpp:42
QMinimalEglScreen::~QMinimalEglScreen
~QMinimalEglScreen()
Definition
qminimaleglscreen.cpp:74
QMinimalEglScreen::format
QImage::Format format() const override
Reimplement in subclass to return the image format which corresponds to the screen format.
Definition
qminimaleglscreen.cpp:160
QMinimalEglScreen::geometry
QRect geometry() const override
Reimplement in subclass to return the pixel geometry of the screen.
Definition
qminimaleglscreen.cpp:147
QMinimalEglScreen::platformContext
QPlatformOpenGLContext * platformContext() const
Definition
qminimaleglscreen.cpp:167
QMinimalEglScreen::surface
EGLSurface surface() const
Definition
qminimaleglscreen.h:30
QMinimalEglScreen::depth
int depth() const override
Reimplement in subclass to return current depth of the screen.
Definition
qminimaleglscreen.cpp:155
QMinimalEglWindow
Definition
qminimaleglwindow.h:15
QMinimalEglWindow::winId
WId winId() const override
Reimplement in subclasses to return a handle to the native window.
Definition
qminimaleglwindow.cpp:36
QMinimalEglWindow::setGeometry
void setGeometry(const QRect &) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
Definition
qminimaleglwindow.cpp:27
QMinimalEglWindow::QMinimalEglWindow
QMinimalEglWindow(QWindow *w)
Definition
qminimaleglwindow.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
qtbase
src
plugins
platforms
minimalegl
qminimaleglscreen.h
Generated on
for Qt by
1.18.0