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
qqnxeglwindow.h
Go to the documentation of this file.
1
// Copyright (C) 2013 BlackBerry Limited. All rights reserved.
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
QQNXEGLWINDOW_H
6
#
define
QQNXEGLWINDOW_H
7
8
#
include
"qqnxwindow.h"
9
#
include
<
QtCore
/
QMutex
>
10
#
include
<
QtCore
/
QLoggingCategory
>
11
12
QT_BEGIN_NAMESPACE
13
14
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindowEgl);
15
16
class
QQnxGLContext
;
17
18
class
QQnxEglWindow
:
public
QQnxWindow
19
{
20
public
:
21
QQnxEglWindow
(QWindow *window, screen_context_t context,
bool
needRootWindow);
22
~
QQnxEglWindow
();
23
24
EGLSurface
surface
()
const
;
25
26
bool
isInitialized
()
const
;
27
void
ensureInitialized
(
QQnxGLContext
*context);
28
29
void
setGeometry
(
const
QRect &rect)
override
;
30
31
QSurfaceFormat
format
()
const
override
{
return
m_format; }
32
33
protected
:
34
int
pixelFormat
()
const
override
;
35
void
resetBuffers
()
override
;
36
37
private
:
38
void
createEGLSurface(
QQnxGLContext
*context);
39
void
destroyEGLSurface();
40
41
QSize m_requestedBufferSize;
42
43
// This mutex is used to protect access to the m_requestedBufferSize
44
// member. This member is used in conjunction with QQnxGLContext::requestNewSurface()
45
// to coordinate recreating the EGL surface which involves destroying any
46
// existing EGL surface; resizing the native window buffers; and creating a new
47
// EGL surface. All of this has to be done from the thread that is calling
48
// QQnxGLContext::makeCurrent()
49
mutable
QMutex m_mutex;
50
51
QAtomicInt m_newSurfaceRequested;
52
EGLDisplay m_eglDisplay;
53
EGLConfig m_eglConfig;
54
EGLSurface m_eglSurface;
55
QSurfaceFormat m_format;
56
};
57
58
QT_END_NAMESPACE
59
60
#
endif
// QQNXEGLWINDOW_H
QQnxEglWindow
Definition
qqnxeglwindow.h:19
QQnxEglWindow::isInitialized
bool isInitialized() const
Definition
qqnxeglwindow.cpp:35
QQnxEglWindow::resetBuffers
void resetBuffers() override
Definition
qqnxeglwindow.cpp:172
QQnxEglWindow::QQnxEglWindow
QQnxEglWindow(QWindow *window, screen_context_t context, bool needRootWindow)
Definition
qqnxeglwindow.cpp:18
QQnxEglWindow::format
QSurfaceFormat format() const override
Returns the actual surface format of the window.
Definition
qqnxeglwindow.h:31
QQnxEglWindow::pixelFormat
int pixelFormat() const override
Definition
qqnxeglwindow.cpp:148
QQnxEglWindow::surface
EGLSurface surface() const
Definition
qqnxeglwindow.cpp:124
QQnxEglWindow::ensureInitialized
void ensureInitialized(QQnxGLContext *context)
Definition
qqnxeglwindow.cpp:40
QQnxEglWindow::~QQnxEglWindow
~QQnxEglWindow()
Definition
qqnxeglwindow.cpp:29
QQnxEglWindow::setGeometry
void setGeometry(const QRect &rect) override
This function is called by Qt whenever a window is moved or resized using the QWindow API.
Definition
qqnxeglwindow.cpp:129
QQnxGLContext
Definition
qqnxglcontext.h:24
QQnxGLContext::doneCurrent
void doneCurrent() override
Definition
qqnxglcontext.cpp:65
QQnxWindow
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
Definition
qqnxwindow.h:32
QQnxWindow::initWindow
void initWindow()
Definition
qqnxwindow.cpp:819
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_LOGGING_CATEGORY
Q_LOGGING_CATEGORY(lcEventDispatcher, "qt.eventdispatcher")
_SCREEN_VERSION
#define _SCREEN_VERSION
Definition
qqnxscreen.h:19
_SCREEN_MAKE_VERSION
#define _SCREEN_MAKE_VERSION(major, minor, patch)
Definition
qqnxscreen.h:18
qtbase
src
plugins
platforms
qnx
qqnxeglwindow.h
Generated on
for Qt by
1.18.0