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
qwindowsdirect2dwindow.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 QWINDOWSDIRECT2DWINDOW_H
5#define QWINDOWSDIRECT2DWINDOW_H
6
7#include "qwindowswindow.h"
8#include <wrl.h>
9
10struct IDXGISwapChain1;
11struct ID2D1DeviceContext;
12
14
16
18{
19public:
22
23 void setWindowFlags(Qt::WindowFlags flags) override;
24
25 QPixmap *pixmap();
26 void flush(QWindowsDirect2DBitmap *bitmap, const QRegion &region, const QPoint &offset);
27 void present(const QRegion &region);
28 void setupSwapChain();
29 void resizeSwapChain(const QSize &size);
30
31 QSharedPointer<QWindowsDirect2DBitmap> copyBackBuffer() const;
32
33private:
34 void setupBitmap();
35
36private:
39 QScopedPointer<QWindowsDirect2DBitmap> m_bitmap;
40 QScopedPointer<QPixmap> m_pixmap;
41 bool m_needsFullFlush = true;
42 bool m_directRendering = false;
43};
44
46
47#endif // QWINDOWSDIRECT2DWINDOW_H
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
QWindow * window() const
Returns the window which belongs to the QPlatformWindow.
\inmodule QtCore\reentrant
Definition qpoint.h:25
The QRegion class specifies a clip region for a painter.
Definition qregion.h:27
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
QWindowsDirect2DWindow(QWindow *window, const QWindowsWindowData &data)
void setWindowFlags(Qt::WindowFlags flags) override
Requests setting the window flags of this surface to flags.
void present(const QRegion &region)
QSharedPointer< QWindowsDirect2DBitmap > copyBackBuffer() const
void flush(QWindowsDirect2DBitmap *bitmap, const QRegion &region, const QPoint &offset)
void resizeSwapChain(const QSize &size)
Raster or OpenGL Window.
Combined button and popup list for selecting options.
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLbitfield flags
GLenum GLuint GLintptr offset
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap