Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxforeignwindow.cpp
Go to the documentation of this file.
1
// Copyright (C) 2018 QNX Software Systems. 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
4
#
include
"qqnxforeignwindow.h"
5
#
include
"qqnxintegration.h"
6
7
QT_BEGIN_NAMESPACE
8
9
QQnxForeignWindow
::
QQnxForeignWindow
(
QWindow
*
window
,
10
screen_context_t
context
,
11
screen_window_t
screenWindow
)
12
:
QQnxWindow
(window, context, screenWindow)
13
{
14
initWindow();
15
}
16
17
bool
QQnxForeignWindow
::
isForeignWindow
()
const
18
{
19
return
true
;
20
}
21
22
int
QQnxForeignWindow
::
pixelFormat
()
const
23
{
24
int
result = SCREEN_FORMAT_RGBA8888;
25
screen_get_window_property_iv(nativeHandle(), SCREEN_PROPERTY_FORMAT, &result);
26
return
result;
27
}
28
29
QT_END_NAMESPACE
QQnxForeignWindow
Definition
qqnxforeignwindow.h:12
QQnxForeignWindow::pixelFormat
int pixelFormat() const override
Definition
qqnxforeignwindow.cpp:22
QQnxForeignWindow::isForeignWindow
bool isForeignWindow() const override
Definition
qqnxforeignwindow.cpp:17
QQnxWindow
The QQnxWindow is the base class of the various classes used as instances of QPlatformWindow in the Q...
Definition
qqnxwindow.h:31
QWindow
\inmodule QtGui
Definition
qwindow.h:63
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
plugins
platforms
qnx
qqnxforeignwindow.cpp
Generated on
for Qt by
1.14.0