1// Copyright (C) 2021 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 QVIDEOWIDGET_P_H
5#define QVIDEOWIDGET_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtMultimediaWidgets/qtmultimediawidgetsglobal.h>
19#include <qvideoframe.h>
20#include "qvideowidget.h"
21#include "private/qglobal_p.h"
22
23QT_BEGIN_NAMESPACE
24
25class QObject;
26class QVideoWindow;
27
28class QVideoWidgetPrivate
29{
30 Q_DECLARE_PUBLIC(QVideoWidget)
31public:
32 QVideoWidget *q_ptr = nullptr;
33 Qt::AspectRatioMode aspectRatioMode = Qt::KeepAspectRatio;
34 Qt::WindowFlags nonFullScreenFlags;
35 bool wasFullScreen = false;
36
37 QVideoWindow *videoWindow = nullptr;
38 QWidget *windowContainer = nullptr;
39 QPoint nonFullscreenPos;
40
41 bool createBackend();
42};
43
44QT_END_NAMESPACE
45
46
47#endif
48

source code of qtmultimedia/src/multimediawidgets/qvideowidget_p.h