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
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// Qt-Security score:significant reason:default
4
7
8#include <QtGui/qbackingstore.h>
9
11
12void *QWindowsGdiNativeInterface::nativeResourceForBackingStore(const QByteArray &resource, QBackingStore *bs)
13{
14 if (!bs || !bs->handle()) {
15 qWarning("%s: '%s' requested for null backingstore or backingstore without handle.", __FUNCTION__, resource.constData());
16 return nullptr;
17 }
18 auto *wbs = static_cast<QWindowsBackingStore *>(bs->handle());
19 if (resource == "getDC")
20 return wbs->getDC();
21 qWarning("%s: Invalid key '%s' requested.", __FUNCTION__, resource.constData());
22 return nullptr;
23}
24
25QT_END_NAMESPACE
Backing store for windows.
Combined button and popup list for selecting options.