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
qwindowsgdinativeinterface.cpp
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
4
#include "
qwindowsgdinativeinterface.h
"
5
#include "
qwindowsbackingstore.h
"
6
7
#include <QtGui/qbackingstore.h>
8
9
QT_BEGIN_NAMESPACE
10
11
void
*
QWindowsGdiNativeInterface::nativeResourceForBackingStore
(
const
QByteArray
&resource,
QBackingStore
*bs)
12
{
13
if
(!bs || !bs->handle()) {
14
qWarning
(
"%s: '%s' requested for null backingstore or backingstore without handle."
, __FUNCTION__, resource.
constData
());
15
return
nullptr
;
16
}
17
auto
*wbs =
static_cast<
QWindowsBackingStore
*
>
(bs->handle());
18
if
(resource ==
"getDC"
)
19
return
wbs->
getDC
();
20
qWarning
(
"%s: Invalid key '%s' requested."
, __FUNCTION__, resource.
constData
());
21
return
nullptr
;
22
}
23
24
QT_END_NAMESPACE
QBackingStore
The QBackingStore class provides a drawing area for QWindow.
Definition
qbackingstore.h:24
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QByteArray::constData
const char * constData() const noexcept
Returns a pointer to the const data stored in the byte array.
Definition
qbytearray.h:124
QWindowsBackingStore
Backing store for windows.
Definition
qwindowsbackingstore.h:18
QWindowsBackingStore::getDC
HDC getDC() const
Definition
qwindowsbackingstore.cpp:169
QWindowsGdiNativeInterface::nativeResourceForBackingStore
void * nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *bs) override
Definition
qwindowsgdinativeinterface.cpp:11
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qWarning
#define qWarning
Definition
qlogging.h:166
qwindowsbackingstore.h
qwindowsgdinativeinterface.h
qtbase
src
plugins
platforms
windows
qwindowsgdinativeinterface.cpp
Generated by
1.10.0