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
qwindowsdirect2dcontext.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
4#ifndef QWINDOWSDIRECT2DCONTEXT_H
5#define QWINDOWSDIRECT2DCONTEXT_H
6
7#include <QtCore/qscopedpointer.h>
8
9struct ID3D11Device;
10struct ID2D1Device;
11struct ID2D1Factory1;
12struct IDXGIFactory2;
13struct ID3D11DeviceContext;
14struct IDWriteFactory;
15struct IDWriteGdiInterop;
16
18
21{
22 Q_DECLARE_PRIVATE( QWindowsDirect2DContext )
23
24public:
27
28 bool init();
29
31
32 ID3D11Device *d3dDevice() const;
33 ID2D1Device *d2dDevice() const;
34 ID2D1Factory1 *d2dFactory() const;
35 IDXGIFactory2 *dxgiFactory() const;
36 ID3D11DeviceContext *d3dDeviceContext() const;
37 IDWriteFactory *dwriteFactory() const;
38 IDWriteGdiInterop *dwriteGdiInterop() const;
39
40private:
41 QScopedPointer<QWindowsDirect2DContextPrivate> d_ptr;
42};
43
45
46#endif // QWINDOWSDIRECT2DCONTEXT_H
ID2D1Factory1 * d2dFactory() const
IDXGIFactory2 * dxgiFactory() const
IDWriteGdiInterop * dwriteGdiInterop() const
ID3D11DeviceContext * d3dDeviceContext() const
IDWriteFactory * dwriteFactory() const
static QWindowsDirect2DContext * instance()
Combined button and popup list for selecting options.