File: exampleshellintegration.h

package info (click to toggle)
qt6-wayland 6.9.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,324 kB
  • sloc: cpp: 56,316; xml: 11,445; ansic: 135; sh: 30; makefile: 23
file content (23 lines) | stat: -rw-r--r-- 695 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2021 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

#ifndef EXAMPLESHELLINTEGRATION_H
#define EXAMPLESHELLINTEGRATION_H
#include <QtWaylandClient/private/qwaylandclientshellapi_p.h>
#include "qwayland-example-shell.h"

using namespace QtWaylandClient;

//! [shell-integration]
class Q_WAYLANDCLIENT_EXPORT ExampleShellIntegration
        : public QWaylandShellIntegrationTemplate<ExampleShellIntegration>
        , public QtWayland::qt_example_shell
{
public:
    ExampleShellIntegration();

    QWaylandShellSurface *createShellSurface(QWaylandWindow *window) override;
};
//! [shell-integration]

#endif // EXAMPLESHELLINTEGRATION_H