blob: 7e6811fd65ac3d9093f4398d5a0e5d3e0367603d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
// Copyright (C) 2017 ITAGE Corporation, author: <yusuke.binsaki@itage.co.jp>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QWAYLANDIVISURFACE_H
#define QWAYLANDIVISURFACE_H
#include <QtWaylandClient/private/qwaylandshellsurface_p.h>
#include "qwayland-ivi-application.h"
#include "qwayland-ivi-controller.h"
QT_BEGIN_NAMESPACE
namespace QtWaylandClient {
class QWaylandWindow;
class QWaylandInputDevice;
class QWindow;
class QWaylandExtendedSurface;
class Q_WAYLANDCLIENT_EXPORT QWaylandIviSurface : public QtWayland::ivi_surface
, public QWaylandShellSurface, public QtWayland::ivi_controller_surface
{
public:
QWaylandIviSurface(struct ::ivi_surface *shell_surface, QWaylandWindow *window);
QWaylandIviSurface(struct ::ivi_surface *shell_surface, QWaylandWindow *window,
struct ::ivi_controller_surface *iviControllerSurface);
~QWaylandIviSurface() override;
void applyConfigure() override;
private:
void createExtendedSurface(QWaylandWindow *window);
void ivi_surface_configure(int32_t width, int32_t height) override;
void ivi_controller_surface_visibility(int32_t visibility) override;
QWaylandWindow *m_window = nullptr;
QWaylandExtendedSurface *m_extendedWindow = nullptr;
QSize m_pendingSize = {0, 0};
};
}
QT_END_NAMESPACE
#endif // QWAYLANDIVISURFACE_H
|